Lines Matching refs:cipher_info

105     block_size = mbedtls_cipher_info_get_block_size(ctx->cipher_info);  in cmac_generate_subkeys()
178 if (ctx == NULL || ctx->cipher_info == NULL || key == NULL) { in mbedtls_cipher_cmac_starts()
187 type = mbedtls_cipher_info_get_type(ctx->cipher_info); in mbedtls_cipher_cmac_starts()
214 if (ctx == NULL || ctx->cipher_info == NULL || input == NULL || in mbedtls_cipher_cmac_update()
220 block_size = mbedtls_cipher_info_get_block_size(ctx->cipher_info); in mbedtls_cipher_cmac_update()
287 if (ctx == NULL || ctx->cipher_info == NULL || ctx->cmac_ctx == NULL || in mbedtls_cipher_cmac_finish()
293 block_size = mbedtls_cipher_info_get_block_size(ctx->cipher_info); in mbedtls_cipher_cmac_finish()
339 if (ctx == NULL || ctx->cipher_info == NULL || ctx->cmac_ctx == NULL) { in mbedtls_cipher_cmac_reset()
355 int mbedtls_cipher_cmac(const mbedtls_cipher_info_t *cipher_info, in mbedtls_cipher_cmac() argument
363 if (cipher_info == NULL || key == NULL || input == NULL || output == NULL) { in mbedtls_cipher_cmac()
369 if ((ret = mbedtls_cipher_setup(&ctx, cipher_info)) != 0) { in mbedtls_cipher_cmac()
400 const mbedtls_cipher_info_t *cipher_info; in mbedtls_aes_cmac_prf_128() local
408 cipher_info = mbedtls_cipher_info_from_type(MBEDTLS_CIPHER_AES_128_ECB); in mbedtls_aes_cmac_prf_128()
409 if (cipher_info == NULL) { in mbedtls_aes_cmac_prf_128()
421 ret = mbedtls_cipher_cmac(cipher_info, zero_key, 128, key, in mbedtls_aes_cmac_prf_128()
428 ret = mbedtls_cipher_cmac(cipher_info, int_key, 128, input, in_len, in mbedtls_aes_cmac_prf_128()
748 const mbedtls_cipher_info_t *cipher_info; in cmac_test_subkeys() local
752 cipher_info = mbedtls_cipher_info_from_type(cipher_type); in cmac_test_subkeys()
753 if (cipher_info == NULL) { in cmac_test_subkeys()
765 if ((ret = mbedtls_cipher_setup(&ctx, cipher_info)) != 0) { in cmac_test_subkeys()
842 const mbedtls_cipher_info_t *cipher_info; in cmac_test_wth_cipher() local
846 cipher_info = mbedtls_cipher_info_from_type(cipher_type); in cmac_test_wth_cipher()
847 if (cipher_info == NULL) { in cmac_test_wth_cipher()
858 if ((ret = mbedtls_cipher_cmac(cipher_info, key, keybits, messages, in cmac_test_wth_cipher()