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

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

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.cc
diff --git a/content/renderer/webcrypto/webcrypto_util.cc b/content/renderer/webcrypto/webcrypto_util.cc
index 016a3a580ee3dc2a0d312bbb79ff62e97812018f..87c34a54a8031a37f4bafb511845c78649af421a 100644
--- a/content/renderer/webcrypto/webcrypto_util.cc
+++ b/content/renderer/webcrypto/webcrypto_util.cc
@@ -121,8 +121,8 @@ Status Status::ErrorUnexpected() {
Status Status::ErrorInvalidAesGcmTagLength() {
return Status(
- "The tag length is invalid: either too large or not a multiple "
- "of 8 bits");
+ "The tag length is invalid: Must be 32, 64, 96, 104, 112, 120, or 128 "
+ "bits");
}
Status Status::ErrorGenerateKeyPublicExponent() {

Powered by Google App Engine
This is Rietveld 408576698