Index: content/child/webcrypto/status.cc |
diff --git a/content/child/webcrypto/status.cc b/content/child/webcrypto/status.cc |
index a7afdb3c063968da78fbcb626eaaabef99a04ca5..3de50cb48606059df02c5ed4748ba80c184fe795 100644 |
--- a/content/child/webcrypto/status.cc |
+++ b/content/child/webcrypto/status.cc |
@@ -243,6 +243,23 @@ Status Status::ErrorCreateKeyBadUsages() { |
"Cannot create a key using the specified key usages."); |
} |
+Status Status::ErrorImportedEcKeyIncorrectCurve() { |
+ return Status( |
+ blink::WebCryptoErrorTypeData, |
+ "The imported EC key specifies a different curve than requested"); |
+} |
+ |
+Status Status::ErrorJwkIncorrectCrv() { |
+ return Status( |
+ blink::WebCryptoErrorTypeData, |
+ "The JWK's \"crv\" member specifies a different curve than requested"); |
+} |
+ |
+Status Status::ErrorEcKeyInvalid() { |
+ return Status(blink::WebCryptoErrorTypeData, |
+ "The imported EC key is invalid"); |
+} |
+ |
Status::Status(blink::WebCryptoErrorType error_type, |
const std::string& error_details_utf8) |
: type_(TYPE_ERROR), |