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:
parent
b8c1446c1f
commit
a655c73b93
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user