Lines Matching refs:tmp
130 unsigned char tmp[MBEDTLS_CTR_DRBG_SEEDLEN]; in block_cipher_df() local
196 memcpy( tmp + j, chain, MBEDTLS_CTR_DRBG_BLOCKSIZE ); in block_cipher_df()
207 if( ( ret = mbedtls_aes_setkey_enc( &aes_ctx, tmp, in block_cipher_df()
212 iv = tmp + MBEDTLS_CTR_DRBG_KEYSIZE; in block_cipher_df()
231 mbedtls_platform_zeroize( tmp, sizeof( tmp ) ); in block_cipher_df()
256 unsigned char tmp[MBEDTLS_CTR_DRBG_SEEDLEN]; in ctr_drbg_update_internal() local
257 unsigned char *p = tmp; in ctr_drbg_update_internal()
261 memset( tmp, 0, MBEDTLS_CTR_DRBG_SEEDLEN ); in ctr_drbg_update_internal()
285 tmp[i] ^= data[i]; in ctr_drbg_update_internal()
290 if( ( ret = mbedtls_aes_setkey_enc( &ctx->aes_ctx, tmp, in ctr_drbg_update_internal()
295 memcpy( ctx->counter, tmp + MBEDTLS_CTR_DRBG_KEYSIZE, in ctr_drbg_update_internal()
299 mbedtls_platform_zeroize( tmp, sizeof( tmp ) ); in ctr_drbg_update_internal()
509 unsigned char tmp[MBEDTLS_CTR_DRBG_BLOCKSIZE]; in mbedtls_ctr_drbg_random_with_add() local
552 ctx->counter, tmp ) ) != 0 ) in mbedtls_ctr_drbg_random_with_add()
562 memcpy( p, tmp, use_len ); in mbedtls_ctr_drbg_random_with_add()
574 mbedtls_platform_zeroize( tmp, sizeof( tmp ) ); in mbedtls_ctr_drbg_random_with_add()