Home
last modified time | relevance | path

Searched refs:aectx (Results 1 – 2 of 2) sorted by relevance

/optee_os-3.20.0/core/lib/libtomcrypt/
A Dgcm.c18 struct crypto_authenc_ctx aectx; member
27 assert(aectx && aectx->ops == &aes_gcm_ops); in to_tee_gcm_state()
29 return container_of(aectx, struct tee_gcm_state, aectx); in to_tee_gcm_state()
38 ctx->aectx.ops = &aes_gcm_ops; in crypto_aes_gcm_alloc_ctx()
40 *ctx_ret = &ctx->aectx; in crypto_aes_gcm_alloc_ctx()
47 free(to_tee_gcm_state(aectx)); in crypto_aes_gcm_free_ctx()
69 struct tee_gcm_state *gcm = to_tee_gcm_state(aectx); in crypto_aes_gcm_init()
93 struct tee_gcm_state *gcm = to_tee_gcm_state(aectx); in crypto_aes_gcm_update_aad()
112 struct tee_gcm_state *gcm = to_tee_gcm_state(aectx); in crypto_aes_gcm_update_payload()
128 res = crypto_aes_gcm_update_aad(aectx, NULL, 0); in crypto_aes_gcm_update_payload()
[all …]
A Dccm.c21 struct crypto_authenc_ctx aectx; member
34 ctx->aectx.ops = &aes_ccm_ops; in crypto_aes_ccm_alloc_ctx()
36 *ctx_ret = &ctx->aectx; in crypto_aes_ccm_alloc_ctx()
42 assert(aectx && aectx->ops == &aes_ccm_ops); in to_tee_ccm_state()
44 return container_of(aectx, struct tee_ccm_state, aectx); in to_tee_ccm_state()
49 free(to_tee_ccm_state(aectx)); in crypto_aes_ccm_free_ctx()
71 struct tee_ccm_state *ccm = to_tee_ccm_state(aectx); in crypto_aes_ccm_init()
113 struct tee_ccm_state *ccm = to_tee_ccm_state(aectx); in crypto_aes_ccm_update_aad()
131 struct tee_ccm_state *ccm = to_tee_ccm_state(aectx); in crypto_aes_ccm_update_payload()
158 struct tee_ccm_state *ccm = to_tee_ccm_state(aectx); in crypto_aes_ccm_enc_final()
[all …]

Completed in 4 milliseconds