Index: content/child/webcrypto/nss/aes_gcm_nss.cc |
diff --git a/content/child/webcrypto/nss/aes_gcm_nss.cc b/content/child/webcrypto/nss/aes_gcm_nss.cc |
index 5dfbb08328e711e05252524077fcaa4275ed8f56..5772153f4061253fc3747b81479c9331559fe61e 100644 |
--- a/content/child/webcrypto/nss/aes_gcm_nss.cc |
+++ b/content/child/webcrypto/nss/aes_gcm_nss.cc |
@@ -153,13 +153,17 @@ class AesGcmImplementation : public AesAlgorithm { |
return AesAlgorithm::VerifyKeyUsagesBeforeImportKey(format, usage_mask); |
} |
- virtual Status VerifyKeyUsagesBeforeGenerateKey( |
- blink::WebCryptoKeyUsageMask usage_mask) const OVERRIDE { |
+ virtual Status GenerateKey(const blink::WebCryptoAlgorithm& algorithm, |
+ bool extractable, |
+ blink::WebCryptoKeyUsageMask usage_mask, |
+ GenerateKeyResult* result) const OVERRIDE { |
// Prevent generating AES-GCM keys if it is unavailable. |
Status status = NssSupportsAesGcm(); |
if (status.IsError()) |
return status; |
- return AesAlgorithm::VerifyKeyUsagesBeforeGenerateKey(usage_mask); |
+ |
+ return AesAlgorithm::GenerateKey( |
+ algorithm, extractable, usage_mask, result); |
} |
virtual Status Encrypt(const blink::WebCryptoAlgorithm& algorithm, |