Lines Matching refs:aec

420 	struct crypto_authenc_ctx aec;  member
427 to_aes_gcm_ctx(struct crypto_authenc_ctx *aec) in to_aes_gcm_ctx() argument
429 assert(aec->ops == &aes_gcm_ops); in to_aes_gcm_ctx()
431 return container_of(aec, struct aes_gcm_ctx, aec); in to_aes_gcm_ctx()
440 ctx->aec.ops = &aes_gcm_ops; in crypto_aes_gcm_alloc_ctx()
442 *ctx_ret = &ctx->aec; in crypto_aes_gcm_alloc_ctx()
447 static void aes_gcm_free_ctx(struct crypto_authenc_ctx *aec) in aes_gcm_free_ctx() argument
449 free(to_aes_gcm_ctx(aec)); in aes_gcm_free_ctx()
458 static TEE_Result aes_gcm_init(struct crypto_authenc_ctx *aec, in aes_gcm_init() argument
465 return internal_aes_gcm_init(&to_aes_gcm_ctx(aec)->ctx, mode, key, in aes_gcm_init()
469 static TEE_Result aes_gcm_update_aad(struct crypto_authenc_ctx *aec, in aes_gcm_update_aad() argument
472 return internal_aes_gcm_update_aad(&to_aes_gcm_ctx(aec)->ctx, data, in aes_gcm_update_aad()
476 static TEE_Result aes_gcm_update_payload(struct crypto_authenc_ctx *aec, in aes_gcm_update_payload() argument
481 return internal_aes_gcm_update_payload(&to_aes_gcm_ctx(aec)->ctx, in aes_gcm_update_payload()
485 static TEE_Result aes_gcm_enc_final(struct crypto_authenc_ctx *aec, in aes_gcm_enc_final() argument
489 return internal_aes_gcm_enc_final(&to_aes_gcm_ctx(aec)->ctx, src, len, in aes_gcm_enc_final()
493 static TEE_Result aes_gcm_dec_final(struct crypto_authenc_ctx *aec, in aes_gcm_dec_final() argument
498 return internal_aes_gcm_dec_final(&to_aes_gcm_ctx(aec)->ctx, src, len, in aes_gcm_dec_final()
502 static void aes_gcm_final(struct crypto_authenc_ctx *aec __unused) in aes_gcm_final()