Home
last modified time | relevance | path

Searched refs:alg (Results 1 – 25 of 26) sorted by relevance

12

/include/linux/
Dcrypto.h494 void (*cra_destroy)(struct crypto_alg *alg);
513 void crypto_stats_init(struct crypto_alg *alg);
514 void crypto_stats_get(struct crypto_alg *alg);
515 void crypto_stats_aead_encrypt(unsigned int cryptlen, struct crypto_alg *alg, int ret);
516 void crypto_stats_aead_decrypt(unsigned int cryptlen, struct crypto_alg *alg, int ret);
517 void crypto_stats_ahash_update(unsigned int nbytes, int ret, struct crypto_alg *alg);
518 void crypto_stats_ahash_final(unsigned int nbytes, int ret, struct crypto_alg *alg);
519 void crypto_stats_akcipher_encrypt(unsigned int src_len, int ret, struct crypto_alg *alg);
520 void crypto_stats_akcipher_decrypt(unsigned int src_len, int ret, struct crypto_alg *alg);
521 void crypto_stats_akcipher_sign(int ret, struct crypto_alg *alg);
[all …]
Dfsverity.h143 enum hash_algo *alg);
198 enum hash_algo *alg) in fsverity_get_digest() argument
/include/crypto/
Dakcipher.h139 static inline struct akcipher_alg *__crypto_akcipher_alg(struct crypto_alg *alg) in __crypto_akcipher_alg() argument
141 return container_of(alg, struct akcipher_alg, base); in __crypto_akcipher_alg()
272 struct akcipher_alg *alg = crypto_akcipher_alg(tfm); in crypto_akcipher_maxsize() local
274 return alg->max_size(tfm); in crypto_akcipher_maxsize()
290 struct akcipher_alg *alg = crypto_akcipher_alg(tfm); in crypto_akcipher_encrypt() local
296 ret = alg->encrypt(req); in crypto_akcipher_encrypt()
314 struct akcipher_alg *alg = crypto_akcipher_alg(tfm); in crypto_akcipher_decrypt() local
320 ret = alg->decrypt(req); in crypto_akcipher_decrypt()
338 struct akcipher_alg *alg = crypto_akcipher_alg(tfm); in crypto_akcipher_sign() local
343 ret = alg->sign(req); in crypto_akcipher_sign()
[all …]
Dkpp.h112 static inline struct kpp_alg *__crypto_kpp_alg(struct crypto_alg *alg) in __crypto_kpp_alg() argument
114 return container_of(alg, struct kpp_alg, base); in __crypto_kpp_alg()
286 struct kpp_alg *alg = crypto_kpp_alg(tfm); in crypto_kpp_set_secret() local
291 ret = alg->set_secret(tfm, buffer, len); in crypto_kpp_set_secret()
312 struct kpp_alg *alg = crypto_kpp_alg(tfm); in crypto_kpp_generate_public_key() local
317 ret = alg->generate_public_key(req); in crypto_kpp_generate_public_key()
335 struct kpp_alg *alg = crypto_kpp_alg(tfm); in crypto_kpp_compute_shared_secret() local
340 ret = alg->compute_shared_secret(req); in crypto_kpp_compute_shared_secret()
357 struct kpp_alg *alg = crypto_kpp_alg(tfm); in crypto_kpp_maxsize() local
359 return alg->max_size(tfm); in crypto_kpp_maxsize()
Dacompress.h133 static inline struct acomp_alg *__crypto_acomp_alg(struct crypto_alg *alg) in __crypto_acomp_alg() argument
135 return container_of(alg, struct acomp_alg, base); in __crypto_acomp_alg()
264 struct crypto_alg *alg = tfm->base.__crt_alg; in crypto_acomp_compress() local
268 crypto_stats_get(alg); in crypto_acomp_compress()
270 crypto_stats_compress(slen, ret, alg); in crypto_acomp_compress()
286 struct crypto_alg *alg = tfm->base.__crt_alg; in crypto_acomp_decompress() local
290 crypto_stats_get(alg); in crypto_acomp_decompress()
292 crypto_stats_decompress(slen, ret, alg); in crypto_acomp_decompress()
Dalgapi.h32 unsigned int (*ctxsize)(struct crypto_alg *alg, u32 type, u32 mask);
33 unsigned int (*extsize)(struct crypto_alg *alg);
36 void (*show)(struct seq_file *m, struct crypto_alg *alg);
37 int (*report)(struct sk_buff *skb, struct crypto_alg *alg);
47 struct crypto_alg alg; member
73 struct crypto_alg *alg; member
108 void crypto_mod_put(struct crypto_alg *alg);
131 struct crypto_alg *alg);
192 return container_of(tfm->__crt_alg, struct crypto_instance, alg); in crypto_tfm_alg_instance()
Drng.h140 struct crypto_alg *alg = tfm->base.__crt_alg; in crypto_rng_generate() local
143 crypto_stats_get(alg); in crypto_rng_generate()
145 crypto_stats_rng_generate(alg, dlen, ret); in crypto_rng_generate()
Daead.h207 static inline unsigned int crypto_aead_alg_ivsize(struct aead_alg *alg) in crypto_aead_alg_ivsize() argument
209 return alg->ivsize; in crypto_aead_alg_ivsize()
243 static inline unsigned int crypto_aead_alg_maxauthsize(struct aead_alg *alg) in crypto_aead_alg_maxauthsize() argument
245 return alg->maxauthsize; in crypto_aead_alg_maxauthsize()
Dhash.h335 struct crypto_alg *alg) in __crypto_hash_alg_common() argument
337 return container_of(alg, struct hash_alg_common, base); in __crypto_hash_alg_common()
552 struct crypto_alg *alg = tfm->base.__crt_alg; in crypto_ahash_update() local
556 crypto_stats_get(alg); in crypto_ahash_update()
558 crypto_stats_ahash_update(nbytes, ret, alg); in crypto_ahash_update()
767 static inline struct shash_alg *__crypto_shash_alg(struct crypto_alg *alg) in __crypto_shash_alg() argument
769 return container_of(alg, struct shash_alg, base); in __crypto_shash_alg()
Dskcipher.h237 static inline unsigned int crypto_skcipher_alg_ivsize(struct skcipher_alg *alg) in crypto_skcipher_alg_ivsize() argument
239 return alg->ivsize; in crypto_skcipher_alg_ivsize()
279 struct skcipher_alg *alg) in crypto_skcipher_alg_chunksize() argument
281 return alg->chunksize; in crypto_skcipher_alg_chunksize()
/include/crypto/internal/
Dakcipher.h20 struct akcipher_alg alg; member
61 return container_of(&inst->alg.base, struct crypto_instance, alg); in akcipher_crypto_instance()
67 return container_of(&inst->alg, struct akcipher_instance, alg.base); in akcipher_instance()
99 return container_of(spawn->base.alg, struct akcipher_alg, base); in crypto_spawn_akcipher_alg()
111 int crypto_register_akcipher(struct akcipher_alg *alg);
120 void crypto_unregister_akcipher(struct akcipher_alg *alg);
Daead.h25 struct aead_alg alg; member
45 return container_of(&inst->alg.base, struct crypto_instance, alg); in aead_crypto_instance()
50 return container_of(&inst->alg, struct aead_instance, alg.base); in aead_instance()
96 return container_of(spawn->base.alg, struct aead_alg, base); in crypto_spawn_aead_alg()
142 static inline unsigned int crypto_aead_alg_chunksize(struct aead_alg *alg) in crypto_aead_alg_chunksize() argument
144 return alg->chunksize; in crypto_aead_alg_chunksize()
163 int crypto_register_aead(struct aead_alg *alg);
164 void crypto_unregister_aead(struct aead_alg *alg);
Dhash.h39 struct ahash_alg alg; member
50 struct shash_alg alg; member
71 int crypto_register_ahash(struct ahash_alg *alg);
72 void crypto_unregister_ahash(struct ahash_alg *alg);
78 bool crypto_shash_alg_has_setkey(struct shash_alg *alg);
80 static inline bool crypto_shash_alg_needs_key(struct shash_alg *alg) in crypto_shash_alg_needs_key() argument
82 return crypto_shash_alg_has_setkey(alg) && in crypto_shash_alg_needs_key()
83 !(alg->base.cra_flags & CRYPTO_ALG_OPTIONAL_KEY); in crypto_shash_alg_needs_key()
100 return __crypto_hash_alg_common(spawn->base.alg); in crypto_spawn_ahash_alg()
103 int crypto_register_shash(struct shash_alg *alg);
[all …]
Dskcipher.h27 struct skcipher_alg alg; member
79 struct skcipher_instance, alg); in skcipher_alg_instance()
104 return container_of(spawn->base.alg, struct skcipher_alg, base); in crypto_skcipher_spawn_alg()
125 int crypto_register_skcipher(struct skcipher_alg *alg);
126 void crypto_unregister_skcipher(struct skcipher_alg *alg);
165 struct skcipher_alg *alg) in crypto_skcipher_alg_min_keysize() argument
167 return alg->min_keysize; in crypto_skcipher_alg_min_keysize()
171 struct skcipher_alg *alg) in crypto_skcipher_alg_max_keysize() argument
173 return alg->max_keysize; in crypto_skcipher_alg_max_keysize()
177 struct skcipher_alg *alg) in crypto_skcipher_alg_walksize() argument
[all …]
Drng.h15 int crypto_register_rng(struct rng_alg *alg);
16 void crypto_unregister_rng(struct rng_alg *alg);
Dscompress.h40 static inline struct scomp_alg *__crypto_scomp_alg(struct crypto_alg *alg) in __crypto_scomp_alg() argument
42 return container_of(alg, struct scomp_alg, base); in __crypto_scomp_alg()
106 int crypto_register_scomp(struct scomp_alg *alg);
116 void crypto_unregister_scomp(struct scomp_alg *alg);
Dkpp.h52 int crypto_register_kpp(struct kpp_alg *alg);
63 void crypto_unregister_kpp(struct kpp_alg *alg);
Dsimd.h22 void simd_skcipher_free(struct simd_skcipher_alg *alg);
40 void simd_aead_free(struct simd_aead_alg *alg);
Dacompress.h62 int crypto_register_acomp(struct acomp_alg *alg);
72 void crypto_unregister_acomp(struct acomp_alg *alg);
Dcipher.h201 return spawn->base.alg; in crypto_spawn_cipher_alg()
/include/linux/crush/
Dcrush.h120 extern const char *crush_bucket_alg_name(int alg);
134 __u8 alg; /* one of CRUSH_BUCKET_* */ member
/include/uapi/misc/
Dxilinx_sdfec.h141 __u32 alg; member
/include/net/
Dxfrm.h1776 static inline unsigned int aead_len(struct xfrm_algo_aead *alg) in aead_len() argument
1778 return sizeof(*alg) + ((alg->alg_key_len + 7) / 8); in aead_len()
1781 static inline unsigned int xfrm_alg_len(const struct xfrm_algo *alg) in xfrm_alg_len() argument
1783 return sizeof(*alg) + ((alg->alg_key_len + 7) / 8); in xfrm_alg_len()
1786 static inline unsigned int xfrm_alg_auth_len(const struct xfrm_algo_auth *alg) in xfrm_alg_auth_len() argument
1788 return sizeof(*alg) + ((alg->alg_key_len + 7) / 8); in xfrm_alg_auth_len()
/include/media/davinci/
Disif.h394 __u8 alg; member
/include/uapi/linux/
Dwireless.h836 __u16 alg; /* IW_ENCODE_ALG_* */ member

12