summaryrefslogtreecommitdiffstats
path: root/content/renderer/webcrypto/webcrypto_util.cc
diff options
context:
space:
mode:
authoreroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-22 08:07:16 +0000
committereroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-22 08:07:16 +0000
commit8b51739c74a58e3a4111fe5e7d1b7acbff566a69 (patch)
treec4dda50db41dd4d516866a7ab337c6dacafb8fb3 /content/renderer/webcrypto/webcrypto_util.cc
parent665b5c54dd232d63620438e8941925b1ac1e52f4 (diff)
downloadchromium_src-8b51739c74a58e3a4111fe5e7d1b7acbff566a69.zip
chromium_src-8b51739c74a58e3a4111fe5e7d1b7acbff566a69.tar.gz
chromium_src-8b51739c74a58e3a4111fe5e7d1b7acbff566a69.tar.bz2
[webcrypto] Reject AES-GCM tag lengths other than 32, 64, 96, 104, 112, 120, 128 bits.
This matches the spec update https://dvcs.w3.org/hg/webcrypto-api/rev/1ed0fb7da636. (Before it was possible to use a tag length of 0 and have it succeed) BUG=245025 Review URL: https://codereview.chromium.org/165373008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252769 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer/webcrypto/webcrypto_util.cc')
-rw-r--r--content/renderer/webcrypto/webcrypto_util.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/content/renderer/webcrypto/webcrypto_util.cc b/content/renderer/webcrypto/webcrypto_util.cc
index 016a3a5..87c34a5 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() {