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

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

Issue 401233004: Refactor RSA key generation for WebCrypto's NSS implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix bad merge Created 6 years, 5 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
« no previous file with comments | « content/child/webcrypto/status.h ('k') | content/child/webcrypto/webcrypto_util.h » ('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 9439c933db13e999fb7dec2deaf30eac2b33c9da..666f225aac3bd3715fa0b760ec2ece62bf26d5df 100644
--- a/content/child/webcrypto/status.cc
+++ b/content/child/webcrypto/status.cc
@@ -190,9 +190,10 @@ Status Status::ErrorImportRsaEmptyModulus() {
return Status(blink::WebCryptoErrorTypeData, "The modulus is empty");
}
-Status Status::ErrorGenerateRsaZeroModulus() {
- return Status(blink::WebCryptoErrorTypeData,
- "The modulus bit length cannot be zero");
+Status Status::ErrorGenerateRsaUnsupportedModulus() {
+ return Status(blink::WebCryptoErrorTypeNotSupported,
+ "The modulus length must be a multiple of 8 bits and >= 256 "
+ "and <= 16384");
}
Status Status::ErrorImportRsaEmptyExponent() {
« no previous file with comments | « content/child/webcrypto/status.h ('k') | content/child/webcrypto/webcrypto_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698