rust/crypto: Add Aes256Xts to SymKey

This type can be used for AES 256 XTS encryption.
Reviewed-by: Steffen Eiden <seiden@linux.ibm.com>
Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com>
Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>
This commit is contained in:
Marc Hartmayer
2024-10-14 17:08:49 +00:00
committed by Steffen Eiden
parent fe2946f76c
commit a0a8aa47a8
3 changed files with 14 additions and 0 deletions
+1
View File
@@ -164,6 +164,7 @@ impl ReqEncrCtx {
pub fn random(ket_tp: SymKeyType) -> Result<Self> {
match ket_tp {
SymKeyType::Aes256 => Self::new_aes_256(None, None, None),
SymKeyType::Aes256Xts => Err(Error::NoAeadKey),
}
}