Home
last modified time | relevance | path

Searched refs:secure_key_wrapper (Results 1 – 3 of 3) sorted by relevance

/system/keymint/ta/src/
Dkeys.rs498 let mut secure_key_wrapper = SecureKeyWrapper::from_der(wrapped_key_data)?; in import_wrapped_key() localVariable
500 if secure_key_wrapper.version != SECURE_KEY_WRAPPER_VERSION { in import_wrapped_key()
515 crypto_op.as_mut().update(secure_key_wrapper.encrypted_transport_key)?; in import_wrapped_key()
546 let iv_len = secure_key_wrapper.initialization_vector.len(); in import_wrapped_key()
555 let tag_len = secure_key_wrapper.tag.len(); in import_wrapped_key()
558 nonce: secure_key_wrapper.initialization_vector.try_into() in import_wrapped_key()
562 nonce: secure_key_wrapper.initialization_vector.try_into() in import_wrapped_key()
566 nonce: secure_key_wrapper.initialization_vector.try_into() in import_wrapped_key()
570 nonce: secure_key_wrapper.initialization_vector.try_into() in import_wrapped_key()
574 nonce: secure_key_wrapper.initialization_vector.try_into() in import_wrapped_key()
[all …]
Dtests.rs86 let secure_key_wrapper = SecureKeyWrapper::from_der(&encoded_bytes).unwrap(); in test_secure_key_wrapper() localVariable
87 assert_eq!(secure_key_wrapper.version, 0); in test_secure_key_wrapper()
88 let key_format: KeyFormat = secure_key_wrapper.key_description.key_format.try_into().unwrap(); in test_secure_key_wrapper()
90 let authz = secure_key_wrapper.key_description.key_params.auths; in test_secure_key_wrapper()
196 let secure_key_wrapper = SecureKeyWrapper::from_der(&encoded_bytes).unwrap(); in test_key_description_encode_decode() localVariable
197 let key_description = secure_key_wrapper.key_description; in test_key_description_encode_decode()
/system/security/keystore2/tests/
Dffi_test_utils.cpp58 typedef struct secure_key_wrapper { struct