Home
last modified time | relevance | path

Searched refs:data_ptr (Results 1 – 9 of 9) sorted by relevance

/trusty/user/app/sample/hwaes/
Dmain.c47 static uint32_t hwaes_check_arg_helper(size_t len, const uint8_t* data_ptr) { in hwaes_check_arg_helper() argument
48 if (len == 0 || data_ptr == NULL) { in hwaes_check_arg_helper()
55 return hwaes_check_arg_helper(arg->len, arg->data_ptr); in hwaes_check_arg_in()
59 return hwaes_check_arg_helper(arg->len, arg->data_ptr); in hwaes_check_arg_out()
110 if (key.data_ptr[key.len - 1] != 0) { in hwaes_aes_op()
121 ret = hwkey_get_keyslot_data(session, (const char*)key.data_ptr, in hwaes_aes_op()
129 key.data_ptr = key_buffer; in hwaes_aes_op()
213 evp_ret = EVP_CipherInit_ex(cipher_ctx, cipher, NULL, key.data_ptr, in hwaes_aes_op()
214 args->iv.data_ptr, args->encrypt); in hwaes_aes_op()
228 args->aad.data_ptr, args->aad.len); in hwaes_aes_op()
[all …]
/trusty/user/base/app/hwaes-unittest/
Dhwaes-test.c223 .field_ = {.data_ptr = &name_##_##field_, .len = sizeof(name_##_##field_)}
263 args->text_out.data_ptr = base; in parse_vector()
268 args->tag_out.data_ptr = base + args->text_out.len; in parse_vector()
395 .data_ptr = hwaes_key, in TEST_F_SETUP()
400 .data_ptr = hwaes_iv, in TEST_F_SETUP()
405 .data_ptr = _state->shm_base, in TEST_F_SETUP()
411 .data_ptr = _state->shm_base, in TEST_F_SETUP()
423 .data_ptr = hwaes_key, in TEST_F_SETUP()
428 .data_ptr = hwaes_iv, in TEST_F_SETUP()
433 .data_ptr = _state->shm_base, in TEST_F_SETUP()
[all …]
/trusty/user/base/lib/hwaes/srv/include/lib/hwaes_server/
Dhwaes_server.h35 const uint8_t* data_ptr; member
45 uint8_t* data_ptr; member
/trusty/user/base/lib/hwaes/
Dhwaes.c93 static void hwaes_set_shm_arg_helper(const uint8_t* data_ptr, in hwaes_set_shm_arg_helper() argument
121 data_desc_ptr->offset = data_ptr - shm_base; in hwaes_set_shm_arg_helper()
141 hwaes_set_shm_arg_helper(arg_ptr->data_ptr, arg_ptr->len, in hwaes_set_shm_arg_out()
158 hwaes_set_shm_arg_helper(arg_ptr->data_ptr, arg_ptr->len, in hwaes_set_shm_arg_in()
170 static void hwaes_set_iov_helper(const void* data_ptr, in hwaes_set_iov_helper() argument
178 iov_wrapper_ptr->iov[iov_num].iov_base = (void*)data_ptr; in hwaes_set_iov_helper()
216 static void hwaes_set_iov_arg_helper(const void* data_ptr, in hwaes_set_iov_arg_helper() argument
222 hwaes_set_iov_helper(data_ptr, len, iov_wrapper_ptr); in hwaes_set_iov_arg_helper()
236 hwaes_set_iov_arg_helper(arg_ptr->data_ptr, arg_ptr->len, data_desc_ptr, in hwaes_set_iov_arg_in()
252 hwaes_set_iov_arg_helper(arg_ptr->data_ptr, arg_ptr->len, data_desc_ptr, in hwaes_set_iov_arg_out()
/trusty/user/base/app/hwaes-benchmark/
Dhwaes-bench.c276 .data_ptr = CUR_PARAM.key, in BENCH_SETUP()
281 .data_ptr = CUR_PARAM.iv, in BENCH_SETUP()
286 .data_ptr = (void*)_state->shm_hdin.base, in BENCH_SETUP()
292 .data_ptr = (void*)_state->shm_hdout.base, in BENCH_SETUP()
302 _state->args.aad.data_ptr = aad; in BENCH_SETUP()
310 _state->args.tag_out.data_ptr = in BENCH_SETUP()
315 _state->args.tag_in.data_ptr = CUR_PARAM.tag; in BENCH_SETUP()
381 memcmp(_state->args.text_out.data_ptr, CUR_PARAM.output, in encrypt()
388 memcmp(_state->args.tag_out.data_ptr, CUR_PARAM.tag, in encrypt()
404 memcmp(_state->args.text_out.data_ptr, CUR_PARAM.output, in decrypt()
/trusty/user/base/lib/hwaes/include/lib/hwaes/
Dhwaes.h62 const void* data_ptr; member
76 void* data_ptr; member
/trusty/user/base/lib/apploader_package/
Dpackage.cpp129 cryptArgs.key.data_ptr = key.data(); in hwaesDecryptAesGcmInPlace()
131 cryptArgs.iv.data_ptr = nonce.data(); in hwaesDecryptAesGcmInPlace()
133 cryptArgs.aad.data_ptr = additionalAuthenticatedData.data(); in hwaesDecryptAesGcmInPlace()
135 cryptArgs.tag_in.data_ptr = tag; in hwaesDecryptAesGcmInPlace()
137 cryptArgs.text_in.data_ptr = encryptedData; in hwaesDecryptAesGcmInPlace()
139 cryptArgs.text_out.data_ptr = encryptedData; in hwaesDecryptAesGcmInPlace()
/trusty/user/base/lib/hwaes/srv/
Dhwaes_server.c208 arg_ptr->data_ptr = in hwaes_set_arg_out()
236 arg_ptr->data_ptr = buf_start + data_desc_ptr->offset; in hwaes_set_arg_out()
258 arg->data_ptr = out_arg.data_ptr; in hwaes_set_arg_in()
/trusty/user/app/storage/test/storage-unittest/
Dmain.c215 uint8_t* data_ptr = (uint8_t*)data_buf; in ReadChunk() local
226 if (!check_value32((const uint32_t*)data_ptr, head_len, 0)) in ReadChunk()
228 data_ptr += head_len; in ReadChunk()
233 if (!check_pattern32((const uint32_t*)data_ptr, pattern_len, off)) in ReadChunk()
235 data_ptr += pattern_len; in ReadChunk()
239 if (!check_value32((const uint32_t*)data_ptr, tail_len, 0)) in ReadChunk()