Home
last modified time | relevance | path

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

/trusty/user/app/sample/hwcryptohal/server/
Dhwcrypto_device_key.rs231 let mut derived_key = Vec::<u8>::new(); in derive_dice_policy_bound_key() localVariable
232 derived_key.try_reserve(key_size)?; in derive_dice_policy_bound_key()
233 derived_key.resize(key_size, 0); in derive_dice_policy_bound_key()
250 .derive(&concat_context, &mut derived_key[..]) in derive_dice_policy_bound_key()
261 let km = opaque_key::generate_key_material(&policy.keyType, Some(derived_key))?; in derive_dice_policy_bound_key()
353 let derived_key = in deriveKey() localVariable
355 Ok(DerivedKey::ExplicitKey(derived_key)) in deriveKey()
438 let derived_key = assert_ok!(hw_device_key.deriveKey(&params)); in derived_clear_key() localVariable
439 let key1 = match derived_key { in derived_clear_key()
451 let derived_key = assert_ok!(hw_device_key.deriveKey(&params)); in derived_clear_key() localVariable
[all …]
/trusty/user/app/sample/hwcryptokey-test/
Dversioned_keys_explicit.rs201 let derived_key = assert_ok!(hw_device_key.deriveKey(&params)); in old_dice_generates_old_clear_key_and_new_policy() localVariable
204 let derived_key = match derived_key { in old_dice_generates_old_clear_key_and_new_policy() localVariable
209 assert_eq!(derived_key.len() as i32, 256, "wrong key length"); in old_dice_generates_old_clear_key_and_new_policy()
212 assert_eq!(derived_key, VERSION_0_CLEAR_KEY.to_vec(), "Retrieved version 0 key mismatch"); in old_dice_generates_old_clear_key_and_new_policy()
388 let derived_key = hw_device_key.deriveKey(&params); in invalid_key_sizes() localVariable
389 expect!(derived_key.is_err(), "expected error on bad key size"); in invalid_key_sizes()
398 let derived_key = hw_device_key.deriveKey(&params); in invalid_key_sizes() localVariable
399 expect!(derived_key.is_err(), "expected error on bad key size"); in invalid_key_sizes()