Home
last modified time | relevance | path

Searched refs:aead_instance (Results 1 – 12 of 12) sorted by relevance

/Linux-v4.19/include/crypto/internal/
Daead.h23 struct aead_instance { struct
24 void (*free)(struct aead_instance *inst); argument
48 struct aead_instance *inst) in aead_crypto_instance() argument
53 static inline struct aead_instance *aead_instance(struct crypto_instance *inst) in aead_instance() function
55 return container_of(&inst->alg, struct aead_instance, alg.base); in aead_instance()
58 static inline struct aead_instance *aead_alg_instance(struct crypto_aead *aead) in aead_alg_instance()
60 return aead_instance(crypto_tfm_alg_instance(&aead->base)); in aead_alg_instance()
63 static inline void *aead_instance_ctx(struct aead_instance *inst) in aead_instance_ctx()
188 struct aead_instance *inst);
Dgeniv.h27 struct aead_instance *aead_geniv_alloc(struct crypto_template *tmpl,
29 void aead_geniv_free(struct aead_instance *inst);
/Linux-v4.19/crypto/
Daead.c161 struct aead_instance *aead = aead_instance(inst); in crypto_aead_free_instance()
201 struct aead_instance *aead_geniv_alloc(struct crypto_template *tmpl, in aead_geniv_alloc()
207 struct aead_instance *inst; in aead_geniv_alloc()
281 void aead_geniv_free(struct aead_instance *inst) in aead_geniv_free()
291 struct aead_instance *inst = aead_alg_instance(aead); in aead_init_geniv()
422 struct aead_instance *inst) in aead_register_instance()
Dauthenc.c123 struct aead_instance *inst = aead_alg_instance(authenc); in authenc_geniv_ahash_done()
142 struct aead_instance *inst = aead_alg_instance(authenc); in crypto_authenc_genicv()
202 struct aead_instance *inst = aead_alg_instance(authenc); in crypto_authenc_encrypt()
240 struct aead_instance *inst = aead_alg_instance(authenc); in crypto_authenc_decrypt_tail()
289 struct aead_instance *inst = aead_alg_instance(authenc); in crypto_authenc_decrypt()
316 struct aead_instance *inst = aead_alg_instance(tfm); in crypto_authenc_init_tfm()
370 static void crypto_authenc_free(struct aead_instance *inst) in crypto_authenc_free()
383 struct aead_instance *inst; in crypto_authenc_create()
Dechainiv.c120 struct aead_instance *inst; in echainiv_aead_create()
157 aead_geniv_free(aead_instance(inst)); in echainiv_free()
Dgcm.c545 struct aead_instance *inst = aead_alg_instance(tfm); in crypto_gcm_init_tfm()
589 static void crypto_gcm_free(struct aead_instance *inst) in crypto_gcm_free()
605 struct aead_instance *inst; in crypto_gcm_create_common()
868 struct aead_instance *inst = aead_alg_instance(tfm); in crypto_rfc4106_init_tfm()
898 static void crypto_rfc4106_free(struct aead_instance *inst) in crypto_rfc4106_free()
908 struct aead_instance *inst; in crypto_rfc4106_create()
1091 struct aead_instance *inst = aead_alg_instance(tfm); in crypto_rfc4543_init_tfm()
1135 static void crypto_rfc4543_free(struct aead_instance *inst) in crypto_rfc4543_free()
1148 struct aead_instance *inst; in crypto_rfc4543_create()
Dseqiv.c146 struct aead_instance *inst; in seqiv_aead_create()
195 aead_geniv_free(aead_instance(inst)); in seqiv_free()
Dpcrypt.c225 struct aead_instance *inst = aead_alg_instance(tfm); in pcrypt_aead_init_tfm()
257 static void pcrypt_free(struct aead_instance *inst) in pcrypt_free()
286 struct aead_instance *inst; in pcrypt_create_aead()
Dccm.c405 struct aead_instance *inst = aead_alg_instance(tfm); in crypto_ccm_init_tfm()
447 static void crypto_ccm_free(struct aead_instance *inst) in crypto_ccm_free()
463 struct aead_instance *inst; in crypto_ccm_create_common()
730 struct aead_instance *inst = aead_alg_instance(tfm); in crypto_rfc4309_init_tfm()
760 static void crypto_rfc4309_free(struct aead_instance *inst) in crypto_rfc4309_free()
770 struct aead_instance *inst; in crypto_rfc4309_create()
Dauthencesn.c339 struct aead_instance *inst = aead_alg_instance(tfm); in crypto_authenc_esn_init_tfm()
396 static void crypto_authenc_esn_free(struct aead_instance *inst) in crypto_authenc_esn_free()
409 struct aead_instance *inst; in crypto_authenc_esn_create()
Dchacha20poly1305.c524 struct aead_instance *inst = aead_alg_instance(tfm); in chachapoly_init()
568 static void chachapoly_free(struct aead_instance *inst) in chachapoly_free()
581 struct aead_instance *inst; in chachapoly_create()
Dcryptd.c1027 struct aead_instance *inst = aead_alg_instance(tfm); in cryptd_aead_init_tfm()
1055 struct aead_instance *inst; in cryptd_create_aead()
1148 kfree(aead_instance(inst)); in cryptd_free()