File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,16 @@ pub const RSA_F4: c_long = 0x10001;
7
7
8
8
cfg_if ! {
9
9
if #[ cfg( not( ossl300) ) ] {
10
+ pub unsafe fn EVP_PKEY_CTX_set_rsa_keygen_bits ( ctx: * mut EVP_PKEY_CTX , bits: c_int) -> c_int {
11
+ EVP_PKEY_CTX_ctrl (
12
+ ctx,
13
+ EVP_PKEY_RSA ,
14
+ EVP_PKEY_OP_KEYGEN ,
15
+ EVP_PKEY_CTRL_RSA_KEYGEN_BITS ,
16
+ bits,
17
+ ptr:: null_mut( ) ,
18
+ )
19
+ }
10
20
pub unsafe fn EVP_PKEY_CTX_set_rsa_keygen_pubexp ( ctx: * mut EVP_PKEY_CTX , pubexp: * mut BIGNUM ) -> c_int {
11
21
EVP_PKEY_CTX_ctrl (
12
22
ctx,
@@ -92,6 +102,7 @@ pub unsafe fn EVP_PKEY_CTX_set0_rsa_oaep_label(
92
102
93
103
pub const EVP_PKEY_CTRL_RSA_PADDING : c_int = EVP_PKEY_ALG_CTRL + 1 ;
94
104
pub const EVP_PKEY_CTRL_RSA_PSS_SALTLEN : c_int = EVP_PKEY_ALG_CTRL + 2 ;
105
+ pub const EVP_PKEY_CTRL_RSA_KEYGEN_BITS : c_int = EVP_PKEY_ALG_CTRL + 3 ;
95
106
pub const EVP_PKEY_CTRL_RSA_KEYGEN_PUBEXP : c_int = EVP_PKEY_ALG_CTRL + 4 ;
96
107
97
108
pub const EVP_PKEY_CTRL_RSA_MGF1_MD : c_int = EVP_PKEY_ALG_CTRL + 5 ;
You can’t perform that action at this time.
0 commit comments