Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(502)

Unified Diff: content/child/webcrypto/platform_crypto.h

Issue 282903002: [webcrypto] Remove RSA-ES support (2 of 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase and merge conflicts (yuck) Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/child/webcrypto/jwk.cc ('k') | content/child/webcrypto/platform_crypto_nss.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « content/child/webcrypto/jwk.cc ('k') | content/child/webcrypto/platform_crypto_nss.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698