Home
last modified time | relevance | path

Searched refs:key_buffer (Results 1 – 4 of 4) sorted by relevance

/trusty/user/app/sample/hwaes/
Dmain.c101 uint8_t key_buffer[AES_KEY_MAX_SIZE] = {0}; in hwaes_aes_op() local
120 uint32_t key_len = sizeof(key_buffer); in hwaes_aes_op()
122 key_buffer, &key_len); in hwaes_aes_op()
129 key.data_ptr = key_buffer; in hwaes_aes_op()
/trusty/user/app/keymint/
Dkeys.rs235 let mut key_buffer = [0; TRUSTY_KM_WRAPPING_KEY_SIZE]; in root_kek() localVariable
245 .derive(KM_KEY_DERIVATION_DATA, &mut key_buffer) in root_kek()
254 .derive(KM_KEY_DERIVATION_DATA, &mut key_buffer) in root_kek()
260 Ok(crypto::hmac::Key::new(key_buffer.to_vec()).into()) in root_kek()
272 let mut key_buffer = [0; TRUSTY_KM_KAK_SIZE]; in kak() localVariable
276 .get_keyslot_data(keyslot, &mut key_buffer) in kak()
279 Ok(crypto::aes::Key::Aes256(key_buffer).into()) in kak()
Dsecure_storage_manager.rs375 fn import_ec_key(key_buffer: &[u8]) -> Result<KeyMaterial, Error> { in import_ec_key()
376 match crypto::ec::import_sec1_private_key(key_buffer) { in import_ec_key()
380 crypto::ec::import_pkcs8_key(key_buffer) in import_ec_key()
387 fn import_rsa_key(key_buffer: &[u8]) -> Result<KeyMaterial, Error> { in import_rsa_key()
388 match crypto::rsa::import_pkcs1_key(key_buffer) { in import_rsa_key()
392 let (key_material, _, _) = crypto::rsa::import_pkcs8_key(key_buffer)?; in import_rsa_key()
406 let key_buffer = attestation_key_pb.take_key(); in read_attestation_key() localVariable
409 SigningAlgorithm::Ec => import_ec_key(&key_buffer), in read_attestation_key()
410 SigningAlgorithm::Rsa => import_rsa_key(&key_buffer), in read_attestation_key()
609 let key_buffer = get_test_key_data(algorithm); in get_test_attestation_key() localVariable
[all …]
/trusty/user/app/sample/hwcrypto/
Dhwkey_srv.c218 uint8_t key_buffer[HWKEY_DERIVED_KEY_MAX_SIZE] = {0}; in hwkey_get_derived_key() local
221 data->retriever(data, key_buffer, sizeof(key_buffer), &key_len); in hwkey_get_derived_key()
270 evp_ret = EVP_DecryptInit_ex(cipher_ctx, cipher, NULL, key_buffer, in hwkey_get_derived_key()