| Index: content/child/webcrypto/platform_crypto.h
|
| diff --git a/content/child/webcrypto/platform_crypto.h b/content/child/webcrypto/platform_crypto.h
|
| index 7f253fc8189402eb9173808834ba04e38c9db1e1..095018a1322cc98179ce84e797493af976acfc38 100644
|
| --- a/content/child/webcrypto/platform_crypto.h
|
| +++ b/content/child/webcrypto/platform_crypto.h
|
| @@ -97,19 +97,6 @@ Status EncryptDecryptAesGcm(EncryptOrDecrypt mode,
|
| std::vector<uint8>* buffer);
|
|
|
| // Preconditions:
|
| -// * |key| is non-null.
|
| -// * |data| is not empty.
|
| -Status EncryptRsaEsPkcs1v1_5(PublicKey* key,
|
| - const CryptoData& data,
|
| - std::vector<uint8>* buffer);
|
| -
|
| -// Preconditions:
|
| -// * |key| is non-null.
|
| -Status DecryptRsaEsPkcs1v1_5(PrivateKey* key,
|
| - const CryptoData& data,
|
| - std::vector<uint8>* buffer);
|
| -
|
| -// Preconditions:
|
| // * |key| is non-null
|
| // * |hash| is a digest algorithm
|
| // * |label| MAY be empty (e.g. 0 bytes long).
|
| @@ -181,8 +168,6 @@ Status GenerateSecretKey(const blink::WebCryptoAlgorithm& algorithm,
|
| // * algorithm.id() is for an RSA algorithm.
|
| // * public_exponent, modulus_length_bits and hash_or_null are the same as what
|
| // is in algorithm. They are split out for convenience.
|
| -// * hash_or_null.isNull() may be true if a hash is not applicable to the
|
| -// algorithm
|
| // * modulus_length_bits is not 0
|
| // * public_exponent is not empty.
|
| Status GenerateRsaKeyPair(const blink::WebCryptoAlgorithm& algorithm,
|
| @@ -190,7 +175,6 @@ Status GenerateRsaKeyPair(const blink::WebCryptoAlgorithm& algorithm,
|
| blink::WebCryptoKeyUsageMask usage_mask,
|
| unsigned int modulus_length_bits,
|
| const CryptoData& public_exponent,
|
| - const blink::WebCryptoAlgorithm& hash,
|
| blink::WebCryptoKey* public_key,
|
| blink::WebCryptoKey* private_key);
|
|
|
| @@ -312,24 +296,6 @@ Status DecryptAesKw(SymKey* key,
|
| const CryptoData& data,
|
| std::vector<uint8>* buffer);
|
|
|
| -// Preconditions:
|
| -// * |key| is non-null
|
| -// * |wrapping_key| is non-null
|
| -Status WrapSymKeyRsaEs(SymKey* key,
|
| - PublicKey* wrapping_key,
|
| - std::vector<uint8>* buffer);
|
| -
|
| -// Preconditions:
|
| -// * |wrapping_key| is non-null
|
| -// * |key| is non-null
|
| -// * |algorithm.id()| is for a symmetric key algorithm.
|
| -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
|
|
|