Unverified Commit fb1b9b41 authored by Axel Rasmussen's avatar Axel Rasmussen
Browse files

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.
parent a1cb6a73
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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;