Lines Matching refs:tmp
146 unsigned char tmp[MBEDTLS_CTR_DRBG_SEEDLEN]; in block_cipher_df() local
205 memcpy( tmp + j, chain, MBEDTLS_CTR_DRBG_BLOCKSIZE ); in block_cipher_df()
216 mbedtls_aes_setkey_enc( &aes_ctx, tmp, MBEDTLS_CTR_DRBG_KEYBITS ); in block_cipher_df()
217 iv = tmp + MBEDTLS_CTR_DRBG_KEYSIZE; in block_cipher_df()
235 unsigned char tmp[MBEDTLS_CTR_DRBG_SEEDLEN]; in ctr_drbg_update_internal() local
236 unsigned char *p = tmp; in ctr_drbg_update_internal()
239 memset( tmp, 0, MBEDTLS_CTR_DRBG_SEEDLEN ); in ctr_drbg_update_internal()
259 tmp[i] ^= data[i]; in ctr_drbg_update_internal()
264 mbedtls_aes_setkey_enc( &ctx->aes_ctx, tmp, MBEDTLS_CTR_DRBG_KEYBITS ); in ctr_drbg_update_internal()
265 memcpy( ctx->counter, tmp + MBEDTLS_CTR_DRBG_KEYSIZE, MBEDTLS_CTR_DRBG_BLOCKSIZE ); in ctr_drbg_update_internal()
340 unsigned char tmp[MBEDTLS_CTR_DRBG_BLOCKSIZE]; in mbedtls_ctr_drbg_random_with_add() local
379 mbedtls_aes_crypt_ecb( &ctx->aes_ctx, MBEDTLS_AES_ENCRYPT, ctx->counter, tmp ); in mbedtls_ctr_drbg_random_with_add()
386 memcpy( p, tmp, use_len ); in mbedtls_ctr_drbg_random_with_add()