Lines Matching refs:cipher_ctx
22 mbedtls_cipher_context_t cipher_ctx; member
48 if (mbedtls_cipher_setup_info(&c->cipher_ctx, cipher_info)) in mbed_cmac_init()
51 if (mbedtls_cipher_cmac_reset(&c->cipher_ctx)) in mbed_cmac_init()
54 if (mbedtls_cipher_cmac_starts(&c->cipher_ctx, key, len * 8)) in mbed_cmac_init()
65 if (mbedtls_cipher_cmac_update(&c->cipher_ctx, data, len)) in mbed_cmac_update()
92 if (mbedtls_cipher_cmac_finish(&c->cipher_ctx, tmp_digest)) in mbed_cmac_final()
105 mbedtls_cipher_free(&c->cipher_ctx); in mbed_cmac_free_ctx()
115 if (mbedtls_cipher_clone(&dst->cipher_ctx, &src->cipher_ctx)) in mbed_cmac_copy_state()
155 mbedtls_cipher_init(&c->cipher_ctx); in crypto_cmac_alloc_ctx()
156 mbed_res = mbedtls_cipher_setup(&c->cipher_ctx, cipher_info); in crypto_cmac_alloc_ctx()
163 mbed_res = mbedtls_cipher_cmac_setup(&c->cipher_ctx); in crypto_cmac_alloc_ctx()