Switch rsa_test.cc to use new RSA private key parsing API.

Change-Id: I48885402b88309bb514554d209e1827d31738756
Reviewed-on: https://boringssl-review.googlesource.com/6211
Reviewed-by: David Benjamin <davidben@chromium.org>
Reviewed-by: Adam Langley <alangley@gmail.com>
Reviewed-by: Adam Langley <agl@google.com>
This commit is contained in:
Brian Smith 2015-10-12 11:21:56 -10:00 committed by Adam Langley
parent b8c1446c1f
commit a655c73b93

View File

@ -498,7 +498,7 @@ static const uint8_t kEstonianRSAKey[] = {
static bool TestRSA(const uint8_t *der, size_t der_len,
const uint8_t *oaep_ciphertext,
size_t oaep_ciphertext_len) {
ScopedRSA key(d2i_RSAPrivateKey(nullptr, &der, der_len));
ScopedRSA key(RSA_private_key_from_bytes(der, der_len));
if (!key) {
return false;
}