| Index: content/child/webcrypto/webcrypto_util.h
|
| diff --git a/content/child/webcrypto/webcrypto_util.h b/content/child/webcrypto/webcrypto_util.h
|
| index 44d88a752434d398a5f9f9dc31ebc8a0c2d0b1e9..56d9e47173244ffa6b7f8ed55a5644af7b7747ef 100644
|
| --- a/content/child/webcrypto/webcrypto_util.h
|
| +++ b/content/child/webcrypto/webcrypto_util.h
|
| @@ -94,6 +94,17 @@ Status VerifyAesKeyLengthForImport(unsigned int keylen_bytes);
|
| Status CheckKeyCreationUsages(blink::WebCryptoKeyUsageMask all_possible_usages,
|
| blink::WebCryptoKeyUsageMask actual_usages);
|
|
|
| +// Extracts the public exponent and modulus length from the Blink parameters.
|
| +// On success it is guaranteed that:
|
| +// * public_exponent is either 3 or 65537
|
| +// * modulus_length_bits is a multiple of 8
|
| +// * modulus_length is >= 256
|
| +// * modulus_length is <= 16K
|
| +Status GetRsaKeyGenParameters(
|
| + const blink::WebCryptoRsaHashedKeyGenParams* params,
|
| + unsigned int* public_exponent,
|
| + unsigned int* modulus_length_bits);
|
| +
|
| } // namespace webcrypto
|
|
|
| } // namespace content
|
|
|