From fcc2c69a8c289283901cd5e984839ae7c8375db5 Mon Sep 17 00:00:00 2001 From: somethingcorrosive Date: Fri, 20 Mar 2026 19:38:59 -0500 Subject: [PATCH] Addressing noncemismatch and cryptofail with quiche/boring --- quiche/src/crypto/boringssl.rs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/quiche/src/crypto/boringssl.rs b/quiche/src/crypto/boringssl.rs index bdbd11533ee..edb9de43b2b 100644 --- a/quiche/src/crypto/boringssl.rs +++ b/quiche/src/crypto/boringssl.rs @@ -29,8 +29,8 @@ pub(crate) struct AES_KEY { impl Algorithm { fn get_evp_aead(self) -> *const EVP_AEAD { match self { - Algorithm::AES128_GCM => unsafe { EVP_aead_aes_128_gcm_tls13() }, - Algorithm::AES256_GCM => unsafe { EVP_aead_aes_256_gcm_tls13() }, + Algorithm::AES128_GCM => unsafe { EVP_aead_aes_128_gcm() }, + Algorithm::AES256_GCM => unsafe { EVP_aead_aes_256_gcm() }, Algorithm::ChaCha20_Poly1305 => unsafe { EVP_aead_chacha20_poly1305() }, @@ -320,10 +320,8 @@ pub(crate) fn hkdf_expand( } extern "C" { - fn EVP_aead_aes_128_gcm_tls13() -> *const EVP_AEAD; - - fn EVP_aead_aes_256_gcm_tls13() -> *const EVP_AEAD; - + fn EVP_aead_aes_128_gcm() -> *const EVP_AEAD; + fn EVP_aead_aes_256_gcm() -> *const EVP_AEAD; fn EVP_aead_chacha20_poly1305() -> *const EVP_AEAD; // HKDF