Add an openssl-sys binding for RSA_padding_check_PKCS1_type_2.

This padding check implementation is useful for certain types of RSA
decryption, notably the type performed by Yubico's PIV library.
This commit is contained in:
Axel Rasmussen 2018-05-30 18:30:51 -07:00
parent a1cb6a7328
commit fb1b9b4140
No known key found for this signature in database
GPG Key ID: 9027E5A55C2E90A9
1 changed files with 8 additions and 0 deletions

View File

@ -2365,6 +2365,14 @@ extern "C" {
k: *mut RSA,
) -> c_int;
pub fn RSA_padding_check_PKCS1_type_2(
to: *mut c_uchar,
tlen: c_int,
f: *const c_uchar,
fl: c_int,
rsa_len: c_int,
) -> c_int;
pub fn DSA_new() -> *mut DSA;
pub fn DSA_free(dsa: *mut DSA);
pub fn DSA_size(dsa: *const DSA) -> c_int;