Home
last modified time | relevance | path

Searched refs:aad (Results 1 – 22 of 22) sorted by relevance

/trusty/user/base/lib/hwbcc/rust/src/
Dlib.rs105 aad: &'a [u8], field
115 aad: &'a [u8], in new()
122 aad, in new()
123 aad_size: aad.len() as u32, in new()
143 serializer.serialize_bytes(self.aad) in serialize()
374 aad: &[u8], in sign_data()
382 if aad.len() > HWBCC_MAX_AAD_SIZE as usize { in sign_data()
392 SignDataMsg::new(BccMsgHeader { cmd, test_mode, context: 0 }, cose_algorithm, data, aad); in sign_data()
/trusty/user/base/lib/hwbcc/client/
Dhwbcc.c99 const uint8_t* aad, in sign_data() argument
114 assert(aad); in sign_data()
153 if (aad) { in sign_data()
155 iovs[2].iov_base = (void*)aad; in sign_data()
222 const uint8_t* aad, in hwbcc_get_protected_data() argument
239 rc = sign_data(chan, test_mode, cose_algorithm, data, data_size, aad, in hwbcc_get_protected_data()
/trusty/user/base/app/swaes-benchmark/
Dswaes-bench.c200 rc = EVP_EncryptUpdate(&_state->evp_ctx, NULL, &out_len, aad, in encrypt()
201 sizeof(aad)); in encrypt()
203 ASSERT_EQ(sizeof(aad), out_len); in encrypt()
251 rc = EVP_DecryptUpdate(&_state->evp_ctx, NULL, &out_len, aad, in decrypt()
252 sizeof(aad)); in decrypt()
254 ASSERT_EQ(sizeof(aad), out_len); in decrypt()
Dvectors.h26 static const uint8_t aad[16] = {0x00}; variable
/trusty/user/base/lib/hwaes/
Dhwaes.c384 hwaes_set_shm_arg_in(&args->aad, &cmd_header.aad, shm_descs, &shm); in hwaes_crypt()
405 if (cmd_header.aad.shm_idx == HWAES_INVALID_INDEX && args->aad.len != 0) { in hwaes_crypt()
408 hwaes_set_iov_arg_in(&args->aad, &cmd_header.aad, &req_iov); in hwaes_crypt()
/trusty/user/base/lib/hwbcc/client/include/lib/hwbcc/client/
Dhwbcc.h52 const uint8_t* aad,
/trusty/user/app/sample/hwaes/
Dmain.c146 if (hwaes_check_arg_in(&args->aad) == HWAES_NO_ERROR) { in hwaes_aes_op()
226 if (hwaes_check_arg_in(&args->aad) == HWAES_NO_ERROR) { in hwaes_aes_op()
228 args->aad.data_ptr, args->aad.len); in hwaes_aes_op()
/trusty/user/app/keymint/
Drpc.rs85 aad: &[u8], in sign_data_in_cose_sign1()
105 aad, in sign_data_in_cose_sign1()
/trusty/user/base/lib/hwaes/srv/include/lib/hwaes_server/
Dhwaes_server.h66 struct hwaes_arg_in aad; member
/trusty/user/base/lib/hwaes/include/lib/hwaes/
Dhwaes.h99 struct hwcrypt_arg_in aad; member
/trusty/user/base/lib/hwbcc/srv/include/lib/hwbcc/srv/
Dsrv.h58 const uint8_t* aad,
/trusty/user/base/lib/hwbcc/common/include/lib/hwbcc/common/
Dswbcc.h57 const uint8_t* aad,
/trusty/user/base/app/hwaes-benchmark/
Dhwaes-bench.c302 _state->args.aad.data_ptr = aad; in BENCH_SETUP()
303 _state->args.aad.len = sizeof(aad); in BENCH_SETUP()
Dvectors.h26 static const uint8_t aad[16] = {0x00}; variable
/trusty/user/app/keymaster/
Dtrusty_remote_provisioning_context.cpp168 const std::vector<uint8_t>& aad) const { in BuildProtectedDataPayload()
174 testMode, EDDSA, macKey.data(), macKey.size(), aad.data(), in BuildProtectedDataPayload()
175 aad.size(), signedOutput.data(), signedOutput.size(), in BuildProtectedDataPayload()
Dtrusty_remote_provisioning_context.h50 const std::vector<uint8_t>& aad) const override;
/trusty/user/base/interface/hwaes/include/interface/hwaes/
Dhwaes.h225 struct hwaes_data_desc aad; member
/trusty/user/base/app/hwaes-unittest/
Dhwaes-test.c74 struct hwcrypt_arg_in aad; member
230 TV_DATA(name_, aad), \
253 args->aad = vector->aad; in parse_vector()
763 _state->args_encrypt.aad = (struct hwcrypt_arg_in){ in TEST_F()
770 _state->args_encrypt.aad = (struct hwcrypt_arg_in){}; in TEST_F()
786 _state->args_decrypt.aad = (struct hwcrypt_arg_in){ in TEST_F()
793 _state->args_decrypt.aad = (struct hwcrypt_arg_in){}; in TEST_F()
/trusty/user/base/lib/apploader_package/
Dpackage.cpp133 cryptArgs.aad.data_ptr = additionalAuthenticatedData.data(); in hwaesDecryptAesGcmInPlace()
134 cryptArgs.aad.len = additionalAuthenticatedData.size(); in hwaesDecryptAesGcmInPlace()
/trusty/user/base/lib/hwbcc/common/
Dswbcc.c312 const uint8_t* aad, in swbcc_sign_key() argument
324 assert(aad); in swbcc_sign_key()
337 srv_state.dice_ctx, key, key_size, aad, aad_size, signing_key, in swbcc_sign_key()
/trusty/user/app/sample/hwcryptohal/server/
Dservice_encryption_key.rs89 move |pt, aad| { in encrypt_content_service_encryption_key()
95 op.update_aad(aad)?; in encrypt_content_service_encryption_key()
/trusty/user/base/lib/hwaes/srv/
Dhwaes_server.c350 rc = hwaes_set_arg_in(&cmd_header->aad, PROT_READ, shms, num_handles, in hwaes_handle_aes_cmd()
351 req_msg_buf, req_msg_size, &req_offset, &args.aad); in hwaes_handle_aes_cmd()