Home
last modified time | relevance | path

Searched refs:Variant (Results 1 – 2 of 2) sorted by relevance

/trusty/user/app/sample/hwcryptohal/server/
Dopaque_key.rs411 fn get_aes_variant_key_size(variant: &crypto::aes::Variant) -> usize { in get_aes_variant_key_size()
413 crypto::aes::Variant::Aes128 => 16, in get_aes_variant_key_size()
414 crypto::aes::Variant::Aes192 => 24, in get_aes_variant_key_size()
415 crypto::aes::Variant::Aes256 => 32, in get_aes_variant_key_size()
422 fn get_aes_variant(key_type: &KeyType) -> Result<crypto::aes::Variant, HwCryptoError> { in get_aes_variant() argument
428 | KeyType::AES_128_CMAC => Ok(crypto::aes::Variant::Aes128), in get_aes_variant()
433 | KeyType::AES_256_CMAC => Ok(crypto::aes::Variant::Aes256), in get_aes_variant()
523 crypto::aes::Variant::Aes128 => Ok(KeyMaterial::Aes( in generate_key_material()
526 crypto::aes::Variant::Aes192 => Err(hwcrypto_err!( in generate_key_material()
530 crypto::aes::Variant::Aes256 => Ok(KeyMaterial::Aes( in generate_key_material()
/trusty/user/app/keymint/
Dkey_wrapper.rs131 variant: aes::Variant, in generate_key() argument