Home
last modified time | relevance | path

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

/trusty/user/app/sample/hwcryptokey-test/
Dversioned_keys_explicit.rs80 let hw_device_key = connect().expect("couldn't connect to HW Crypto service"); in generate_new_policy_and_clear_key() localVariable
87 assert_ok!(hw_device_key.deriveCurrentDicePolicyBoundKey(&device_bound_key)); in generate_new_policy_and_clear_key()
103 let derived_key1 = assert_ok!(hw_device_key.deriveKey(&params)); in generate_new_policy_and_clear_key()
115 assert_ok!(hw_device_key.deriveDicePolicyBoundKey(&device_bound_key, &dice_policy)); in generate_new_policy_and_clear_key()
127 let derived_key2 = assert_ok!(hw_device_key.deriveKey(&params)); in generate_new_policy_and_clear_key()
146 assert_ok!(hw_device_key.deriveCurrentDicePolicyBoundKey(&device_bound_key)); in generate_new_policy_and_clear_key()
161 let derived_key3 = assert_ok!(hw_device_key.deriveKey(&params)); in generate_new_policy_and_clear_key()
177 let hw_device_key = connect().expect("couldn't connect to HW Crypto service"); in old_dice_generates_old_clear_key_and_new_policy() localVariable
184 hw_device_key.deriveDicePolicyBoundKey(&device_bound_key, &VERSION_0_DICE_POLICY) in old_dice_generates_old_clear_key_and_new_policy()
201 let derived_key = assert_ok!(hw_device_key.deriveKey(&params)); in old_dice_generates_old_clear_key_and_new_policy()
[all …]
/trusty/user/app/sample/hwcryptohal/server/
Dhwcrypto_device_key.rs380 let hw_device_key = HwCryptoKey::new_binder( in derived_dice_bound_keys() localVariable
386 assert_ok!(hw_device_key.deriveCurrentDicePolicyBoundKey(&derivation_key)); in derived_dice_bound_keys()
392 assert_ok!(hw_device_key.deriveDicePolicyBoundKey(&derivation_key, &policy)); in derived_dice_bound_keys()
400 assert_ok!(hw_device_key.deriveCurrentDicePolicyBoundKey(&derivation_key)); in derived_dice_bound_keys()
406 assert_ok!(hw_device_key.deriveDicePolicyBoundKey(&derivation_key, &policy)); in derived_dice_bound_keys()
415 let hw_device_key = HwCryptoKey::new_binder( in derived_clear_key() localVariable
421 assert_ok!(hw_device_key.deriveCurrentDicePolicyBoundKey(&derivation_key)); in derived_clear_key()
433 let key = hw_device_key.deriveKey(&params); in derived_clear_key()
438 let derived_key = assert_ok!(hw_device_key.deriveKey(&params)); in derived_clear_key()
445 assert_ok!(hw_device_key.deriveDicePolicyBoundKey(&derivation_key, &policy)); in derived_clear_key()
[all …]