Index: content/renderer/webcrypto/platform_crypto.h |
diff --git a/content/renderer/webcrypto/platform_crypto.h b/content/renderer/webcrypto/platform_crypto.h |
index 7b0607307442dc177554ddf70d347ae32d4c0133..ef2cf98664178641db5acccf9d03c8018e675abe 100644 |
--- a/content/renderer/webcrypto/platform_crypto.h |
+++ b/content/renderer/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. |
// * |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 |