Home
last modified time | relevance | path

Searched refs:buffer (Results 1 – 25 of 94) sorted by relevance

1234

/optee_os-3.20.0/lib/libutils/isoc/newlib/
A Dmemset.c81 unsigned long buffer; variable
102 buffer = (d << 8) | d;
103 buffer |= (buffer << 16);
105 buffer = (buffer << i) | buffer;
109 *aligned_addr++ = buffer;
110 *aligned_addr++ = buffer;
111 *aligned_addr++ = buffer;
112 *aligned_addr++ = buffer;
117 *aligned_addr++ = buffer;
/optee_os-3.20.0/core/drivers/crypto/se050/glue/
A Di2c.c17 static int i2c_transfer(uint8_t *buffer, int len, enum rpc_i2c_mode mode) in i2c_transfer() argument
23 .buffer = buffer, in i2c_transfer()
38 int glue_i2c_read(uint8_t *buffer, int len) in glue_i2c_read() argument
40 return i2c_transfer(buffer, len, RPC_I2C_MODE_READ); in glue_i2c_read()
43 int glue_i2c_write(uint8_t *buffer, int len) in glue_i2c_write() argument
45 return i2c_transfer(buffer, len, RPC_I2C_MODE_WRITE); in glue_i2c_write()
A Di2c_imx.c17 ret = imx_i2c_read(req->bus, req->chip, req->buffer, in native_i2c_transfer()
20 ret = imx_i2c_write(req->bus, req->chip, req->buffer, in native_i2c_transfer()
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/ecc/
A Decc_ssh_ecdsa_encode_name.c20 int ecc_ssh_ecdsa_encode_name(char *buffer, unsigned long *buflen, const ecc_key *key) in ecc_ssh_ecdsa_encode_name() argument
26 LTC_ARGCHK(buffer != NULL); in ecc_ssh_ecdsa_encode_name()
36 size = snprintf(buffer, *buflen, "ecdsa-sha2-nistp256"); in ecc_ssh_ecdsa_encode_name()
40 size = snprintf(buffer, *buflen, "ecdsa-sha2-nistp384"); in ecc_ssh_ecdsa_encode_name()
44 size = snprintf(buffer, *buflen, "ecdsa-sha2-nistp521"); in ecc_ssh_ecdsa_encode_name()
47 size = snprintf(buffer, *buflen, "ecdsa-sha2-%s", oidstr); in ecc_ssh_ecdsa_encode_name()
/optee_os-3.20.0/core/kernel/
A Dtcg.c118 struct tcg_pcr_event *event_header = buffer; in tcg_parse_specid_event()
316 void *buffer = NULL; in tcg_process_fw_eventlog() local
329 buffer = malloc(TPM2_EVENT_LOG_SIZE); in tcg_process_fw_eventlog()
330 if (!buffer) { in tcg_process_fw_eventlog()
335 ret = tpm_get_event_log(buffer, &sz); in tcg_process_fw_eventlog()
337 tmp = realloc(buffer, sz); in tcg_process_fw_eventlog()
341 buffer = tmp; in tcg_process_fw_eventlog()
343 ret = tpm_get_event_log(buffer, &sz); in tcg_process_fw_eventlog()
351 ret = tcg_parse_event_log_header(buffer, sz, &pos); in tcg_process_fw_eventlog()
373 ret = tcg_parse_event(buffer, sz, &pos, digest_list, in tcg_process_fw_eventlog()
[all …]
A Dotp_stubs.c26 __weak int tee_otp_get_die_id(uint8_t *buffer, size_t len) in tee_otp_get_die_id() argument
28 if (huk_subkey_derive(HUK_SUBKEY_DIE_ID, NULL, 0, buffer, len)) in tee_otp_get_die_id()
45 uint8_t *buffer, size_t len) in tee_otp_get_ta_enc_key() argument
50 ta_pub_key_modulus_size, buffer, len)) in tee_otp_get_ta_enc_key()
A Dmsg_param.c62 static bool msg_param_extract_pages(paddr_t buffer, paddr_t *pages, in msg_param_extract_pages() argument
71 if (buffer & SMALL_PAGE_MASK) in msg_param_extract_pages()
78 mobj = mobj_mapped_shm_alloc(&buffer, 1, 0, 0); in msg_param_extract_pages()
A Dhuk_subkey.c19 static TEE_Result get_otp_die_id(uint8_t *buffer, size_t len) in get_otp_die_id() argument
25 return tee_otp_get_die_id(buffer, len); in get_otp_die_id()
28 buffer[i] = pattern[i % 4]; in get_otp_die_id()
/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/
A Dbase64.c239 unsigned char buffer[128]; in mbedtls_base64_self_test() local
246 if( mbedtls_base64_encode( buffer, sizeof( buffer ), &len, src, 64 ) != 0 || in mbedtls_base64_self_test()
247 memcmp( base64_test_enc, buffer, 88 ) != 0 ) in mbedtls_base64_self_test()
260 if( mbedtls_base64_decode( buffer, sizeof( buffer ), &len, src, 88 ) != 0 || in mbedtls_base64_self_test()
261 memcmp( base64_test_dec, buffer, 64 ) != 0 ) in mbedtls_base64_self_test()
A Dmd2.c103 memset( ctx->buffer, 0, 16 ); in mbedtls_md2_starts_ret()
124 ctx->state[i + 16] = ctx->buffer[i]; in mbedtls_internal_md2_process()
126 (unsigned char)( ctx->buffer[i] ^ ctx->state[i]); in mbedtls_internal_md2_process()
146 ( ctx->cksum[i] ^ PI_SUBST[ctx->buffer[i] ^ t] ); in mbedtls_internal_md2_process()
181 memcpy( ctx->buffer + ctx->left, input, fill ); in mbedtls_md2_update_ret()
220 ctx->buffer[i] = x; in mbedtls_md2_finish_ret()
225 memcpy( ctx->buffer, ctx->cksum, 16 ); in mbedtls_md2_finish_ret()
/optee_os-3.20.0/core/pta/tests/
A Dinvoke.c190 in = (uint8_t *)p[0].memref.buffer; in test_entry_params()
196 *(uint8_t *)p[0].memref.buffer = d8; in test_entry_params()
204 in = (uint8_t *)p[1].memref.buffer; in test_entry_params()
210 *(uint8_t *)p[1].memref.buffer = d8; in test_entry_params()
218 in = (uint8_t *)p[2].memref.buffer; in test_entry_params()
232 in = (uint8_t *)p[3].memref.buffer; in test_entry_params()
252 char *src = p[0].memref.buffer; in test_inject_sdp()
253 char *dst = p[1].memref.buffer; in test_inject_sdp()
296 char *buf = p[0].memref.buffer; in test_transform_sdp()
334 char *src = p[0].memref.buffer; in test_dump_sdp()
[all …]
/optee_os-3.20.0/lib/libutee/
A Dtee_api.c53 b = params[n].memref.buffer; in copy_param()
101 memcpy(b, params[n].memref.buffer, s); in copy_param()
103 b = params[n].memref.buffer; in copy_param()
138 memcpy(params[n].memref.buffer, tmp_va[n], in update_out_param()
414 void *TEE_Realloc(void *buffer, uint32_t newSize) in TEE_Realloc() argument
417 TEE_Free(buffer); in TEE_Realloc()
421 if (buffer == TEE_NULL_SIZED_VA) in TEE_Realloc()
424 return realloc(buffer, newSize); in TEE_Realloc()
427 void TEE_Free(void *buffer) in TEE_Free() argument
429 if (buffer != TEE_NULL_SIZED_VA) in TEE_Free()
[all …]
A Dtee_socket_pta.c61 params[1].memref.buffer = (void *)addr; in __tee_socket_pta_open()
109 params[1].memref.buffer = (void *)buf; in __tee_socket_pta_send()
133 params[1].memref.buffer = buf; in __tee_socket_pta_recv()
156 params[1].memref.buffer = buf; in __tee_socket_pta_ioctl()
/optee_os-3.20.0/lib/libutils/isoc/
A Dbget.doc25 entire buffer pool.
29 * Quantisation of buffer sizes to a power of two to
168 void bpool(void *buffer, bufsize len);
172 storage to the overall buffer pool.
176 Allocate a buffer of <size> bytes. The address of the buffer is
178 buffer.
184 available to allocate the buffer.
186 void *bgetr(void *buffer, bufsize newsize);
191 the original buffer remains intact.
311 a buffer pool. */
[all …]
/optee_os-3.20.0/core/include/kernel/
A Dtee_common_otp.h19 int tee_otp_get_die_id(uint8_t *buffer, size_t len);
20 TEE_Result tee_otp_get_ta_enc_key(uint32_t key_type, uint8_t *buffer,
/optee_os-3.20.0/core/drivers/crypto/se050/core/
A Ddie_id.c13 int tee_otp_get_die_id(uint8_t *buffer, size_t len) in tee_otp_get_die_id() argument
25 if (tee_hash_createdigest(TEE_ALG_SHA256, die_id, die_id_len, buffer, in tee_otp_get_die_id()
/optee_os-3.20.0/core/pta/
A Dapdu.c70 params[1].memref.buffer, in invoke_command()
72 params[2].memref.buffer, in invoke_command()
74 params[3].memref.buffer, in invoke_command()
A Dsystem.c47 entropy_input = params[0].memref.buffer; in system_rng_reseed()
90 (uaddr_t)params[1].memref.buffer, in system_derive_ta_unique_key()
106 memcpy(data + sizeof(TEE_UUID), params[0].memref.buffer, in system_derive_ta_unique_key()
110 params[1].memref.buffer, in system_derive_ta_unique_key()
220 uuid = params[0].memref.buffer; in system_dlopen()
250 uuid = params[0].memref.buffer; in system_dlsym()
254 sym = params[1].memref.buffer; in system_dlsym()
283 res = tpm_get_event_log(params[0].memref.buffer, &size); in system_get_tpm_event_log()
302 res = tee_invoke_supp_plugin_rpc(params[0].memref.buffer, /* uuid */ in system_supp_plugin_invoke()
305 params[2].memref.buffer, /* data */ in system_supp_plugin_invoke()
/optee_os-3.20.0/core/arch/arm/plat-rcar/
A Dhw_rng.c30 uint8_t *buffer = buf; in hw_get_random_bytes() local
47 buffer[buffer_pos++] = rng_cache[rng_cache_pos++]; in hw_get_random_bytes()
/optee_os-3.20.0/ta/pkcs11/src/
A Dpkcs11_token.c252 if (out->memref.buffer) in entry_ck_slot_list()
464 if (out->memref.buffer) in entry_ck_token_mecha_ids()
1496 params[0].memref.buffer = seed; in seed_rng_pool()
1542 if (in->memref.size && !in->memref.buffer) in entry_ck_seed_random()
1569 void *buffer = NULL; in entry_ck_generate_random() local
1586 if (out->memref.size && !out->memref.buffer) in entry_ck_generate_random()
1594 if (!buffer) in entry_ck_generate_random()
1597 data = out->memref.buffer; in entry_ck_generate_random()
1603 TEE_GenerateRandom(buffer, count); in entry_ck_generate_random()
1604 TEE_MemMove(data, buffer, count); in entry_ck_generate_random()
[all …]
/optee_os-3.20.0/ta/trusted_keys/
A Dentry.c44 if (!params[0].memref.buffer || !params[0].memref.size) in get_random()
52 memcpy(params[0].memref.buffer, rng_buf, params[0].memref.size); in get_random()
79 params[0].memref.buffer = extra; in derive_unique_key()
83 params[1].memref.buffer = key; in derive_unique_key()
173 attr.content.ref.buffer = huk_key; in huk_crypt()
221 in = params[0].memref.buffer; in seal_trusted_key()
223 out = params[1].memref.buffer; in seal_trusted_key()
264 in = params[0].memref.buffer; in unseal_trusted_key()
266 out = params[1].memref.buffer; in unseal_trusted_key()
/optee_os-3.20.0/lib/libutee/include/
A Dtee_api_types.h51 void *buffer; member
109 void *buffer; member
187 uint8_t *buffer; member
/optee_os-3.20.0/lib/libdl/
A Ddlfcn.c60 params[0].memref.buffer = (void *)&uuid; in dlopen()
107 params[0].memref.buffer = &h->uuid; in dlsym()
109 params[1].memref.buffer = (void *)symbol; in dlsym()
/optee_os-3.20.0/core/arch/arm/plat-stm/
A Drng_support.c95 uint8_t *buffer = buf; in hw_get_random_bytes() local
125 buffer[buffer_pos++] = lfifo[pos++]; in hw_get_random_bytes()
/optee_os-3.20.0/core/arch/arm/kernel/
A Drpc_io_i2c.c38 memcpy(va, req->buffer, req->buffer_len); in rpc_io_i2c_transfer()
59 memcpy(req->buffer, va, *len); in rpc_io_i2c_transfer()

Completed in 19 milliseconds

1234