Index: content/child/webcrypto/webcrypto_util.cc |
diff --git a/content/child/webcrypto/webcrypto_util.cc b/content/child/webcrypto/webcrypto_util.cc |
index 4574d3c136bb4816ab33c8bf6ecc85e45e683017..45c3accbee071c843baa649077b4c1b73429aa88 100644 |
--- a/content/child/webcrypto/webcrypto_util.cc |
+++ b/content/child/webcrypto/webcrypto_util.cc |
@@ -384,17 +384,11 @@ bool CreateSecretKeyAlgorithm(const blink::WebCryptoAlgorithm& algorithm, |
blink::WebCryptoAlgorithm hash = GetInnerHashAlgorithm(algorithm); |
if (hash.isNull()) |
return false; |
-#if defined(WEBCRYPTO_HMAC_KEY_HAS_LENGTH) |
if (keylen_bytes > UINT_MAX / 8) |
return false; |
-#endif |
*key_algorithm = blink::WebCryptoKeyAlgorithm::adoptParamsAndCreate( |
algorithm.id(), |
-#if defined(WEBCRYPTO_HMAC_KEY_HAS_LENGTH) |
new blink::WebCryptoHmacKeyAlgorithmParams(hash, keylen_bytes * 8)); |
-#else |
- new blink::WebCryptoHmacKeyAlgorithmParams(hash)); |
-#endif |
return true; |
} |
case blink::WebCryptoAlgorithmIdAesKw: |