diff options
| author | Axel Rasmussen <[email protected]> | 2018-05-30 18:30:51 -0700 |
|---|---|---|
| committer | Axel Rasmussen <[email protected]> | 2018-05-30 18:48:42 -0700 |
| commit | fb1b9b414084aac35611bc2149bde0ae1175090a (patch) | |
| tree | 13a9717c1992aca830bd0303da64a7c7031f70bd /openssl-sys | |
| parent | Merge pull request #938 from sfackler/verified-chain (diff) | |
| download | rust-openssl-fb1b9b414084aac35611bc2149bde0ae1175090a.tar.xz rust-openssl-fb1b9b414084aac35611bc2149bde0ae1175090a.zip | |
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.
Diffstat (limited to 'openssl-sys')
| -rw-r--r-- | openssl-sys/src/lib.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/openssl-sys/src/lib.rs b/openssl-sys/src/lib.rs index f2a77cab..aaeb9713 100644 --- a/openssl-sys/src/lib.rs +++ b/openssl-sys/src/lib.rs @@ -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; |