Home
last modified time | relevance | path

Searched refs:key_type (Results 1 – 14 of 14) sorted by relevance

/trusty/user/app/sample/hwcryptohal/server/
Dopaque_key.rs94 key_type: KeyType, field
108 key_type: policy.keyType, in new()
120 keyType: self.key_type, in get_policy()
134 key_type: self.key_type, in try_clone()
316 let key_type = &policy.keyType; in check_key_material_with_policy() localVariable
323 crypto::aes::Key::Aes128(km) => match *key_type { in check_key_material_with_policy()
333 key_type in check_key_material_with_policy()
339 crypto::aes::Key::Aes256(km) => match *key_type { in check_key_material_with_policy()
349 key_type in check_key_material_with_policy()
359 OpaqueOr::Explicit(_) => match *key_type { in check_key_material_with_policy()
[all …]
Dhwcrypto_device_key.rs228 let key_type = KeyType::HMAC_SHA256; in derive_dice_policy_bound_key() localVariable
229 let key_size = opaque_key::get_key_size_in_bytes(&key_type)?; in derive_dice_policy_bound_key()
257 keyType: key_type, in derive_dice_policy_bound_key()
/trusty/user/app/keymint/
Dsecure_storage_manager.rs362 key_type: SigningAlgorithm, in read_attestation_key_content()
364 let file_name = get_key_slot_file_name(key_type); in read_attestation_key_content()
399 pub(crate) fn read_attestation_key(key_type: SigningKeyType) -> Result<KeyMaterial, Error> { in read_attestation_key()
401 read_attestation_key_content(key_type.algo_hint)?; in read_attestation_key()
408 match key_type.algo_hint { in read_attestation_key()
414 pub(crate) fn get_cert_chain(key_type: SigningKeyType) -> Result<Vec<keymint::Certificate>, Error> { in get_cert_chain()
416 read_attestation_key_content(key_type.algo_hint)?; in get_cert_chain()
451 fn signing_key(&self, key_type: SigningKeyType) -> Result<KeyMaterial, Error> { in signing_key()
452 let result = read_attestation_key(key_type); in signing_key()
457 return fake.signing_key(key_type); in signing_key()
[all …]
/trusty/user/app/keymint/secure_storage_manager/
Dsoftware.rs395 fn signing_key(&self, key_type: SigningKeyType) -> Result<KeyMaterial, Error> { in signing_key()
396 Ok(match key_type.algo_hint { in signing_key()
402 fn cert_chain(&self, key_type: SigningKeyType) -> Result<Vec<keymint::Certificate>, Error> { in cert_chain()
403 Ok(match key_type.algo_hint { in cert_chain()
/trusty/user/base/lib/hwaes/srv/include/lib/hwaes_server/
Dhwaes_server.h71 uint32_t key_type; member
/trusty/user/base/lib/hwaes/include/lib/hwaes/
Dhwaes.h104 uint32_t key_type; member
/trusty/user/base/lib/hwbcc/common/
Dcommon.cpp47 const cppbor::Int* key_type = cose_key->get(1)->asInt(); in validate_pub_key_ed25519() local
63 CHECK_NOT_NULL(key_type); in validate_pub_key_ed25519()
68 CHECK_EQ(key_type->value(), 1); in validate_pub_key_ed25519()
/trusty/user/base/interface/hwaes/include/interface/hwaes/
Dhwaes.h230 uint32_t key_type; member
/trusty/user/base/app/hwaes-unittest/
Dhwaes-test.c247 args->key_type = HWAES_PLAINTEXT_KEY; in parse_vector()
415 .key_type = HWAES_PLAINTEXT_KEY, in TEST_F_SETUP()
443 .key_type = HWAES_PLAINTEXT_KEY, in TEST_F_SETUP()
872 _state->args_encrypt.key_type = HWAES_OPAQUE_HANDLE; in TEST_F()
901 _state->args_decrypt.key_type = HWAES_OPAQUE_HANDLE; in TEST_F()
936 _state->args_encrypt.key_type = HWAES_OPAQUE_HANDLE; in TEST_F()
964 _state->args_encrypt.key_type = HWAES_OPAQUE_HANDLE; in TEST_F()
987 _state->args_encrypt.key_type = HWAES_OPAQUE_HANDLE; in TEST_F()
1016 _state->args_encrypt.key_type = HWAES_OPAQUE_HANDLE; in TEST_F()
/trusty/user/base/lib/hwaes/
Dhwaes.c371 .key_type = args->key_type, in hwaes_crypt()
/trusty/user/base/lib/hwaes/srv/
Dhwaes_server.c325 .key_type = cmd_header->key_type, in hwaes_handle_aes_cmd()
/trusty/user/base/lib/apploader_package/
Dpackage.cpp141 cryptArgs.key_type = HWAES_OPAQUE_HANDLE; in hwaesDecryptAesGcmInPlace()
/trusty/user/app/sample/hwaes/
Dmain.c105 if (args->key_type == HWAES_OPAQUE_HANDLE) { in hwaes_aes_op()
/trusty/user/base/app/hwaes-benchmark/
Dhwaes-bench.c296 .key_type = HWAES_PLAINTEXT_KEY, in BENCH_SETUP()