Searched refs:tmp_buf (Results 1 – 5 of 5) sorted by relevance
| /optee_os/lib/libutee/ |
| H A D | tee_api.c | 96 static TEE_Result map_tmp_param(struct utee_params *up, void **tmp_buf, in map_tmp_param() argument 114 *tmp_buf = NULL; in map_tmp_param() 148 *tmp_buf = tb; in map_tmp_param() 327 void *tmp_buf = NULL; in TEE_OpenTASession() local 340 res = map_tmp_param(&up, &tmp_buf, &tmp_len, tmp_va); in TEE_OpenTASession() 346 if (tmp_buf) { in TEE_OpenTASession() 347 TEE_Result res2 = tee_unmap(tmp_buf, tmp_len); in TEE_OpenTASession() 376 void *tmp_buf = NULL; in __GP11_TEE_OpenTASession() local 387 res = map_tmp_param(&up, &tmp_buf, &tmp_len, tmp_va); in __GP11_TEE_OpenTASession() 393 if (tmp_buf) { in __GP11_TEE_OpenTASession() [all …]
|
| H A D | tee_api_property.c | 205 void *tmp_buf = 0; in TEE_GetPropertyAsString() local 218 tmp_buf = TEE_Malloc(tmp_len, TEE_USER_MEM_HINT_NO_FILL_ZERO); in TEE_GetPropertyAsString() 219 if (!tmp_buf) { in TEE_GetPropertyAsString() 225 tmp_buf, &tmp_len); in TEE_GetPropertyAsString() 243 bool_val = *((bool *)tmp_buf); in TEE_GetPropertyAsString() 248 uint32_val = *((uint32_t *)tmp_buf); in TEE_GetPropertyAsString() 253 l = snprintk(value, *value_len, "%pUl", tmp_buf); in TEE_GetPropertyAsString() 257 p_identity_val = ((TEE_Identity *)tmp_buf); in TEE_GetPropertyAsString() 264 l = strlcpy(value, tmp_buf, *value_len); in TEE_GetPropertyAsString() 269 if (!base64_enc(tmp_buf, tmp_len, value, &l) && in TEE_GetPropertyAsString() [all …]
|
| /optee_os/lib/libmbedtls/mbedtls/library/ |
| H A D | ccm.c | 129 unsigned char tmp_buf[16] = { 0 }; in mbedtls_ccm_crypt() local 132 ret = mbedtls_block_cipher_encrypt(&ctx->block_cipher_ctx, ctx->ctr, tmp_buf); in mbedtls_ccm_crypt() 135 ret = mbedtls_cipher_update(&ctx->cipher_ctx, ctx->ctr, 16, tmp_buf, &olen); in mbedtls_ccm_crypt() 139 mbedtls_platform_zeroize(tmp_buf, sizeof(tmp_buf)); in mbedtls_ccm_crypt() 143 mbedtls_xor(output, input, tmp_buf + offset, use_len); in mbedtls_ccm_crypt() 145 mbedtls_platform_zeroize(tmp_buf, sizeof(tmp_buf)); in mbedtls_ccm_crypt()
|
| /optee_os/core/drivers/crypto/stm32/ |
| H A D | stm32_hash.c | 194 uint32_t tmp_buf = 0; in write_key() local 200 memcpy(&tmp_buf, key, sizeof(uint32_t)); in write_key() 201 res = hash_write_data(base, tmp_buf); in write_key() 210 tmp_buf = 0; in write_key() 211 memcpy(&tmp_buf, key, len); in write_key() 212 res = hash_write_data(base, tmp_buf); in write_key() 663 uint32_t tmp_buf = 0; in stm32_hash_update() local 665 memcpy(&tmp_buf, buffer, sizeof(uint32_t)); in stm32_hash_update() 666 res = hash_write_data(base, tmp_buf); in stm32_hash_update()
|
| /optee_os/ta/pkcs11/src/ |
| H A D | processing_symm.c | 1141 uint8_t *tmp_buf = out_buf; in wrap_data_by_symm_enc() local 1159 data, in_sz, tmp_buf, in wrap_data_by_symm_enc() 1165 tmp_buf += tmp_sz; in wrap_data_by_symm_enc() 1184 tmp_buf, &tmp_sz); in wrap_data_by_symm_enc() 1188 *out_sz += tmp_buf - (uint8_t *)out_buf; in wrap_data_by_symm_enc()
|