Remove unused associated constant Aead::AEAD_ID in normal builds

This fixes a new compiler warning.
This commit is contained in:
Robin Krahl
2026-03-23 13:47:04 +01:00
parent 0c0fb4fed6
commit 7e82a4fb11
+3
View File
@@ -122,11 +122,13 @@ trait Aead:
TagSize = <ChaCha20Poly1305 as AeadCore>::TagSize,
>
{
#[cfg(test)]
const AEAD_ID: u16;
const X25519_HKDF_SHA256_SELF_HPKE_SUITE_ID: &'static [u8];
}
impl Aead for ChaCha20Poly1305 {
#[cfg(test)]
const AEAD_ID: u16 = 0x0003;
const X25519_HKDF_SHA256_SELF_HPKE_SUITE_ID: &'static [u8] =
X25519_HKDF_SHA256_CHACHA20_POLY1305_HPKE_SUITE_ID;
@@ -134,6 +136,7 @@ impl Aead for ChaCha20Poly1305 {
impl Aead for ChaCha8Poly1305 {
/// Custom non-standard Id
#[cfg(test)]
const AEAD_ID: u16 = 0xFFFE;
const X25519_HKDF_SHA256_SELF_HPKE_SUITE_ID: &'static [u8] = b"HPKE\x00\x20\x00\x01\xFF\xFE";
}