| Index: content/child/webcrypto/webcrypto_util.h
|
| diff --git a/content/child/webcrypto/webcrypto_util.h b/content/child/webcrypto/webcrypto_util.h
|
| index 1568b104c15d265cb4e3e9b8013f12a337d3311e..e90dee778b0842e56917b40fa0bb43457ebabe62 100644
|
| --- a/content/child/webcrypto/webcrypto_util.h
|
| +++ b/content/child/webcrypto/webcrypto_util.h
|
| @@ -130,6 +130,16 @@ Status GetHmacKeyLength(const blink::WebCryptoAlgorithm& key_length_algorithm,
|
| bool* has_length_bits,
|
| unsigned int* length_bits);
|
|
|
| +// Splits the combined usages given to GenerateKey() into the respective usages
|
| +// for the public key and private key. Returns an error if the usages are
|
| +// invalid.
|
| +Status GetUsagesForGenerateAsymmetricKey(
|
| + blink::WebCryptoKeyUsageMask combined_usages,
|
| + blink::WebCryptoKeyUsageMask all_public_usages,
|
| + blink::WebCryptoKeyUsageMask all_private_usages,
|
| + blink::WebCryptoKeyUsageMask* public_usages,
|
| + blink::WebCryptoKeyUsageMask* private_usages);
|
| +
|
| } // namespace webcrypto
|
|
|
| } // namespace content
|
|
|