Index: content/child/webcrypto/jwk.cc |
diff --git a/content/child/webcrypto/jwk.cc b/content/child/webcrypto/jwk.cc |
index 118df718af4eafea663a30c1b2c4e6e7e60f88f0..9508cfc1417689a3225aa5106aaa6d4e6d2809b4 100644 |
--- a/content/child/webcrypto/jwk.cc |
+++ b/content/child/webcrypto/jwk.cc |
@@ -69,7 +69,7 @@ |
// | "wrapKey" | key wrap | |
// | "unwrapKey" | key unwrap | |
// | "deriveKey" | key derivation | |
-// | "deriveBits" | key derivation TODO(padolph): not currently supported | |
+// | "deriveBits" | key derivation | |
// +-------+--------------------------------------------------------------+ |
// |
// - use (Key Use) |
@@ -227,11 +227,10 @@ blink::WebCryptoAlgorithm CreateRsaOaepImportAlgorithm( |
} |
// Web Crypto equivalent usage mask for JWK 'use' = 'enc'. |
-// TODO(padolph): Add 'deriveBits' once supported by Blink. |
const blink::WebCryptoKeyUsageMask kJwkEncUsage = |
blink::WebCryptoKeyUsageEncrypt | blink::WebCryptoKeyUsageDecrypt | |
blink::WebCryptoKeyUsageWrapKey | blink::WebCryptoKeyUsageUnwrapKey | |
- blink::WebCryptoKeyUsageDeriveKey; |
+ blink::WebCryptoKeyUsageDeriveKey | blink::WebCryptoKeyUsageDeriveBits; |
// Web Crypto equivalent usage mask for JWK 'use' = 'sig'. |
const blink::WebCryptoKeyUsageMask kJwkSigUsage = |
blink::WebCryptoKeyUsageSign | blink::WebCryptoKeyUsageVerify; |