mirror of
https://github.com/trussed-dev/trussed-staging.git
synced 2026-06-20 04:16:23 -07:00
Remove unused associated constant Aead::AEAD_ID in normal builds
This fixes a new compiler warning.
This commit is contained in:
@@ -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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user