Lines Matching refs:cipher_info
147 block_size = ctx->cipher_info->block_size; in cmac_generate_subkeys()
209 if( ctx == NULL || ctx->cipher_info == NULL || key == NULL ) in mbedtls_cipher_cmac_starts()
216 type = ctx->cipher_info->type; in mbedtls_cipher_cmac_starts()
250 if( ctx == NULL || ctx->cipher_info == NULL || input == NULL || in mbedtls_cipher_cmac_update()
255 block_size = ctx->cipher_info->block_size; in mbedtls_cipher_cmac_update()
320 if( ctx == NULL || ctx->cipher_info == NULL || ctx->cmac_ctx == NULL || in mbedtls_cipher_cmac_finish()
325 block_size = ctx->cipher_info->block_size; in mbedtls_cipher_cmac_finish()
374 if( ctx == NULL || ctx->cipher_info == NULL || ctx->cmac_ctx == NULL ) in mbedtls_cipher_cmac_reset()
389 int mbedtls_cipher_cmac( const mbedtls_cipher_info_t *cipher_info, in mbedtls_cipher_cmac() argument
397 if( cipher_info == NULL || key == NULL || input == NULL || output == NULL ) in mbedtls_cipher_cmac()
402 if( ( ret = mbedtls_cipher_setup( &ctx, cipher_info ) ) != 0 ) in mbedtls_cipher_cmac()
430 const mbedtls_cipher_info_t *cipher_info; in mbedtls_aes_cmac_prf_128() local
437 cipher_info = mbedtls_cipher_info_from_type( MBEDTLS_CIPHER_AES_128_ECB ); in mbedtls_aes_cmac_prf_128()
438 if( cipher_info == NULL ) in mbedtls_aes_cmac_prf_128()
454 ret = mbedtls_cipher_cmac( cipher_info, zero_key, 128, key, in mbedtls_aes_cmac_prf_128()
460 ret = mbedtls_cipher_cmac( cipher_info, int_key, 128, input, in_len, in mbedtls_aes_cmac_prf_128()
729 const mbedtls_cipher_info_t *cipher_info; in cmac_test_subkeys() local
733 cipher_info = mbedtls_cipher_info_from_type( cipher_type ); in cmac_test_subkeys()
734 if( cipher_info == NULL ) in cmac_test_subkeys()
747 if( ( ret = mbedtls_cipher_setup( &ctx, cipher_info ) ) != 0 ) in cmac_test_subkeys()
808 const mbedtls_cipher_info_t *cipher_info; in cmac_test_wth_cipher() local
812 cipher_info = mbedtls_cipher_info_from_type( cipher_type ); in cmac_test_wth_cipher()
813 if( cipher_info == NULL ) in cmac_test_wth_cipher()
825 if( ( ret = mbedtls_cipher_cmac( cipher_info, key, keybits, messages, in cmac_test_wth_cipher()