Home
last modified time | relevance | path

Searched refs:crypto_authenc_ctx (Results 1 – 11 of 11) sorted by relevance

/optee_os/core/lib/libtomcrypt/
H A Dgcm.c19 struct crypto_authenc_ctx aectx;
26 static struct tee_gcm_state *to_tee_gcm_state(struct crypto_authenc_ctx *aectx) in to_tee_gcm_state()
33 TEE_Result crypto_aes_gcm_alloc_ctx(struct crypto_authenc_ctx **ctx_ret) 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()
51 static void crypto_aes_gcm_copy_state(struct crypto_authenc_ctx *dst_aectx, in crypto_aes_gcm_copy_state()
52 struct crypto_authenc_ctx *src_aectx) in crypto_aes_gcm_copy_state()
61 static TEE_Result crypto_aes_gcm_init(struct crypto_authenc_ctx *aectx, in crypto_aes_gcm_init()
91 static TEE_Result crypto_aes_gcm_update_aad(struct crypto_authenc_ctx *aectx, in crypto_aes_gcm_update_aad()
106 crypto_aes_gcm_update_payload(struct crypto_authenc_ctx *aectx, in crypto_aes_gcm_update_payload()
142 static TEE_Result crypto_aes_gcm_enc_final(struct crypto_authenc_ctx *aectx, in crypto_aes_gcm_enc_final()
[all …]
H A Dccm.c21 struct crypto_authenc_ctx aectx;
28 TEE_Result crypto_aes_ccm_alloc_ctx(struct crypto_authenc_ctx **ctx_ret) 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()
47 static void crypto_aes_ccm_free_ctx(struct crypto_authenc_ctx *aectx) in crypto_aes_ccm_free_ctx()
52 static void crypto_aes_ccm_copy_state(struct crypto_authenc_ctx *dst_aectx, in crypto_aes_ccm_copy_state()
53 struct crypto_authenc_ctx *src_aectx) in crypto_aes_ccm_copy_state()
62 static TEE_Result crypto_aes_ccm_init(struct crypto_authenc_ctx *aectx, in crypto_aes_ccm_init()
110 static TEE_Result crypto_aes_ccm_update_aad(struct crypto_authenc_ctx *aectx, in crypto_aes_ccm_update_aad()
125 crypto_aes_ccm_update_payload(struct crypto_authenc_ctx *aectx, in crypto_aes_ccm_update_payload()
151 static TEE_Result crypto_aes_ccm_enc_final(struct crypto_authenc_ctx *aectx, in crypto_aes_ccm_enc_final()
[all …]
/optee_os/core/drivers/crypto/crypto_api/authenc/
H A Dauthenc.c24 static struct crypto_authenc *to_authenc_ctx(struct crypto_authenc_ctx *ctx) in to_authenc_ctx()
36 static void authenc_free_ctx(struct crypto_authenc_ctx *ctx) in authenc_free_ctx()
52 static void authenc_copy_state(struct crypto_authenc_ctx *dst_ctx, in authenc_copy_state()
53 struct crypto_authenc_ctx *src_ctx) in authenc_copy_state()
75 static TEE_Result authenc_init(struct crypto_authenc_ctx *ctx, in authenc_init()
118 static TEE_Result authenc_update_aad(struct crypto_authenc_ctx *ctx, in authenc_update_aad()
151 static TEE_Result authenc_update_payload(struct crypto_authenc_ctx *ctx, in authenc_update_payload()
197 static TEE_Result authenc_enc_final(struct crypto_authenc_ctx *ctx, in authenc_enc_final()
245 static TEE_Result authenc_dec_final(struct crypto_authenc_ctx *ctx, in authenc_dec_final()
286 static void authenc_final(struct crypto_authenc_ctx *ctx) in authenc_final()
[all …]
/optee_os/core/include/crypto/
H A Dcrypto_impl.h322 struct crypto_authenc_ctx { struct
327 TEE_Result (*init)(struct crypto_authenc_ctx *ctx, argument
333 TEE_Result (*update_aad)(struct crypto_authenc_ctx *ctx,
335 TEE_Result (*update_payload)(struct crypto_authenc_ctx *ctx,
339 TEE_Result (*enc_final)(struct crypto_authenc_ctx *ctx,
343 TEE_Result (*dec_final)(struct crypto_authenc_ctx *ctx,
347 void (*final)(struct crypto_authenc_ctx *ctx);
348 void (*free_ctx)(struct crypto_authenc_ctx *ctx);
349 void (*copy_state)(struct crypto_authenc_ctx *dst_ctx,
350 struct crypto_authenc_ctx *src_ctx);
[all …]
/optee_os/core/crypto/
H A Daes-gcm.c420 struct crypto_authenc_ctx aec;
427 to_aes_gcm_ctx(struct crypto_authenc_ctx *aec) in to_aes_gcm_ctx()
434 TEE_Result crypto_aes_gcm_alloc_ctx(struct crypto_authenc_ctx **ctx_ret) in crypto_aes_gcm_alloc_ctx()
447 static void aes_gcm_free_ctx(struct crypto_authenc_ctx *aec) in aes_gcm_free_ctx()
452 static void aes_gcm_copy_state(struct crypto_authenc_ctx *dst_ctx, in aes_gcm_copy_state()
453 struct crypto_authenc_ctx *src_ctx) in aes_gcm_copy_state()
458 static TEE_Result aes_gcm_init(struct crypto_authenc_ctx *aec, in aes_gcm_init()
469 static TEE_Result aes_gcm_update_aad(struct crypto_authenc_ctx *aec, in aes_gcm_update_aad()
476 static TEE_Result aes_gcm_update_payload(struct crypto_authenc_ctx *aec, in aes_gcm_update_payload()
485 static TEE_Result aes_gcm_enc_final(struct crypto_authenc_ctx *aec, in aes_gcm_enc_final()
[all …]
H A Dcrypto.c367 struct crypto_authenc_ctx *c = NULL; in crypto_authenc_alloc_ctx()
400 struct crypto_authenc_ctx *c = ctx; in ae_ops()
/optee_os/core/drivers/crypto/crypto_api/include/
H A Ddrvcrypt_authenc.h17 struct crypto_authenc_ctx authenc_ctx; /* Crypto authenc API context */
/optee_os/core/drivers/crypto/hisilicon/
H A Dsec_authenc.h58 struct crypto_authenc_ctx *ae_soft_ctx;
H A Dsec_authenc.c185 struct crypto_authenc_ctx *ae_soft_ctx = NULL; in sec_authenc_ctx_allocate()
447 struct crypto_authenc_ctx *ae_soft_ctx = NULL; in ae_soft_calc_init()
524 struct crypto_authenc_ctx *ae_soft_ctx = NULL; in sec_authenc_update_aad()
586 struct crypto_authenc_ctx *ae_soft_ctx = NULL; in sec_authenc_update_payload()
656 struct crypto_authenc_ctx *ae_soft_ctx = NULL; in sec_authenc_enc_final()
695 struct crypto_authenc_ctx *ae_soft_ctx = NULL; in sec_authenc_dec_final()
/optee_os/core/drivers/crypto/stm32/
H A Dauthenc.c26 struct crypto_authenc_ctx a_ctx;
40 static struct stm32_ae_ctx *to_stm32_ae_ctx(struct crypto_authenc_ctx *ctx) in to_stm32_ae_ctx()
/optee_os/core/drivers/crypto/versal/
H A Dauthenc.c162 struct crypto_authenc_ctx a_ctx;
189 static struct versal_ae_ctx *to_versal_ctx(struct crypto_authenc_ctx *ctx) in to_versal_ctx()
301 static bool context_allowed(struct crypto_authenc_ctx *ctx) in context_allowed()