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

Unified Diff: content/renderer/webcrypto/webcrypto_util.h

Issue 165373008: [webcrypto] Reject AES-GCM tag lengths other than 32, 64, 96, 104, 112, 120, 128. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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/renderer/webcrypto/webcrypto_util.h
diff --git a/content/renderer/webcrypto/webcrypto_util.h b/content/renderer/webcrypto/webcrypto_util.h
index b10f94df72fe303349ad1f9cdf19219d36e43d47..a9383e1aad9764462cb73cd3c89015410b069d94 100644
--- a/content/renderer/webcrypto/webcrypto_util.h
+++ b/content/renderer/webcrypto/webcrypto_util.h
@@ -145,8 +145,7 @@ class CONTENT_EXPORT Status {
static Status ErrorUnexpected();
// The authentication tag length specified for AES-GCM encrypt/decrypt was
- // either greater than 128 bits, or it was not a multiple of 8 bits.
- // (zero length is allowed).
+ // not 32, 64, 96, 104, 112, 120, or 128.
static Status ErrorInvalidAesGcmTagLength();
// The "publicExponent" used to generate a key was invalid: either no bytes

Powered by Google App Engine
This is Rietveld 408576698