Searched refs:aectx (Results 1 – 2 of 2) sorted by relevance
19 struct crypto_authenc_ctx aectx; member26 static struct tee_gcm_state *to_tee_gcm_state(struct crypto_authenc_ctx *aectx) in to_tee_gcm_state() argument28 assert(aectx && aectx->ops == &aes_gcm_ops); in to_tee_gcm_state()30 return container_of(aectx, struct tee_gcm_state, aectx); in to_tee_gcm_state()39 ctx->aectx.ops = &aes_gcm_ops; in crypto_aes_gcm_alloc_ctx()41 *ctx_ret = &ctx->aectx; in crypto_aes_gcm_alloc_ctx()46 static void crypto_aes_gcm_free_ctx(struct crypto_authenc_ctx *aectx) in crypto_aes_gcm_free_ctx() argument48 free(to_tee_gcm_state(aectx)); in crypto_aes_gcm_free_ctx()61 static TEE_Result crypto_aes_gcm_init(struct crypto_authenc_ctx *aectx, in crypto_aes_gcm_init() argument70 struct tee_gcm_state *gcm = to_tee_gcm_state(aectx); in crypto_aes_gcm_init()[all …]
21 struct crypto_authenc_ctx aectx; member34 ctx->aectx.ops = &aes_ccm_ops; in crypto_aes_ccm_alloc_ctx()36 *ctx_ret = &ctx->aectx; in crypto_aes_ccm_alloc_ctx()40 static struct tee_ccm_state *to_tee_ccm_state(struct crypto_authenc_ctx *aectx) in to_tee_ccm_state() argument42 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()47 static void crypto_aes_ccm_free_ctx(struct crypto_authenc_ctx *aectx) in crypto_aes_ccm_free_ctx() argument49 free(to_tee_ccm_state(aectx)); in crypto_aes_ccm_free_ctx()62 static TEE_Result crypto_aes_ccm_init(struct crypto_authenc_ctx *aectx, in crypto_aes_ccm_init() argument71 struct tee_ccm_state *ccm = to_tee_ccm_state(aectx); in crypto_aes_ccm_init()[all …]