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

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

Issue 287133004: [webcrypto] Add JWK import/export of RSA private keys (NSS). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix comment typeo Created 6 years, 7 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') | no next file » | 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 4fbfd709874742f69c7b412c2de030c311bee196..6d664df35056b4bd9c7697fe4feae49b9b08ff49 100644
--- a/content/child/webcrypto/status.cc
+++ b/content/child/webcrypto/status.cc
@@ -99,12 +99,6 @@ Status Status::ErrorJwkUseAndKeyopsInconsistent() {
"but are inconsistent with each other.");
}
-Status Status::ErrorJwkRsaPrivateKeyUnsupported() {
- return Status(blink::WebCryptoErrorTypeNotSupported,
- "JWK RSA key contained \"d\" property: Private key import is "
- "not yet supported");
-}
-
Status Status::ErrorJwkUnrecognizedKty() {
return Status(blink::WebCryptoErrorTypeData,
"The JWK \"kty\" property was unrecognized");
@@ -116,6 +110,12 @@ Status Status::ErrorJwkIncorrectKeyLength() {
"of key data for the given algorithm.");
}
+Status Status::ErrorJwkIncompleteOptionalRsaPrivateKey() {
+ return Status(blink::WebCryptoErrorTypeData,
+ "The optional JWK properties p, q, dp, dq, qi must either all "
+ "be provided, or none provided");
+}
+
Status Status::ErrorImportEmptyKeyData() {
return Status(blink::WebCryptoErrorTypeData, "No key data was provided");
}
« no previous file with comments | « content/child/webcrypto/status.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698