diff options
| author | [email protected] <[email protected]> | 2017-12-02 12:30:50 +0100 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2017-12-02 12:30:50 +0100 |
| commit | fccb2eab4e39726fcfd2af79f20c872f488a14b3 (patch) | |
| tree | 52b113d210b314e6b07a1519d5da178384ee1168 /openssl-sys/src | |
| parent | Merge pull request #783 from ignatenkobrain/patch-1 (diff) | |
| download | rust-openssl-fccb2eab4e39726fcfd2af79f20c872f488a14b3.tar.xz rust-openssl-fccb2eab4e39726fcfd2af79f20c872f488a14b3.zip | |
Adding dp(), dq() and qi() methods to RSA, to get the CRT parameters back
Diffstat (limited to 'openssl-sys/src')
| -rw-r--r-- | openssl-sys/src/ossl110.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/openssl-sys/src/ossl110.rs b/openssl-sys/src/ossl110.rs index ff1e0c7c..8cd9a2e1 100644 --- a/openssl-sys/src/ossl110.rs +++ b/openssl-sys/src/ossl110.rs @@ -172,6 +172,12 @@ extern "C" { d: *mut *const ::BIGNUM, ); pub fn RSA_get0_factors(r: *const ::RSA, p: *mut *const ::BIGNUM, q: *mut *const ::BIGNUM); + pub fn RSA_get0_crt_params( + r: *const ::RSA, + dmp1: *mut *const ::BIGNUM, + dmq1: *mut *const ::BIGNUM, + iqmp: *mut *const ::BIGNUM, + ) -> c_int; pub fn RSA_set0_key( r: *mut ::RSA, n: *mut ::BIGNUM, |