Home
last modified time | relevance | path

Searched refs:buffer_size (Results 1 – 6 of 6) sorted by relevance

/optee_os-3.20.0/core/drivers/imx/dcp/
A Ddcp_utils.c41 void dcp_left_shift_buffer(uint8_t *input, uint8_t *result, size_t buffer_size) in dcp_left_shift_buffer() argument
47 for (i = 0; i < buffer_size; i++) { in dcp_left_shift_buffer()
49 result[buffer_size - 1 - i] = in dcp_left_shift_buffer()
50 input[buffer_size - 1 - i] << 1 | overflow; in dcp_left_shift_buffer()
52 overflow = input[buffer_size - 1 - i] >> 7; in dcp_left_shift_buffer()
/optee_os-3.20.0/core/drivers/imx/dcp/include/
A Ddcp_utils.h40 void dcp_left_shift_buffer(uint8_t *result, uint8_t *input, size_t buffer_size);
/optee_os-3.20.0/lib/libutee/
A Dtee_api_operations.c297 size_t buffer_size = block_size; in TEE_AllocateOperation() local
300 buffer_size *= 2; in TEE_AllocateOperation()
302 op->buffer = TEE_Malloc(buffer_size, in TEE_AllocateOperation()
893 size_t buffer_size; in tee_buffer_update() local
903 buffer_size = op->block_size * 2; in tee_buffer_update()
906 buffer_size = op->block_size; in tee_buffer_update()
915 l = MIN(slen, buffer_size - op->buffer_offs); in tee_buffer_update()
927 l = ROUNDUP(op->buffer_offs + slen - buffer_size, in tee_buffer_update()
942 memcpy(op->buffer, op->buffer + l, buffer_size - l); in tee_buffer_update()
949 if (slen >= (buffer_size + buffer_left)) { in tee_buffer_update()
[all …]
/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/
A Dpkwrite.c200 size_t buffer_size; in mbedtls_pk_write_pubkey() local
206 buffer_size = (size_t)( *p - start ); in mbedtls_pk_write_pubkey()
207 if ( psa_export_public_key( *key_id, start, buffer_size, &len ) in mbedtls_pk_write_pubkey()
/optee_os-3.20.0/ta/pkcs11/src/
A Dpkcs11_attributes.c2240 uint32_t buffer_size = 0; in set_private_key_data_rsa() local
2287 buffer_size = size; in set_private_key_data_rsa()
2288 buffer = TEE_Malloc(buffer_size, TEE_USER_MEM_HINT_NO_FILL_ZERO); in set_private_key_data_rsa()
2305 if (buffer_size < size) { in set_private_key_data_rsa()
2321 if (buffer_size < size) { in set_private_key_data_rsa()
2337 if (buffer_size < size) { in set_private_key_data_rsa()
2353 if (buffer_size < size) { in set_private_key_data_rsa()
A Dpkcs11_token.c1570 size_t buffer_size = 0; in entry_ck_generate_random() local
1592 buffer_size = MIN(out->memref.size, RNG_CHUNK_SIZE); in entry_ck_generate_random()
1593 buffer = TEE_Malloc(buffer_size, TEE_MALLOC_FILL_ZERO); in entry_ck_generate_random()
1601 size_t count = MIN(left, buffer_size); in entry_ck_generate_random()

Completed in 13 milliseconds