Merge pull request #940 from CmdrMoozy/rsa_padding

Add an openssl-sys binding for RSA_padding_check_PKCS1_type_2.
This commit is contained in:
Steven Fackler 2018-06-01 21:16:10 -07:00 committed by GitHub
commit 24f4bdb533
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;