Unverified Commit 24f4bdb5 authored by Steven Fackler's avatar Steven Fackler Committed by GitHub
Browse files

Merge pull request #940 from CmdrMoozy/rsa_padding

Add an openssl-sys binding for RSA_padding_check_PKCS1_type_2.
parents 83767b86 fb1b9b41
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;