Chromium Code Reviews| Index: content/child/webcrypto/platform_crypto.h |
| diff --git a/content/child/webcrypto/platform_crypto.h b/content/child/webcrypto/platform_crypto.h |
| index 1af616681996551e70a0dd2ca6e0545ac1f36f6e..ee45355944c4eaf3b6c2e54563f519bd94dbed6c 100644 |
| --- a/content/child/webcrypto/platform_crypto.h |
| +++ b/content/child/webcrypto/platform_crypto.h |
| @@ -186,7 +186,6 @@ Status WrapSymKeyAesKw(SymKey* wrapping_key, |
| // Preconditions: |
| // * |wrapping_key| is non-null |
| // * |key| is non-null |
| -// * |algorithm.id()| is for a symmetric key algorithm. |
|
eroman
2014/03/10 21:35:57
Isn't this still the case?
padolph
2014/03/10 23:50:01
Yes, but I thought was implied. Replaced.
|
| // * |wrapped_key_data| is at least 24 bytes and a multiple of 8 bytes |
| Status UnwrapSymKeyAesKw(const CryptoData& wrapped_key_data, |
| SymKey* wrapping_key, |
| @@ -195,6 +194,23 @@ Status UnwrapSymKeyAesKw(const CryptoData& wrapped_key_data, |
| blink::WebCryptoKeyUsageMask usage_mask, |
| blink::WebCryptoKey* key); |
| +// Preconditions: |
| +// * |wrapping_key| is non-null |
| +// * |key| is non-null |
| +Status WrapSymKeyRsaEs(PublicKey* wrapping_key, |
| + SymKey* key, |
| + blink::WebArrayBuffer* buffer); |
| + |
| +// Preconditions: |
| +// * |wrapping_key| is non-null |
| +// * |key| is non-null |
| +Status UnwrapSymKeyRsaEs(const CryptoData& wrapped_key_data, |
| + PrivateKey* wrapping_key, |
| + const blink::WebCryptoAlgorithm& algorithm, |
| + bool extractable, |
| + blink::WebCryptoKeyUsageMask usage_mask, |
| + blink::WebCryptoKey* key); |
| + |
| } // namespace platform |
| } // namespace webcrypto |