File tree Expand file tree Collapse file tree 4 files changed +8
-0
lines changed Expand file tree Collapse file tree 4 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ pub const EVP_PKEY_RSA: c_int = NID_rsaEncryption;
10
10
pub const EVP_PKEY_DSA : c_int = NID_dsa ;
11
11
pub const EVP_PKEY_DH : c_int = NID_dhKeyAgreement ;
12
12
pub const EVP_PKEY_EC : c_int = NID_X9_62_id_ecPublicKey ;
13
+ #[ cfg( ossl111) ]
14
+ pub const EVP_PKEY_SM2 : c_int = NID_sm2 ;
13
15
#[ cfg( any( ossl111, libressl370) ) ]
14
16
pub const EVP_PKEY_X25519 : c_int = NID_X25519 ;
15
17
#[ cfg( any( ossl111, libressl370) ) ]
Original file line number Diff line number Diff line change @@ -935,6 +935,8 @@ pub const NID_ED25519: c_int = 952;
935
935
#[ cfg( ossl111) ]
936
936
pub const NID_ED448 : c_int = 1088 ;
937
937
#[ cfg( ossl111) ]
938
+ pub const NID_sm2 : c_int = 1172 ;
939
+ #[ cfg( ossl111) ]
938
940
pub const NID_sm3 : c_int = 1143 ;
939
941
#[ cfg( libressl291) ]
940
942
pub const NID_sm3 : c_int = 968 ;
Original file line number Diff line number Diff line change @@ -1074,6 +1074,8 @@ impl Nid {
1074
1074
pub const AES_128_CBC_HMAC_SHA1 : Nid = Nid ( ffi:: NID_aes_128_cbc_hmac_sha1 ) ;
1075
1075
pub const AES_192_CBC_HMAC_SHA1 : Nid = Nid ( ffi:: NID_aes_192_cbc_hmac_sha1 ) ;
1076
1076
pub const AES_256_CBC_HMAC_SHA1 : Nid = Nid ( ffi:: NID_aes_256_cbc_hmac_sha1 ) ;
1077
+ #[ cfg( ossl111) ]
1078
+ pub const SM2 : Nid = Nid ( ffi:: NID_sm2 ) ;
1077
1079
#[ cfg( any( ossl111, libressl291) ) ]
1078
1080
pub const SM3 : Nid = Nid ( ffi:: NID_sm3 ) ;
1079
1081
#[ cfg( ossl111) ]
Original file line number Diff line number Diff line change @@ -85,6 +85,8 @@ impl Id {
85
85
pub const DSA : Id = Id ( ffi:: EVP_PKEY_DSA ) ;
86
86
pub const DH : Id = Id ( ffi:: EVP_PKEY_DH ) ;
87
87
pub const EC : Id = Id ( ffi:: EVP_PKEY_EC ) ;
88
+ #[ cfg( ossl111) ]
89
+ pub const SM2 : Id = Id ( ffi:: EVP_PKEY_SM2 ) ;
88
90
89
91
#[ cfg( any( ossl110, boringssl) ) ]
90
92
pub const HKDF : Id = Id ( ffi:: EVP_PKEY_HKDF ) ;
You can’t perform that action at this time.
0 commit comments