Add ecdh tests for multiple keys including unprotected ones

This commit is contained in:
Sosthène Guédon
2025-03-06 09:55:34 +01:00
committed by sosthene-nitrokey
parent 433313a837
commit 5ff9e592ec
2 changed files with 28 additions and 13 deletions
+1 -4
View File
@@ -276,10 +276,7 @@ impl AsymmetricKeyReference {
}
pub fn is_encrypted(self) -> bool {
match self {
Self::CardAuthentication => false,
_ => true,
}
!matches!(self, Self::CardAuthentication)
}
}