diff options
| author | Thom May <[email protected]> | 2015-10-28 16:40:05 +0000 |
|---|---|---|
| committer | Thom May <[email protected]> | 2015-10-28 18:15:55 +0000 |
| commit | 11e3b1b56317ca1e24cfc1c0a3805123fa73bfb8 (patch) | |
| tree | d9e8db5b5e4f03aa4dbc4ac16ad9922e02077a88 /openssl-sys/src | |
| parent | Better debug impls (diff) | |
| download | rust-openssl-11e3b1b56317ca1e24cfc1c0a3805123fa73bfb8.tar.xz rust-openssl-11e3b1b56317ca1e24cfc1c0a3805123fa73bfb8.zip | |
Provide public_decrypt, private_encrypt for PKEY
Diffstat (limited to 'openssl-sys/src')
| -rw-r--r-- | openssl-sys/src/lib.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/openssl-sys/src/lib.rs b/openssl-sys/src/lib.rs index 96da64f3..2aa36a89 100644 --- a/openssl-sys/src/lib.rs +++ b/openssl-sys/src/lib.rs @@ -516,6 +516,10 @@ extern "C" { pub fn RSA_generate_key_ex(rsa: *mut RSA, bits: c_int, e: *mut BIGNUM, cb: *const c_void) -> c_int; pub fn RSA_private_decrypt(flen: c_int, from: *const u8, to: *mut u8, k: *mut RSA, pad: c_int) -> c_int; + pub fn RSA_public_decrypt(flen: c_int, from: *const u8, to: *mut u8, k: *mut RSA, + pad: c_int) -> c_int; + pub fn RSA_private_encrypt(flen: c_int, from: *const u8, to: *mut u8, k: *mut RSA, + pad: c_int) -> c_int; pub fn RSA_public_encrypt(flen: c_int, from: *const u8, to: *mut u8, k: *mut RSA, pad: c_int) -> c_int; pub fn RSA_sign(t: c_int, m: *const u8, mlen: c_uint, sig: *mut u8, siglen: *mut c_uint, |