| Index: content/child/webcrypto/openssl/hmac_openssl.cc
|
| diff --git a/content/child/webcrypto/openssl/hmac_openssl.cc b/content/child/webcrypto/openssl/hmac_openssl.cc
|
| index c6f6536275d547f4a977eace6b351497812190ae..3bc126a50a1f40dcd4736d47590a18f3086137ad 100644
|
| --- a/content/child/webcrypto/openssl/hmac_openssl.cc
|
| +++ b/content/child/webcrypto/openssl/hmac_openssl.cc
|
| @@ -70,15 +70,20 @@ class HmacImplementation : public AlgorithmImplementation {
|
| public:
|
| HmacImplementation() {}
|
|
|
| - virtual Status GenerateSecretKey(const blink::WebCryptoAlgorithm& algorithm,
|
| - bool extractable,
|
| - blink::WebCryptoKeyUsageMask usage_mask,
|
| - blink::WebCryptoKey* key) const OVERRIDE {
|
| + virtual Status GenerateKey(const blink::WebCryptoAlgorithm& algorithm,
|
| + bool extractable,
|
| + blink::WebCryptoKeyUsageMask usage_mask,
|
| + blink::WebCryptoKey*,
|
| + blink::WebCryptoKey* key) const OVERRIDE {
|
| + Status status = CheckKeyCreationUsages(kAllKeyUsages, usage_mask);
|
| + if (status.IsError())
|
| + return status;
|
| +
|
| const blink::WebCryptoHmacKeyGenParams* params =
|
| algorithm.hmacKeyGenParams();
|
|
|
| unsigned int keylen_bits = 0;
|
| - Status status = GetHmacKeyGenLengthInBits(params, &keylen_bits);
|
| + status = GetHmacKeyGenLengthInBits(params, &keylen_bits);
|
| if (status.IsError())
|
| return status;
|
|
|
| @@ -102,11 +107,6 @@ class HmacImplementation : public AlgorithmImplementation {
|
| }
|
| }
|
|
|
| - virtual Status VerifyKeyUsagesBeforeGenerateKey(
|
| - blink::WebCryptoKeyUsageMask usage_mask) const OVERRIDE {
|
| - return CheckKeyCreationUsages(kAllKeyUsages, usage_mask);
|
| - }
|
| -
|
| virtual Status ImportKeyRaw(const CryptoData& key_data,
|
| const blink::WebCryptoAlgorithm& algorithm,
|
| bool extractable,
|
|
|