Home
last modified time | relevance | path

Searched refs:key_data (Results 1 – 11 of 11) sorted by relevance

/trusty/hardware/nxp/app/hwcrypto/
Dhwkey_srv.c55 static uint8_t key_data[HWKEY_MAX_PAYLOAD_SIZE] variable
152 key_data, sizeof(key_data), &klen); in hwkey_handle_get_keyslot_cmd()
158 countof(test_key_slots), key_data, in hwkey_handle_get_keyslot_cmd()
159 sizeof(key_data), &klen); in hwkey_handle_get_keyslot_cmd()
163 rc = hwkey_send_rsp(ctx, msg, key_data, klen); in hwkey_handle_get_keyslot_cmd()
166 memset(key_data, 0, klen); in hwkey_handle_get_keyslot_cmd()
179 size_t key_len = sizeof(key_data); in hwkey_handle_derive_key_cmd()
188 key_data, &key_len); in hwkey_handle_derive_key_cmd()
197 rc = hwkey_send_rsp(ctx, msg, key_data, key_len); in hwkey_handle_derive_key_cmd()
200 memset(key_data, 0, key_len); in hwkey_handle_derive_key_cmd()
Dhwkey_srv_priv.h43 uint8_t* key_data,
/trusty/user/app/sample/hwcrypto/
Dhwkey_srv.c76 static __attribute__((aligned(4))) uint8_t key_data[HWKEY_MAX_MSG_SIZE]; variable
326 key_data, sizeof(key_data), &klen); in hwkey_handle_get_keyslot_cmd()
328 rc = hwkey_send_rsp(ctx, hdr, key_data, klen); in hwkey_handle_get_keyslot_cmd()
331 memset(key_data, 0, klen); in hwkey_handle_get_keyslot_cmd()
379 &hdr->arg1, &ctx->uuid, ikm_data, ikm_len, key_data, key_len); in hwkey_handle_derive_key_cmd()
382 rc = hwkey_send_rsp(ctx, hdr, key_data, key_len); in hwkey_handle_derive_key_cmd()
385 memset(key_data, 0, sizeof(key_data)); in hwkey_handle_derive_key_cmd()
461 context, context_len, key_data, in hwkey_handle_derive_versioned_key_cmd()
484 context_len, key_data, key_len); in hwkey_handle_derive_versioned_key_cmd()
499 rc = tipc_send2(ctx->chan, msg, sizeof(*msg), key_data, msg->key_len); in hwkey_handle_derive_versioned_key_cmd()
[all …]
Dhwkey_srv_priv.h150 uint8_t* key_data,
175 uint8_t* key_data,
Dhwkey_srv_fake_provider.c662 const uint8_t* key_data; member
674 .key_data = key##_data, \
740 memcpy(kbuf, key->key_data, key_size); in get_apploader_key()
/trusty/user/app/keymaster/
Dtrusty_keymaster.cpp105 size_t key_size = request.key_data.buffer_size(); in SetAttestationKey()
106 const uint8_t* key = request.key_data.begin(); in SetAttestationKey()
178 size_t unwrapped_buf_size = request.key_data.buffer_size(); in SetWrappedAttestationKey()
186 int rc = keybox_unwrap(request.key_data.begin(), in SetWrappedAttestationKey()
187 request.key_data.buffer_size(), unwrapped_key.get(), in SetWrappedAttestationKey()
Dtrusty_keymaster_messages.h145 return sizeof(uint32_t) + key_data.SerializedSize(); in SerializedSize()
149 return key_data.Serialize(buf, end); in Serialize()
153 key_data.Deserialize(buf_ptr, end); in Deserialize()
157 Buffer key_data; member
/trusty/user/base/app/apploader/package_tool/
Dapploader_package_tool.cpp302 auto key_data = std::make_unique<uint8_t[]>(key.size()); in verify_package() local
303 if (!key_data) { in verify_package()
307 memcpy(key_data.get(), key.data(), key.size()); in verify_package()
308 return {std::move(key_data), key.size()}; in verify_package()
717 auto key_data = std::make_unique<uint8_t[]>(key.size()); in decrypt_package() local
718 if (!key_data) { in decrypt_package()
722 memcpy(key_data.get(), key.data(), key.size()); in decrypt_package()
723 return {std::move(key_data), key.size()}; in decrypt_package()
/trusty/user/app/cast-auth/app/
Dcast_auth_impl.cc48 const uint8_t* key_data = key.data(); in is_plaintext_rsa_2048_private_key() local
50 bssl::UniquePtr<RSA> rsa(d2i_RSAPrivateKey(NULL, &key_data, key.size())); in is_plaintext_rsa_2048_private_key()
/trusty/user/app/keymint/
Dsecure_storage_manager.rs143 key_data: &[u8], in set_wrapped_attestation_key()
145 let unwrapped_key = keybox::keybox_unwrap(key_data)?; in set_wrapped_attestation_key()
153 key_data: &[u8], in provision_attestation_key_file()
156 attestation_key.set_key(try_to_vec(key_data)?); in provision_attestation_key_file()
Dipc_manager.rs335 secure_storage_manager::provision_attestation_key_file(algorithm, &req.key_data)?; in handle_message()
354 secure_storage_manager::set_wrapped_attestation_key(algorithm, &req.key_data)?; in handle_message()