Skip to content

Commit bbfe01b

Browse files
authored
Merge pull request #2081 from Arnavion/nid_chacha20_poly1305
Add binding to NID of Chacha20-Poly1305 cipher
2 parents bede98b + 05b620d commit bbfe01b

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

openssl-sys/src/obj_mac.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -996,3 +996,7 @@ pub const NID_sha3_512: c_int = 1034;
996996
pub const NID_shake128: c_int = 1100;
997997
#[cfg(ossl111)]
998998
pub const NID_shake256: c_int = 1101;
999+
#[cfg(ossl110)]
1000+
pub const NID_chacha20_poly1305: c_int = 1018;
1001+
#[cfg(libressl271)]
1002+
pub const NID_chacha20_poly1305: c_int = 967;

openssl/src/nid.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1090,6 +1090,8 @@ impl Nid {
10901090
pub const SHAKE128: Nid = Nid(ffi::NID_shake128);
10911091
#[cfg(ossl111)]
10921092
pub const SHAKE256: Nid = Nid(ffi::NID_shake256);
1093+
#[cfg(any(ossl110, libressl271))]
1094+
pub const CHACHA20_POLY1305: Nid = Nid(ffi::NID_chacha20_poly1305);
10931095
}
10941096

10951097
#[cfg(test)]

0 commit comments

Comments
 (0)