From 9918693037dce8aa4bb6f08741b6812923486c18 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 19 Jun 2024 11:26:03 +0200 Subject: Merging upstream version 1.76.0+dfsg1. Signed-off-by: Daniel Baumann --- vendor/orion/src/hazardous/aead/chacha20poly1305.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'vendor/orion/src/hazardous/aead') diff --git a/vendor/orion/src/hazardous/aead/chacha20poly1305.rs b/vendor/orion/src/hazardous/aead/chacha20poly1305.rs index bc1175809..821125381 100644 --- a/vendor/orion/src/hazardous/aead/chacha20poly1305.rs +++ b/vendor/orion/src/hazardous/aead/chacha20poly1305.rs @@ -123,10 +123,10 @@ use core::convert::TryInto; use zeroize::Zeroizing; /// The initial counter used for encryption and decryption. -const ENC_CTR: u32 = 1; +pub(crate) const ENC_CTR: u32 = 1; /// The initial counter used for Poly1305 key generation. -const AUTH_CTR: u32 = 0; +pub(crate) const AUTH_CTR: u32 = 0; /// The maximum size of the plaintext (see [RFC 8439](https://www.rfc-editor.org/rfc/rfc8439#section-2.8)). pub const P_MAX: u64 = (u32::MAX as u64) * 64; @@ -147,7 +147,7 @@ pub(crate) fn poly1305_key_gen( } /// Authenticates the ciphertext, ad and their lengths. -fn process_authentication( +pub(crate) fn process_authentication( auth_ctx: &mut Poly1305, ad: &[u8], ciphertext: &[u8], -- cgit v1.2.3