diff --git a/rust/pv/src/crypto.rs b/rust/pv/src/crypto.rs index 65b4f994..d4442a06 100644 --- a/rust/pv/src/crypto.rs +++ b/rust/pv/src/crypto.rs @@ -119,6 +119,7 @@ impl SymKeyType { } /// Returns true if the [`SymKeyType`] is an AEAD key + #[must_use] pub const fn is_aead(&self) -> bool { self.tag_len().is_some() } diff --git a/rust/pv/src/req/keyslot.rs b/rust/pv/src/req/keyslot.rs index b8415fac..633e1e4f 100644 --- a/rust/pv/src/req/keyslot.rs +++ b/rust/pv/src/req/keyslot.rs @@ -182,6 +182,7 @@ impl Keyslot { } /// Return the public host key hash size for the given version of the key-slot in bytes + #[must_use] pub fn phkh_size(&self) -> u32 { match self { Keyslot::V1(_) => KeyslotV1::PHKH_SIZE, @@ -190,6 +191,7 @@ impl Keyslot { } /// Return the size of the key-slot in bytes + #[must_use] pub fn size(&self) -> usize { match self { Keyslot::V1(_) => KeyslotV1::SIZE,