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

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

Issue 814883002: [WebCrypto] Throw OperationError instead of NotSupportedError when AES length is 192 and RSA modulu… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « no previous file | content/test/data/webcrypto/aes_cbc.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/webcrypto/status.cc
diff --git a/content/child/webcrypto/status.cc b/content/child/webcrypto/status.cc
index b932f81d11b1e3639171467211dee5ff0c58c7cd..3d0cccf4ead8e5a8ce7385790cea2ddd2c7baefc 100644
--- a/content/child/webcrypto/status.cc
+++ b/content/child/webcrypto/status.cc
@@ -152,7 +152,7 @@ Status Status::ErrorGenerateAesKeyLength() {
}
Status Status::ErrorAes192BitUnsupported() {
- return Status(blink::WebCryptoErrorTypeNotSupported,
+ return Status(blink::WebCryptoErrorTypeOperation,
"192-bit AES keys are not supported");
}
@@ -227,7 +227,7 @@ Status Status::ErrorImportRsaEmptyModulus() {
}
Status Status::ErrorGenerateRsaUnsupportedModulus() {
- return Status(blink::WebCryptoErrorTypeNotSupported,
+ return Status(blink::WebCryptoErrorTypeOperation,
"The modulus length must be a multiple of 8 bits and >= 256 "
"and <= 16384");
}
« no previous file with comments | « no previous file | content/test/data/webcrypto/aes_cbc.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698