Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(224)

Unified Diff: content/child/webcrypto/status.h

Issue 329673002: [webcrypto] Restrict public exponent for RSA key generation to 3 or 65537. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/child/webcrypto/status.h
diff --git a/content/child/webcrypto/status.h b/content/child/webcrypto/status.h
index 8dbfce6e0c643ea11c02aef5aeb7912ef849489a..c386c0e076b2bf74fed028e84bc930a248e0d384 100644
--- a/content/child/webcrypto/status.h
+++ b/content/child/webcrypto/status.h
@@ -161,9 +161,8 @@ class CONTENT_EXPORT Status {
// multiple of 8 bytes, as required by RFC 3394.
static Status ErrorInvalidAesKwDataLength();
- // The "publicExponent" used to generate a key was invalid: either no bytes
- // were specified, or the number was too large to fit into an "unsigned long"
- // (implemention limitation), or the exponent was zero.
+ // The "publicExponent" used to generate a key was invalid or unsupported.
+ // Only values of 3 and 65537 are allowed.
static Status ErrorGenerateKeyPublicExponent();
// The modulus bytes were empty when importing an RSA public key.

Powered by Google App Engine
This is Rietveld 408576698