diff options
| author | Steven Fackler <[email protected]> | 2015-11-16 23:16:04 -0500 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2015-11-16 23:16:04 -0500 |
| commit | 65e1d08dd3ef9cd6114303231996b021d8be0ed6 (patch) | |
| tree | 06424e29e360dcc2180c4afba1d6dfecce3c5d79 /openssl-sys | |
| parent | Fix syntax (diff) | |
| parent | Provide public_decrypt, private_encrypt for PKEY (diff) | |
| download | rust-openssl-65e1d08dd3ef9cd6114303231996b021d8be0ed6.tar.xz rust-openssl-65e1d08dd3ef9cd6114303231996b021d8be0ed6.zip | |
Merge pull request #300 from thommay/pkey_private_encrypt
Provide public_decrypt, private_encrypt for PKEY
Diffstat (limited to 'openssl-sys')
| -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, |