Lines Matching refs:aes_ctx
86 mbedtls_aes_init( &ctx->aes_ctx ); in mbedtls_ctr_drbg_seed_entropy_len()
97 mbedtls_aes_setkey_enc( &ctx->aes_ctx, key, MBEDTLS_CTR_DRBG_KEYBITS ); in mbedtls_ctr_drbg_seed_entropy_len()
123 mbedtls_aes_free( &ctx->aes_ctx ); in mbedtls_ctr_drbg_free()
150 mbedtls_aes_context aes_ctx; in block_cipher_df() local
159 mbedtls_aes_init( &aes_ctx ); in block_cipher_df()
183 mbedtls_aes_setkey_enc( &aes_ctx, key, MBEDTLS_CTR_DRBG_KEYBITS ); in block_cipher_df()
202 mbedtls_aes_crypt_ecb( &aes_ctx, MBEDTLS_AES_ENCRYPT, chain, chain ); in block_cipher_df()
216 mbedtls_aes_setkey_enc( &aes_ctx, tmp, MBEDTLS_CTR_DRBG_KEYBITS ); in block_cipher_df()
222 mbedtls_aes_crypt_ecb( &aes_ctx, MBEDTLS_AES_ENCRYPT, iv, iv ); in block_cipher_df()
227 mbedtls_aes_free( &aes_ctx ); in block_cipher_df()
253 mbedtls_aes_crypt_ecb( &ctx->aes_ctx, MBEDTLS_AES_ENCRYPT, ctx->counter, p ); in ctr_drbg_update_internal()
264 mbedtls_aes_setkey_enc( &ctx->aes_ctx, tmp, MBEDTLS_CTR_DRBG_KEYBITS ); in ctr_drbg_update_internal()
379 mbedtls_aes_crypt_ecb( &ctx->aes_ctx, MBEDTLS_AES_ENCRYPT, ctx->counter, tmp ); in mbedtls_ctr_drbg_random_with_add()