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

Unified Diff: components/webcrypto/status.cc

Issue 2289033002: Require extractable=false for KDF import (Closed)
Patch Set: update another test Created 4 years, 3 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 | « components/webcrypto/status.h ('k') | third_party/WebKit/LayoutTests/crypto/subtle/derive-hkdf-keys.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/webcrypto/status.cc
diff --git a/components/webcrypto/status.cc b/components/webcrypto/status.cc
index f0d25ff435ecdceeece001934160b511b2607b43..6ba4cbfccde1d8b524c91a60ad9687261c6f9866 100644
--- a/components/webcrypto/status.cc
+++ b/components/webcrypto/status.cc
@@ -362,6 +362,11 @@ Status Status::ErrorPbkdf2Iterations0() {
"PBKDF2 requires iterations > 0");
}
+Status Status::ErrorImportExtractableKdfKey() {
+ return Status(blink::WebCryptoErrorTypeSyntax,
+ "KDF keys must set extractable=false");
+}
+
Status::Status(blink::WebCryptoErrorType error_type,
const std::string& error_details_utf8)
: type_(TYPE_ERROR),
« no previous file with comments | « components/webcrypto/status.h ('k') | third_party/WebKit/LayoutTests/crypto/subtle/derive-hkdf-keys.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698