Lines Matching refs:cipher_info

105     block_size = mbedtls_cipher_info_get_block_size(ctx->cipher_info);  in cmac_generate_subkeys()
163 if (ctx == NULL || ctx->cipher_info == NULL || key == NULL) { in mbedtls_cipher_cmac_starts()
172 type = mbedtls_cipher_info_get_type(ctx->cipher_info); in mbedtls_cipher_cmac_starts()
206 if (ctx == NULL || ctx->cipher_info == NULL || input == NULL || in mbedtls_cipher_cmac_update()
212 block_size = mbedtls_cipher_info_get_block_size(ctx->cipher_info); in mbedtls_cipher_cmac_update()
279 if (ctx == NULL || ctx->cipher_info == NULL || ctx->cmac_ctx == NULL || in mbedtls_cipher_cmac_finish()
285 block_size = mbedtls_cipher_info_get_block_size(ctx->cipher_info); in mbedtls_cipher_cmac_finish()
331 if (ctx == NULL || ctx->cipher_info == NULL || ctx->cmac_ctx == NULL) { in mbedtls_cipher_cmac_reset()
347 int mbedtls_cipher_cmac(const mbedtls_cipher_info_t *cipher_info, in mbedtls_cipher_cmac() argument
355 if (cipher_info == NULL || key == NULL || input == NULL || output == NULL) { in mbedtls_cipher_cmac()
361 if ((ret = mbedtls_cipher_setup(&ctx, cipher_info)) != 0) { in mbedtls_cipher_cmac()
392 const mbedtls_cipher_info_t *cipher_info; in mbedtls_aes_cmac_prf_128() local
400 cipher_info = mbedtls_cipher_info_from_type(MBEDTLS_CIPHER_AES_128_ECB); in mbedtls_aes_cmac_prf_128()
401 if (cipher_info == NULL) { in mbedtls_aes_cmac_prf_128()
413 ret = mbedtls_cipher_cmac(cipher_info, zero_key, 128, key, in mbedtls_aes_cmac_prf_128()
420 ret = mbedtls_cipher_cmac(cipher_info, int_key, 128, input, in_len, in mbedtls_aes_cmac_prf_128()
740 const mbedtls_cipher_info_t *cipher_info; in cmac_test_subkeys() local
744 cipher_info = mbedtls_cipher_info_from_type(cipher_type); in cmac_test_subkeys()
745 if (cipher_info == NULL) { in cmac_test_subkeys()
757 if ((ret = mbedtls_cipher_setup(&ctx, cipher_info)) != 0) { in cmac_test_subkeys()
834 const mbedtls_cipher_info_t *cipher_info; in cmac_test_wth_cipher() local
838 cipher_info = mbedtls_cipher_info_from_type(cipher_type); in cmac_test_wth_cipher()
839 if (cipher_info == NULL) { in cmac_test_wth_cipher()
850 if ((ret = mbedtls_cipher_cmac(cipher_info, key, keybits, messages, in cmac_test_wth_cipher()