Searched refs:derived_key (Results 1 – 2 of 2) sorted by relevance
231 let mut derived_key = Vec::<u8>::new(); in derive_dice_policy_bound_key() localVariable232 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() localVariable355 Ok(DerivedKey::ExplicitKey(derived_key)) in deriveKey()438 let derived_key = assert_ok!(hw_device_key.deriveKey(¶ms)); in derived_clear_key() localVariable439 let key1 = match derived_key { in derived_clear_key()451 let derived_key = assert_ok!(hw_device_key.deriveKey(¶ms)); in derived_clear_key() localVariable[all …]
201 let derived_key = assert_ok!(hw_device_key.deriveKey(¶ms)); in old_dice_generates_old_clear_key_and_new_policy() localVariable204 let derived_key = match derived_key { in old_dice_generates_old_clear_key_and_new_policy() localVariable209 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(¶ms); in invalid_key_sizes() localVariable389 expect!(derived_key.is_err(), "expected error on bad key size"); in invalid_key_sizes()398 let derived_key = hw_device_key.deriveKey(¶ms); in invalid_key_sizes() localVariable399 expect!(derived_key.is_err(), "expected error on bad key size"); in invalid_key_sizes()