Home
last modified time | relevance | path

Searched refs:mac_ctx (Results 1 – 6 of 6) sorted by relevance

/optee_os/core/drivers/crypto/stm32/
H A Dhmac.c20 struct crypto_mac_ctx mac_ctx; member
30 return container_of(ctx, struct stm32_hmac_ctx, mac_ctx); in to_stm32_hmac_ctx()
140 memcpy(&dst->mac_ctx, &src->mac_ctx, sizeof(dst->mac_ctx)); in do_hmac_copy_state()
212 c->mac_ctx.ops = &hmac_ops; in stm32_hmac_allocate()
213 *ctx = &c->mac_ctx; in stm32_hmac_allocate()
/optee_os/core/crypto/
H A Dsm3-hmac.c21 struct crypto_mac_ctx mac_ctx; member
31 return container_of(ctx, struct sm3_hmac_ctx, mac_ctx); in to_hmac_ctx()
107 c->mac_ctx.ops = &sm3_hmac_ops; in crypto_hmac_sm3_alloc_ctx()
109 *ctx = &c->mac_ctx; in crypto_hmac_sm3_alloc_ctx()
/optee_os/lib/libmbedtls/core/
H A Dcmac.c21 struct crypto_mac_ctx mac_ctx; member
33 return container_of(ctx, struct mbed_cmac_ctx, mac_ctx); in to_cmac_ctx()
153 c->mac_ctx.ops = &mbed_cmac_ops; in crypto_cmac_alloc_ctx()
169 *ctx_ret = &c->mac_ctx; in crypto_cmac_alloc_ctx()
H A Dhmac.c20 struct crypto_mac_ctx mac_ctx; member
30 return container_of(ctx, struct mbed_hmac_ctx, mac_ctx); in to_hmac_ctx()
120 c->mac_ctx.ops = &mbed_hmac_ops; in mbed_hmac_alloc_ctx()
129 *ctx_ret = &c->mac_ctx; in mbed_hmac_alloc_ctx()
/optee_os/core/drivers/crypto/caam/hash/
H A Dcaam_hash_mac.c36 struct crypto_mac_ctx mac_ctx; /* Crypto MAC API context */ member
56 return container_of(ctx, struct crypto_mac, mac_ctx); in to_mac_ctx()
315 mac->mac_ctx.ops = &hmac_ops; in caam_hmac_allocate()
318 *ctx = &mac->mac_ctx; in caam_hmac_allocate()
/optee_os/core/drivers/crypto/caam/cipher/
H A Dcaam_cipher_mac.c94 struct crypto_mac_ctx mac_ctx; /* Crypto MAC API context */ member
107 return container_of(ctx, struct crypto_mac, mac_ctx); in to_mac_ctx()
797 mac->mac_ctx.ops = &cmac_ops; in caam_cmac_allocate()
800 *ctx = &mac->mac_ctx; in caam_cmac_allocate()