aboutsummaryrefslogtreecommitdiff
path: root/openssl-sys/src
diff options
context:
space:
mode:
author[email protected] <[email protected]>2017-12-02 12:30:50 +0100
committer[email protected] <[email protected]>2017-12-02 12:30:50 +0100
commitfccb2eab4e39726fcfd2af79f20c872f488a14b3 (patch)
tree52b113d210b314e6b07a1519d5da178384ee1168 /openssl-sys/src
parentMerge pull request #783 from ignatenkobrain/patch-1 (diff)
downloadrust-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.rs6
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,