Home
last modified time | relevance | path

Searched refs:crypto_instance (Results 1 – 36 of 36) sorted by relevance

/linux-4.1.27/include/crypto/internal/
Dhash.h84 void ahash_free_instance(struct crypto_instance *inst);
88 struct crypto_instance *inst);
103 void shash_free_instance(struct crypto_instance *inst);
107 struct crypto_instance *inst);
148 static inline struct crypto_instance *ahash_crypto_instance( in ahash_crypto_instance()
151 return container_of(&inst->alg.halg.base, struct crypto_instance, alg); in ahash_crypto_instance()
155 struct crypto_instance *inst) in ahash_instance()
205 static inline struct crypto_instance *shash_crypto_instance( in shash_crypto_instance()
208 return container_of(&inst->alg.base, struct crypto_instance, alg); in shash_crypto_instance()
212 struct crypto_instance *inst) in shash_instance()
Daead.h29 struct crypto_aead_spawn *spawn, struct crypto_instance *inst) in crypto_set_aead_spawn()
58 struct crypto_instance *aead_geniv_alloc(struct crypto_template *tmpl,
61 void aead_geniv_free(struct crypto_instance *inst);
Dskcipher.h29 struct crypto_skcipher_spawn *spawn, struct crypto_instance *inst) in crypto_set_skcipher_spawn()
62 struct crypto_instance *skcipher_geniv_alloc(struct crypto_template *tmpl,
65 void skcipher_geniv_free(struct crypto_instance *inst);
/linux-4.1.27/include/crypto/
Dalgapi.h39 struct crypto_instance { struct
53 struct crypto_instance *(*alloc)(struct rtattr **tb); argument
54 void (*free)(struct crypto_instance *inst);
63 struct crypto_instance *inst;
139 struct crypto_instance *inst);
140 int crypto_unregister_instance(struct crypto_instance *inst);
143 struct crypto_instance *inst, u32 mask);
145 struct crypto_instance *inst,
154 struct crypto_instance *inst) in crypto_set_spawn()
175 struct crypto_instance *crypto_alloc_instance(const char *name,
[all …]
/linux-4.1.27/crypto/
Dseqiv.c261 static struct crypto_instance *seqiv_ablkcipher_alloc(struct rtattr **tb) in seqiv_ablkcipher_alloc()
263 struct crypto_instance *inst; in seqiv_ablkcipher_alloc()
287 static struct crypto_instance *seqiv_aead_alloc(struct rtattr **tb) in seqiv_aead_alloc()
289 struct crypto_instance *inst; in seqiv_aead_alloc()
313 static struct crypto_instance *seqiv_alloc(struct rtattr **tb) in seqiv_alloc()
316 struct crypto_instance *inst; in seqiv_alloc()
346 static void seqiv_free(struct crypto_instance *inst) in seqiv_free()
Decb.c99 struct crypto_instance *inst = (void *)tfm->__crt_alg; in crypto_ecb_init_tfm()
118 static struct crypto_instance *crypto_ecb_alloc(struct rtattr **tb) in crypto_ecb_alloc()
120 struct crypto_instance *inst; in crypto_ecb_alloc()
160 static void crypto_ecb_free(struct crypto_instance *inst) in crypto_ecb_free()
Dctr.c160 struct crypto_instance *inst = (void *)tfm->__crt_alg; in crypto_ctr_init_tfm()
181 static struct crypto_instance *crypto_ctr_alloc(struct rtattr **tb) in crypto_ctr_alloc()
183 struct crypto_instance *inst; in crypto_ctr_alloc()
239 static void crypto_ctr_free(struct crypto_instance *inst) in crypto_ctr_free()
308 struct crypto_instance *inst = (void *)tfm->__crt_alg; in crypto_rfc3686_init_tfm()
336 static struct crypto_instance *crypto_rfc3686_alloc(struct rtattr **tb) in crypto_rfc3686_alloc()
339 struct crypto_instance *inst; in crypto_rfc3686_alloc()
423 static void crypto_rfc3686_free(struct crypto_instance *inst) in crypto_rfc3686_free()
Dalgapi.c74 struct crypto_instance *inst = (void *)alg; in crypto_destroy_instance()
104 static void crypto_remove_instance(struct crypto_instance *inst, in crypto_remove_instance()
148 struct crypto_instance *inst; in crypto_remove_spawns()
463 struct crypto_instance *inst; in crypto_unregister_template()
519 struct crypto_instance *inst) in crypto_register_instance()
563 int crypto_unregister_instance(struct crypto_instance *inst) in crypto_unregister_instance()
581 struct crypto_instance *inst, u32 mask) in crypto_init_spawn()
601 struct crypto_instance *inst, in crypto_init_spawn2()
794 struct crypto_instance *inst; in crypto_alloc_instance2()
822 struct crypto_instance *crypto_alloc_instance(const char *name, in crypto_alloc_instance()
[all …]
Dpcrypt.c276 struct crypto_instance *inst = crypto_tfm_alg_instance(tfm); in pcrypt_aead_init_tfm()
309 static struct crypto_instance *pcrypt_alloc_instance(struct crypto_alg *alg) in pcrypt_alloc_instance()
311 struct crypto_instance *inst; in pcrypt_alloc_instance()
347 static struct crypto_instance *pcrypt_alloc_aead(struct rtattr **tb, in pcrypt_alloc_aead()
350 struct crypto_instance *inst; in pcrypt_alloc_aead()
384 static struct crypto_instance *pcrypt_alloc(struct rtattr **tb) in pcrypt_alloc()
400 static void pcrypt_free(struct crypto_instance *inst) in pcrypt_free()
Dccm.c434 struct crypto_instance *inst = (void *)tfm->__crt_alg; in crypto_ccm_init_tfm()
475 static struct crypto_instance *crypto_ccm_alloc_common(struct rtattr **tb, in crypto_ccm_alloc_common()
481 struct crypto_instance *inst; in crypto_ccm_alloc_common()
573 static struct crypto_instance *crypto_ccm_alloc(struct rtattr **tb) in crypto_ccm_alloc()
594 static void crypto_ccm_free(struct crypto_instance *inst) in crypto_ccm_free()
610 static struct crypto_instance *crypto_ccm_base_alloc(struct rtattr **tb) in crypto_ccm_base_alloc()
718 struct crypto_instance *inst = (void *)tfm->__crt_alg; in crypto_rfc4309_init_tfm()
747 static struct crypto_instance *crypto_rfc4309_alloc(struct rtattr **tb) in crypto_rfc4309_alloc()
750 struct crypto_instance *inst; in crypto_rfc4309_alloc()
831 static void crypto_rfc4309_free(struct crypto_instance *inst) in crypto_rfc4309_free()
Dcbc.c195 struct crypto_instance *inst = (void *)tfm->__crt_alg; in crypto_cbc_init_tfm()
214 static struct crypto_instance *crypto_cbc_alloc(struct rtattr **tb) in crypto_cbc_alloc()
216 struct crypto_instance *inst; in crypto_cbc_alloc()
264 static void crypto_cbc_free(struct crypto_instance *inst) in crypto_cbc_free()
Dpcbc.c205 struct crypto_instance *inst = (void *)tfm->__crt_alg; in crypto_pcbc_init_tfm()
224 static struct crypto_instance *crypto_pcbc_alloc(struct rtattr **tb) in crypto_pcbc_alloc()
226 struct crypto_instance *inst; in crypto_pcbc_alloc()
270 static void crypto_pcbc_free(struct crypto_instance *inst) in crypto_pcbc_free()
Dgcm.c653 struct crypto_instance *inst = (void *)tfm->__crt_alg; in crypto_gcm_init_tfm()
697 static struct crypto_instance *crypto_gcm_alloc_common(struct rtattr **tb, in crypto_gcm_alloc_common()
703 struct crypto_instance *inst; in crypto_gcm_alloc_common()
793 static struct crypto_instance *crypto_gcm_alloc(struct rtattr **tb) in crypto_gcm_alloc()
814 static void crypto_gcm_free(struct crypto_instance *inst) in crypto_gcm_free()
830 static struct crypto_instance *crypto_gcm_base_alloc(struct rtattr **tb) in crypto_gcm_base_alloc()
935 struct crypto_instance *inst = (void *)tfm->__crt_alg; in crypto_rfc4106_init_tfm()
964 static struct crypto_instance *crypto_rfc4106_alloc(struct rtattr **tb) in crypto_rfc4106_alloc()
967 struct crypto_instance *inst; in crypto_rfc4106_alloc()
1048 static void crypto_rfc4106_free(struct crypto_instance *inst) in crypto_rfc4106_free()
[all …]
Dxts.c244 struct crypto_instance *inst = (void *)tfm->__crt_alg; in init_tfm()
287 static struct crypto_instance *alloc(struct rtattr **tb) in alloc()
289 struct crypto_instance *inst; in alloc()
337 static void free(struct crypto_instance *inst) in free()
Dcts.c255 struct crypto_instance *inst = (void *)tfm->__crt_alg; in crypto_cts_init_tfm()
274 static struct crypto_instance *crypto_cts_alloc(struct rtattr **tb) in crypto_cts_alloc()
276 struct crypto_instance *inst; in crypto_cts_alloc()
327 static void crypto_cts_free(struct crypto_instance *inst) in crypto_cts_free()
Deseqiv.c206 static struct crypto_instance *eseqiv_alloc(struct rtattr **tb) in eseqiv_alloc()
208 struct crypto_instance *inst; in eseqiv_alloc()
242 static void eseqiv_free(struct crypto_instance *inst) in eseqiv_free()
Dlrw.c299 struct crypto_instance *inst = (void *)tfm->__crt_alg; in init_tfm()
326 static struct crypto_instance *alloc(struct rtattr **tb) in alloc()
328 struct crypto_instance *inst; in alloc()
375 static void free(struct crypto_instance *inst) in free()
Dchainiv.c287 static struct crypto_instance *chainiv_alloc(struct rtattr **tb) in chainiv_alloc()
290 struct crypto_instance *inst; in chainiv_alloc()
334 static void chainiv_free(struct crypto_instance *inst) in chainiv_free()
Daead.c272 struct crypto_instance *aead_geniv_alloc(struct crypto_template *tmpl, in aead_geniv_alloc()
279 struct crypto_instance *inst; in aead_geniv_alloc()
367 void aead_geniv_free(struct crypto_instance *inst) in aead_geniv_free()
376 struct crypto_instance *inst = (void *)tfm->__crt_alg; in aead_geniv_init()
408 struct crypto_instance *inst; in crypto_nivaead_default()
Dcryptd.c166 struct crypto_instance *inst = crypto_tfm_alg_instance(tfm); in cryptd_get_queue()
275 struct crypto_instance *inst = crypto_tfm_alg_instance(tfm); in cryptd_blkcipher_init_tfm()
302 struct crypto_instance *inst; in cryptd_alloc_instance()
336 struct crypto_instance *inst; in cryptd_create_blkcipher()
396 struct crypto_instance *inst = crypto_tfm_alg_instance(tfm); in cryptd_hash_init_tfm()
720 struct crypto_instance *inst = crypto_tfm_alg_instance(tfm); in cryptd_aead_init_tfm()
747 struct crypto_instance *inst; in cryptd_create_aead()
823 static void cryptd_free(struct crypto_instance *inst) in cryptd_free()
Dmcryptd.c222 struct crypto_instance *inst = crypto_tfm_alg_instance(tfm); in mcryptd_get_queue()
232 struct crypto_instance *inst; in mcryptd_alloc_instance()
277 struct crypto_instance *inst = crypto_tfm_alg_instance(tfm); in mcryptd_hash_init_tfm()
574 static void mcryptd_free(struct crypto_instance *inst) in mcryptd_free()
Dinternal.h39 struct crypto_instance;
Dauthenc.c549 struct crypto_instance *inst = crypto_tfm_alg_instance(tfm); in crypto_authenc_init_tfm()
596 static struct crypto_instance *crypto_authenc_alloc(struct rtattr **tb) in crypto_authenc_alloc()
599 struct crypto_instance *inst; in crypto_authenc_alloc()
693 static void crypto_authenc_free(struct crypto_instance *inst) in crypto_authenc_free()
Dblkcipher.c580 struct crypto_instance *skcipher_geniv_alloc(struct crypto_template *tmpl, in skcipher_geniv_alloc()
599 struct crypto_instance *inst; in skcipher_geniv_alloc()
713 void skcipher_geniv_free(struct crypto_instance *inst) in skcipher_geniv_free()
722 struct crypto_instance *inst = (void *)tfm->__crt_alg; in skcipher_geniv_init()
Dauthencesn.c641 struct crypto_instance *inst = crypto_tfm_alg_instance(tfm); in crypto_authenc_esn_init_tfm()
688 static struct crypto_instance *crypto_authenc_esn_alloc(struct rtattr **tb) in crypto_authenc_esn_alloc()
691 struct crypto_instance *inst; in crypto_authenc_esn_alloc()
785 static void crypto_authenc_esn_free(struct crypto_instance *inst) in crypto_authenc_esn_free()
Dahash.c594 void ahash_free_instance(struct crypto_instance *inst) in ahash_free_instance()
603 struct crypto_instance *inst) in crypto_init_ahash_spawn()
Dalgboss.c66 struct crypto_instance *inst; in cryptomgr_probe()
Dxcbc.c180 struct crypto_instance *inst = (void *)tfm->__crt_alg; in xcbc_init_tfm()
Dcmac.c206 struct crypto_instance *inst = (void *)tfm->__crt_alg; in cmac_init_tfm()
Dhmac.c160 struct crypto_instance *inst = (void *)tfm->__crt_alg; in hmac_init_tfm()
Dshash.c684 void shash_free_instance(struct crypto_instance *inst) in shash_free_instance()
693 struct crypto_instance *inst) in crypto_init_shash_spawn()
Dcrypto_user.c332 err = crypto_unregister_instance((struct crypto_instance *)alg); in crypto_del_alg()
Dablkcipher.c543 struct crypto_instance *inst; in crypto_givcipher_default()
Dvmac.c625 struct crypto_instance *inst = (void *)tfm->__crt_alg; in vmac_init_tfm()
/linux-4.1.27/arch/x86/crypto/
Dfpu.c83 struct crypto_instance *inst = crypto_tfm_alg_instance(tfm); in crypto_fpu_init_tfm()
102 static struct crypto_instance *crypto_fpu_alloc(struct rtattr **tb) in crypto_fpu_alloc()
104 struct crypto_instance *inst; in crypto_fpu_alloc()
141 static void crypto_fpu_free(struct crypto_instance *inst) in crypto_fpu_free()
/linux-4.1.27/Documentation/
Dcoccinelle.txt237 @@ -185,7 +185,7 @@ static struct crypto_instance *crypto_ct
280 @@ -185,7 +185,6 @@ static struct crypto_instance *crypto_ct