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

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

Issue 512023002: Refactor the interface for generating keys. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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/algorithm_implementation.cc
diff --git a/content/child/webcrypto/algorithm_implementation.cc b/content/child/webcrypto/algorithm_implementation.cc
index d362fc9afc1fb1b55656d03a7ac39d3a34f7298f..52e37aaf2c428b5dc9c7503916b930a28ee040b2 100644
--- a/content/child/webcrypto/algorithm_implementation.cc
+++ b/content/child/webcrypto/algorithm_implementation.cc
@@ -52,32 +52,10 @@ Status AlgorithmImplementation::Digest(
return Status::ErrorUnsupported();
}
-Status AlgorithmImplementation::VerifyKeyUsagesBeforeGenerateKey(
- blink::WebCryptoKeyUsageMask usage_mask) const {
- return Status::ErrorUnsupported();
-}
-
-Status AlgorithmImplementation::VerifyKeyUsagesBeforeGenerateKeyPair(
- blink::WebCryptoKeyUsageMask usage_mask,
- blink::WebCryptoKeyUsageMask* public_usage_mask,
- blink::WebCryptoKeyUsageMask* private_usage_mask) const {
- *public_usage_mask = *private_usage_mask = 0;
- return Status::ErrorUnsupported();
-}
-
-Status AlgorithmImplementation::GenerateSecretKey(
+Status AlgorithmImplementation::GenerateKey(
const blink::WebCryptoAlgorithm& algorithm,
bool extractable,
blink::WebCryptoKeyUsageMask usage_mask,
- blink::WebCryptoKey* key) const {
- return Status::ErrorUnsupported();
-}
-
-Status AlgorithmImplementation::GenerateKeyPair(
- const blink::WebCryptoAlgorithm& algorithm,
- bool extractable,
- blink::WebCryptoKeyUsageMask public_usage_mask,
- blink::WebCryptoKeyUsageMask private_usage_mask,
blink::WebCryptoKey* public_key,
blink::WebCryptoKey* private_key) const {
return Status::ErrorUnsupported();

Powered by Google App Engine
This is Rietveld 408576698