Skip to content

Commit

Permalink
Add binding to NID of Chacha20-Poly1305 cipher
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnavion committed Nov 2, 2023
1 parent bede98b commit 05b620d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions openssl-sys/src/obj_mac.rs
Original file line number Diff line number Diff line change
Expand Up @@ -996,3 +996,7 @@ pub const NID_sha3_512: c_int = 1034;
pub const NID_shake128: c_int = 1100;
#[cfg(ossl111)]
pub const NID_shake256: c_int = 1101;
#[cfg(ossl110)]
pub const NID_chacha20_poly1305: c_int = 1018;
#[cfg(libressl271)]
pub const NID_chacha20_poly1305: c_int = 967;
2 changes: 2 additions & 0 deletions openssl/src/nid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1090,6 +1090,8 @@ impl Nid {
pub const SHAKE128: Nid = Nid(ffi::NID_shake128);
#[cfg(ossl111)]
pub const SHAKE256: Nid = Nid(ffi::NID_shake256);
#[cfg(any(ossl110, libressl271))]
pub const CHACHA20_POLY1305: Nid = Nid(ffi::NID_chacha20_poly1305);
}

#[cfg(test)]
Expand Down

0 comments on commit 05b620d

Please sign in to comment.