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

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: 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
Index: content/child/webcrypto/status.cc
diff --git a/content/child/webcrypto/status.cc b/content/child/webcrypto/status.cc
index 9439c933db13e999fb7dec2deaf30eac2b33c9da..9c53f061de46302e9df331944400768d3d49257d 100644
--- a/content/child/webcrypto/status.cc
+++ b/content/child/webcrypto/status.cc
@@ -195,6 +195,12 @@ Status Status::ErrorGenerateRsaZeroModulus() {
"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() {
return Status(blink::WebCryptoErrorTypeData,
"No bytes for the exponent were provided");

Powered by Google App Engine
This is Rietveld 408576698