Home
last modified time | relevance | path

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

/trusted-firmware-m-3.4.0/secure_fw/partitions/crypto/
Dcrypto_init.c105 uint32_t alloc_index; member
107 } scratch = {.buf = {0}, .alloc_index = 0};
126 if (requested_size > (sizeof(scratch.buf) - scratch.alloc_index)) { in tfm_crypto_alloc_scratch()
131 *buf = (void *)&scratch.buf[scratch.alloc_index]; in tfm_crypto_alloc_scratch()
134 scratch.alloc_index += requested_size; in tfm_crypto_alloc_scratch()
142 (void)memset(scratch.buf, 0, scratch.alloc_index); in tfm_crypto_clear_scratch()
143 scratch.alloc_index = 0; in tfm_crypto_clear_scratch()