File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,12 @@ pub const PKCS5_SALT_LEN: c_int = 8;
7
7
pub const PKCS12_DEFAULT_ITER : c_int = 2048 ;
8
8
9
9
pub const EVP_PKEY_RSA : c_int = NID_rsaEncryption ;
10
+ #[ cfg( any( openssl111, boringssl) ) ]
11
+ pub const EVP_PKEY_RSA_PSS : c_int = NID_rsassaPss ;
10
12
pub const EVP_PKEY_DSA : c_int = NID_dsa ;
11
13
pub const EVP_PKEY_DH : c_int = NID_dhKeyAgreement ;
14
+ #[ cfg( ossl110) ]
15
+ pub const EVP_PKEY_DHX : c_int = NID_dhpublicnumber ;
12
16
pub const EVP_PKEY_EC : c_int = NID_X9_62_id_ecPublicKey ;
13
17
#[ cfg( ossl111) ]
14
18
pub const EVP_PKEY_SM2 : c_int = NID_sm2 ;
Original file line number Diff line number Diff line change @@ -135,6 +135,8 @@ pub const NID_sha512WithRSAEncryption: c_int = 670;
135
135
pub const NID_sha224WithRSAEncryption : c_int = 671 ;
136
136
pub const NID_pkcs3 : c_int = 27 ;
137
137
pub const NID_dhKeyAgreement : c_int = 28 ;
138
+ #[ cfg( ossl110) ]
139
+ pub const NID_dhpublicnumber : c_int = 920 ;
138
140
pub const NID_pkcs5 : c_int = 187 ;
139
141
pub const NID_pbeWithMD2AndDES_CBC : c_int = 9 ;
140
142
pub const NID_pbeWithMD5AndDES_CBC : c_int = 10 ;
Original file line number Diff line number Diff line change @@ -78,12 +78,16 @@ pub struct Id(c_int);
78
78
79
79
impl Id {
80
80
pub const RSA : Id = Id ( ffi:: EVP_PKEY_RSA ) ;
81
+ #[ cfg( any( openssl111, boringssl) ) ]
82
+ pub const RSA_PSS : Id = Id ( ffi:: EVP_PKEY_RSA_PSS ) ;
81
83
#[ cfg( not( boringssl) ) ]
82
84
pub const HMAC : Id = Id ( ffi:: EVP_PKEY_HMAC ) ;
83
85
#[ cfg( not( boringssl) ) ]
84
86
pub const CMAC : Id = Id ( ffi:: EVP_PKEY_CMAC ) ;
85
87
pub const DSA : Id = Id ( ffi:: EVP_PKEY_DSA ) ;
86
88
pub const DH : Id = Id ( ffi:: EVP_PKEY_DH ) ;
89
+ #[ cfg( ossl110) ]
90
+ pub const DHX : Id = Id ( ffi:: EVP_PKEY_DHX ) ;
87
91
pub const EC : Id = Id ( ffi:: EVP_PKEY_EC ) ;
88
92
#[ cfg( ossl111) ]
89
93
pub const SM2 : Id = Id ( ffi:: EVP_PKEY_SM2 ) ;
You can’t perform that action at this time.
0 commit comments