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

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

Issue 698363002: webcrypto: Add ECDSA algorithm (chromium-side) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@extract_more
Patch Set: rebase + add another test Created 6 years, 1 month 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 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),

Powered by Google App Engine
This is Rietveld 408576698