Searched refs:tfm (Results 1 - 25 of 470) sorted by relevance

1234567891011>>

/linux-master/include/crypto/
H A Dsig.h30 * crypto_alloc_sig() - allocate signature tfm handle
45 static inline struct crypto_tfm *crypto_sig_tfm(struct crypto_sig *tfm) argument
47 return &tfm->base;
51 * crypto_free_sig() - free signature tfm handle
53 * @tfm: signature tfm handle allocated with crypto_alloc_sig()
55 * If @tfm is a NULL or error pointer, this function does nothing.
57 static inline void crypto_free_sig(struct crypto_sig *tfm) argument
59 crypto_destroy_tfm(tfm, crypto_sig_tfm(tfm));
[all...]
H A Dskcipher.h177 int (*setkey)(struct crypto_skcipher *tfm, const u8 *key,
183 int (*init)(struct crypto_skcipher *tfm);
184 void (*exit)(struct crypto_skcipher *tfm);
228 int (*setkey)(struct crypto_lskcipher *tfm, const u8 *key,
230 int (*encrypt)(struct crypto_lskcipher *tfm, const u8 *src,
232 int (*decrypt)(struct crypto_lskcipher *tfm, const u8 *src,
234 int (*init)(struct crypto_lskcipher *tfm);
235 void (*exit)(struct crypto_lskcipher *tfm);
242 * This performs a type-check against the "tfm" argument to make sure
243 * all users have the correct skcipher tfm fo
283 __crypto_skcipher_cast( struct crypto_tfm *tfm) argument
327 crypto_skcipher_tfm( struct crypto_skcipher *tfm) argument
333 crypto_lskcipher_tfm( struct crypto_lskcipher *tfm) argument
345 crypto_free_skcipher(struct crypto_skcipher *tfm) argument
350 crypto_free_sync_skcipher(struct crypto_sync_skcipher *tfm) argument
361 crypto_free_lskcipher(struct crypto_lskcipher *tfm) argument
378 crypto_skcipher_driver_name( struct crypto_skcipher *tfm) argument
384 crypto_lskcipher_driver_name( struct crypto_lskcipher *tfm) argument
390 crypto_skcipher_alg_common( struct crypto_skcipher *tfm) argument
397 crypto_skcipher_alg( struct crypto_skcipher *tfm) argument
404 crypto_lskcipher_alg( struct crypto_lskcipher *tfm) argument
420 crypto_skcipher_ivsize(struct crypto_skcipher *tfm) argument
425 crypto_sync_skcipher_ivsize( struct crypto_sync_skcipher *tfm) argument
440 crypto_lskcipher_ivsize( struct crypto_lskcipher *tfm) argument
456 crypto_skcipher_blocksize( struct crypto_skcipher *tfm) argument
472 crypto_lskcipher_blocksize( struct crypto_lskcipher *tfm) argument
489 crypto_skcipher_chunksize( struct crypto_skcipher *tfm) argument
506 crypto_lskcipher_chunksize( struct crypto_lskcipher *tfm) argument
523 crypto_skcipher_statesize( struct crypto_skcipher *tfm) argument
540 crypto_lskcipher_statesize( struct crypto_lskcipher *tfm) argument
546 crypto_sync_skcipher_blocksize( struct crypto_sync_skcipher *tfm) argument
552 crypto_skcipher_alignmask( struct crypto_skcipher *tfm) argument
558 crypto_lskcipher_alignmask( struct crypto_lskcipher *tfm) argument
564 crypto_skcipher_get_flags(struct crypto_skcipher *tfm) argument
569 crypto_skcipher_set_flags(struct crypto_skcipher *tfm, u32 flags) argument
575 crypto_skcipher_clear_flags(struct crypto_skcipher *tfm, u32 flags) argument
581 crypto_sync_skcipher_get_flags( struct crypto_sync_skcipher *tfm) argument
587 crypto_sync_skcipher_set_flags( struct crypto_sync_skcipher *tfm, u32 flags) argument
593 crypto_sync_skcipher_clear_flags( struct crypto_sync_skcipher *tfm, u32 flags) argument
599 crypto_lskcipher_get_flags(struct crypto_lskcipher *tfm) argument
604 crypto_lskcipher_set_flags(struct crypto_lskcipher *tfm, u32 flags) argument
610 crypto_lskcipher_clear_flags(struct crypto_lskcipher *tfm, u32 flags) argument
635 crypto_sync_skcipher_setkey(struct crypto_sync_skcipher *tfm, const u8 *key, unsigned int keylen) argument
660 crypto_skcipher_min_keysize( struct crypto_skcipher *tfm) argument
666 crypto_skcipher_max_keysize( struct crypto_skcipher *tfm) argument
672 crypto_lskcipher_min_keysize( struct crypto_lskcipher *tfm) argument
678 crypto_lskcipher_max_keysize( struct crypto_lskcipher *tfm) argument
702 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
822 crypto_skcipher_reqsize(struct crypto_skcipher *tfm) argument
835 skcipher_request_set_tfm(struct skcipher_request *req, struct crypto_skcipher *tfm) argument
841 skcipher_request_set_sync_tfm(struct skcipher_request *req, struct crypto_sync_skcipher *tfm) argument
864 skcipher_request_alloc( struct crypto_skcipher *tfm, gfp_t gfp) argument
889 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local
[all...]
H A Daead.h157 int (*setkey)(struct crypto_aead *tfm, const u8 *key,
159 int (*setauthsize)(struct crypto_aead *tfm, unsigned int authsize);
162 int (*init)(struct crypto_aead *tfm);
163 void (*exit)(struct crypto_aead *tfm);
183 static inline struct crypto_aead *__crypto_aead_cast(struct crypto_tfm *tfm) argument
185 return container_of(tfm, struct crypto_aead, base);
204 static inline struct crypto_tfm *crypto_aead_tfm(struct crypto_aead *tfm) argument
206 return &tfm->base;
211 * @tfm: cipher handle to be freed
213 * If @tfm i
215 crypto_free_aead(struct crypto_aead *tfm) argument
232 crypto_aead_driver_name(struct crypto_aead *tfm) argument
237 crypto_aead_alg(struct crypto_aead *tfm) argument
257 crypto_aead_ivsize(struct crypto_aead *tfm) argument
274 crypto_aead_authsize(struct crypto_aead *tfm) argument
299 crypto_aead_blocksize(struct crypto_aead *tfm) argument
304 crypto_aead_alignmask(struct crypto_aead *tfm) argument
309 crypto_aead_get_flags(struct crypto_aead *tfm) argument
314 crypto_aead_set_flags(struct crypto_aead *tfm, u32 flags) argument
319 crypto_aead_clear_flags(struct crypto_aead *tfm, u32 flags) argument
422 crypto_aead_reqsize(struct crypto_aead *tfm) argument
435 aead_request_set_tfm(struct aead_request *req, struct crypto_aead *tfm) argument
452 aead_request_alloc(struct crypto_aead *tfm, gfp_t gfp) argument
[all...]
H A Dhash.h166 int (*setkey)(struct crypto_ahash *tfm, const u8 *key,
168 int (*init_tfm)(struct crypto_ahash *tfm);
169 void (*exit_tfm)(struct crypto_ahash *tfm);
176 struct crypto_shash *tfm; member in struct:shash_desc
232 int (*setkey)(struct crypto_shash *tfm, const u8 *key,
234 int (*init_tfm)(struct crypto_shash *tfm);
235 void (*exit_tfm)(struct crypto_shash *tfm);
270 static inline struct crypto_ahash *__crypto_ahash_cast(struct crypto_tfm *tfm) argument
272 return container_of(tfm, struct crypto_ahash, base);
292 struct crypto_ahash *crypto_clone_ahash(struct crypto_ahash *tfm);
294 crypto_ahash_tfm(struct crypto_ahash *tfm) argument
305 crypto_free_ahash(struct crypto_ahash *tfm) argument
322 crypto_ahash_alg_name(struct crypto_ahash *tfm) argument
327 crypto_ahash_driver_name(struct crypto_ahash *tfm) argument
341 crypto_ahash_blocksize(struct crypto_ahash *tfm) argument
352 crypto_hash_alg_common( struct crypto_ahash *tfm) argument
368 crypto_ahash_digestsize(struct crypto_ahash *tfm) argument
383 crypto_ahash_statesize(struct crypto_ahash *tfm) argument
388 crypto_ahash_get_flags(struct crypto_ahash *tfm) argument
393 crypto_ahash_set_flags(struct crypto_ahash *tfm, u32 flags) argument
398 crypto_ahash_clear_flags(struct crypto_ahash *tfm, u32 flags) argument
425 crypto_ahash_reqsize(struct crypto_ahash *tfm) argument
563 ahash_request_set_tfm(struct ahash_request *req, struct crypto_ahash *tfm) argument
581 ahash_request_alloc( struct crypto_ahash *tfm, gfp_t gfp) argument
707 crypto_shash_tfm(struct crypto_shash *tfm) argument
718 crypto_free_shash(struct crypto_shash *tfm) argument
723 crypto_shash_alg_name(struct crypto_shash *tfm) argument
728 crypto_shash_driver_name(struct crypto_shash *tfm) argument
742 crypto_shash_blocksize(struct crypto_shash *tfm) argument
752 crypto_shash_alg(struct crypto_shash *tfm) argument
766 crypto_shash_digestsize(struct crypto_shash *tfm) argument
771 crypto_shash_statesize(struct crypto_shash *tfm) argument
776 crypto_shash_get_flags(struct crypto_shash *tfm) argument
781 crypto_shash_set_flags(struct crypto_shash *tfm, u32 flags) argument
786 crypto_shash_clear_flags(struct crypto_shash *tfm, u32 flags) argument
806 crypto_shash_descsize(struct crypto_shash *tfm) argument
911 struct crypto_shash *tfm = desc->tfm; local
[all...]
H A Dcryptd.h29 struct crypto_skcipher *cryptd_skcipher_child(struct cryptd_skcipher *tfm);
31 bool cryptd_skcipher_queued(struct cryptd_skcipher *tfm);
32 void cryptd_free_skcipher(struct cryptd_skcipher *tfm);
39 struct crypto_ahash *tfm)
41 return (struct cryptd_ahash *)tfm;
47 struct crypto_shash *cryptd_ahash_child(struct cryptd_ahash *tfm);
50 bool cryptd_ahash_queued(struct cryptd_ahash *tfm);
51 void cryptd_free_ahash(struct cryptd_ahash *tfm);
58 struct crypto_aead *tfm)
60 return (struct cryptd_aead *)tfm;
38 __cryptd_ahash_cast( struct crypto_ahash *tfm) argument
57 __cryptd_aead_cast( struct crypto_aead *tfm) argument
[all...]
H A Dakcipher.h122 int (*set_pub_key)(struct crypto_akcipher *tfm, const void *key,
124 int (*set_priv_key)(struct crypto_akcipher *tfm, const void *key,
126 unsigned int (*max_size)(struct crypto_akcipher *tfm);
127 int (*init)(struct crypto_akcipher *tfm);
128 void (*exit)(struct crypto_akcipher *tfm);
145 * crypto_alloc_akcipher() - allocate AKCIPHER tfm handle
162 struct crypto_akcipher *tfm)
164 return &tfm->base;
173 struct crypto_tfm *tfm)
175 return container_of(tfm, struc
161 crypto_akcipher_tfm( struct crypto_akcipher *tfm) argument
172 __crypto_akcipher_tfm( struct crypto_tfm *tfm) argument
178 crypto_akcipher_alg( struct crypto_akcipher *tfm) argument
184 crypto_akcipher_reqsize(struct crypto_akcipher *tfm) argument
189 akcipher_request_set_tfm(struct akcipher_request *req, struct crypto_akcipher *tfm) argument
208 crypto_free_akcipher(struct crypto_akcipher *tfm) argument
221 akcipher_request_alloc( struct crypto_akcipher *tfm, gfp_t gfp) argument
298 crypto_akcipher_maxsize(struct crypto_akcipher *tfm) argument
338 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); local
363 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); local
424 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); local
449 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); local
471 crypto_akcipher_set_pub_key(struct crypto_akcipher *tfm, const void *key, unsigned int keylen) argument
493 crypto_akcipher_set_priv_key(struct crypto_akcipher *tfm, const void *key, unsigned int keylen) argument
[all...]
H A Drng.h59 int (*generate)(struct crypto_rng *tfm,
62 int (*seed)(struct crypto_rng *tfm, const u8 *seed, unsigned int slen);
63 void (*set_ent)(struct crypto_rng *tfm, const u8 *data,
113 static inline struct crypto_tfm *crypto_rng_tfm(struct crypto_rng *tfm) argument
115 return &tfm->base;
125 * @tfm: cipher handle
131 static inline struct rng_alg *crypto_rng_alg(struct crypto_rng *tfm) argument
133 return __crypto_rng_alg(crypto_rng_tfm(tfm)->__crt_alg);
138 * @tfm: cipher handle to be freed
140 * If @tfm i
142 crypto_free_rng(struct crypto_rng *tfm) argument
181 crypto_rng_generate(struct crypto_rng *tfm, const u8 *src, unsigned int slen, u8 *dst, unsigned int dlen) argument
209 crypto_rng_get_bytes(struct crypto_rng *tfm, u8 *rdata, unsigned int dlen) argument
247 crypto_rng_seedsize(struct crypto_rng *tfm) argument
[all...]
H A Dacompress.h96 * crypto_alloc_acomp() -- allocate ACOMPRESS tfm handle
112 * crypto_alloc_acomp_node() -- allocate ACOMPRESS tfm handle with desired NUMA node
130 static inline struct crypto_tfm *crypto_acomp_tfm(struct crypto_acomp *tfm) argument
132 return &tfm->base;
141 static inline struct crypto_acomp *__crypto_acomp_tfm(struct crypto_tfm *tfm) argument
143 return container_of(tfm, struct crypto_acomp, base);
147 struct crypto_acomp *tfm)
149 return __crypto_comp_alg_common(crypto_acomp_tfm(tfm)->__crt_alg);
152 static inline unsigned int crypto_acomp_reqsize(struct crypto_acomp *tfm) argument
154 return tfm
146 crypto_comp_alg_common( struct crypto_acomp *tfm) argument
157 acomp_request_set_tfm(struct acomp_req *req, struct crypto_acomp *tfm) argument
163 acomp_is_async(struct crypto_acomp *tfm) argument
181 crypto_free_acomp(struct crypto_acomp *tfm) argument
296 struct crypto_acomp *tfm = crypto_acomp_reqtfm(req); local
322 struct crypto_acomp *tfm = crypto_acomp_reqtfm(req); local
[all...]
/linux-master/include/crypto/internal/
H A Dscompress.h35 void *(*alloc_ctx)(struct crypto_scomp *tfm);
36 void (*free_ctx)(struct crypto_scomp *tfm, void *ctx);
37 int (*compress)(struct crypto_scomp *tfm, const u8 *src,
40 int (*decompress)(struct crypto_scomp *tfm, const u8 *src,
55 static inline struct crypto_scomp *__crypto_scomp_tfm(struct crypto_tfm *tfm) argument
57 return container_of(tfm, struct crypto_scomp, base);
60 static inline struct crypto_tfm *crypto_scomp_tfm(struct crypto_scomp *tfm) argument
62 return &tfm->base;
65 static inline void crypto_free_scomp(struct crypto_scomp *tfm) argument
67 crypto_destroy_tfm(tfm, crypto_scomp_tf
70 crypto_scomp_alg(struct crypto_scomp *tfm) argument
75 crypto_scomp_alloc_ctx(struct crypto_scomp *tfm) argument
80 crypto_scomp_free_ctx(struct crypto_scomp *tfm, void *ctx) argument
86 crypto_scomp_compress(struct crypto_scomp *tfm, const u8 *src, unsigned int slen, u8 *dst, unsigned int *dlen, void *ctx) argument
93 crypto_scomp_decompress(struct crypto_scomp *tfm, const u8 *src, unsigned int slen, u8 *dst, unsigned int *dlen, void *ctx) argument
[all...]
H A Dsig.h13 static inline void *crypto_sig_ctx(struct crypto_sig *tfm) argument
15 return crypto_tfm_ctx(&tfm->base);
H A Dcipher.h37 static inline struct crypto_cipher *__crypto_cipher_cast(struct crypto_tfm *tfm) argument
39 return (struct crypto_cipher *)tfm;
66 static inline struct crypto_tfm *crypto_cipher_tfm(struct crypto_cipher *tfm) argument
68 return &tfm->base;
73 * @tfm: cipher handle to be freed
75 static inline void crypto_free_cipher(struct crypto_cipher *tfm) argument
77 crypto_free_tfm(crypto_cipher_tfm(tfm));
101 * @tfm: cipher handle
104 * tfm is returned. The caller may use that information to allocate appropriate
109 static inline unsigned int crypto_cipher_blocksize(struct crypto_cipher *tfm) argument
114 crypto_cipher_alignmask(struct crypto_cipher *tfm) argument
119 crypto_cipher_get_flags(struct crypto_cipher *tfm) argument
124 crypto_cipher_set_flags(struct crypto_cipher *tfm, u32 flags) argument
130 crypto_cipher_clear_flags(struct crypto_cipher *tfm, u32 flags) argument
215 crypto_cipher_alg(struct crypto_cipher *tfm) argument
[all...]
H A Drng.h29 static inline void *crypto_rng_ctx(struct crypto_rng *tfm) argument
31 return crypto_tfm_ctx(&tfm->base);
34 static inline void crypto_rng_set_entropy(struct crypto_rng *tfm, argument
37 crypto_rng_alg(tfm)->set_ent(tfm, data, len);
H A Dchacha.h15 static inline int chacha_setkey(struct crypto_skcipher *tfm, const u8 *key, argument
18 struct chacha_ctx *ctx = crypto_skcipher_ctx(tfm);
31 static inline int chacha20_setkey(struct crypto_skcipher *tfm, const u8 *key, argument
34 return chacha_setkey(tfm, key, keysize, 20);
37 static inline int chacha12_setkey(struct crypto_skcipher *tfm, const u8 *key, argument
40 return chacha_setkey(tfm, key, keysize, 12);
H A Ddes.h17 * @tfm: the crypto algo
26 static inline int crypto_des_verify_key(struct crypto_tfm *tfm, const u8 *key) argument
33 if (crypto_tfm_get_flags(tfm) & CRYPTO_TFM_REQ_FORBID_WEAK_KEYS)
80 * @tfm: the crypto algo
91 static inline int crypto_des3_ede_verify_key(struct crypto_tfm *tfm, argument
95 crypto_tfm_get_flags(tfm) &
99 static inline int verify_skcipher_des_key(struct crypto_skcipher *tfm, argument
102 return crypto_des_verify_key(crypto_skcipher_tfm(tfm), key);
105 static inline int verify_skcipher_des3_key(struct crypto_skcipher *tfm, argument
108 return crypto_des3_ede_verify_key(crypto_skcipher_tfm(tfm), ke
111 verify_aead_des_key(struct crypto_aead *tfm, const u8 *key, int keylen) argument
119 verify_aead_des3_key(struct crypto_aead *tfm, const u8 *key, int keylen) argument
[all...]
/linux-master/net/bluetooth/
H A Decdh_helper.h26 int compute_ecdh_secret(struct crypto_kpp *tfm, const u8 pair_public_key[64],
28 int set_ecdh_privkey(struct crypto_kpp *tfm, const u8 private_key[32]);
29 int generate_ecdh_public_key(struct crypto_kpp *tfm, u8 public_key[64]);
30 int generate_ecdh_keys(struct crypto_kpp *tfm, u8 public_key[64]);
/linux-master/drivers/crypto/cavium/zip/
H A Dzip_crypto.h60 int zip_alloc_comp_ctx_deflate(struct crypto_tfm *tfm);
61 int zip_alloc_comp_ctx_lzs(struct crypto_tfm *tfm);
62 void zip_free_comp_ctx(struct crypto_tfm *tfm);
63 int zip_comp_compress(struct crypto_tfm *tfm,
66 int zip_comp_decompress(struct crypto_tfm *tfm,
70 void *zip_alloc_scomp_ctx_deflate(struct crypto_scomp *tfm);
71 void *zip_alloc_scomp_ctx_lzs(struct crypto_scomp *tfm);
72 void zip_free_scomp_ctx(struct crypto_scomp *tfm, void *zip_ctx);
73 int zip_scomp_compress(struct crypto_scomp *tfm,
76 int zip_scomp_decompress(struct crypto_scomp *tfm,
[all...]
/linux-master/crypto/
H A Dcompress.c16 struct crypto_tfm *tfm = crypto_comp_tfm(comp); local
18 return tfm->__crt_alg->cra_compress.coa_compress(tfm, src, slen, dst,
27 struct crypto_tfm *tfm = crypto_comp_tfm(comp); local
29 return tfm->__crt_alg->cra_compress.coa_decompress(tfm, src, slen, dst,
/linux-master/net/mac80211/
H A Daes_cmac.c25 void ieee80211_aes_cmac(struct crypto_shash *tfm, const u8 *aad, argument
28 SHASH_DESC_ON_STACK(desc, tfm);
32 desc->tfm = tfm;
49 void ieee80211_aes_cmac_256(struct crypto_shash *tfm, const u8 *aad, argument
52 SHASH_DESC_ON_STACK(desc, tfm);
55 desc->tfm = tfm;
74 struct crypto_shash *tfm; local
76 tfm
89 ieee80211_aes_cmac_key_free(struct crypto_shash *tfm) argument
[all...]
H A Daead_api.c18 int aead_encrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad, size_t aad_len, argument
21 size_t mic_len = crypto_aead_authsize(tfm);
24 int reqsize = sizeof(*aead_req) + crypto_aead_reqsize(tfm);
40 aead_request_set_tfm(aead_req, tfm);
50 int aead_decrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad, size_t aad_len, argument
53 size_t mic_len = crypto_aead_authsize(tfm);
56 int reqsize = sizeof(*aead_req) + crypto_aead_reqsize(tfm);
75 aead_request_set_tfm(aead_req, tfm);
89 struct crypto_aead *tfm; local
92 tfm
110 aead_key_free(struct crypto_aead *tfm) argument
[all...]
H A Daes_gcm.h13 static inline int ieee80211_aes_gcm_encrypt(struct crypto_aead *tfm, argument
17 return aead_encrypt(tfm, j_0, aad + 2,
22 static inline int ieee80211_aes_gcm_decrypt(struct crypto_aead *tfm, argument
26 return aead_decrypt(tfm, j_0, aad + 2,
38 static inline void ieee80211_aes_gcm_key_free(struct crypto_aead *tfm) argument
40 return aead_key_free(tfm);
H A Daes_ccm.h21 ieee80211_aes_ccm_encrypt(struct crypto_aead *tfm, argument
25 return aead_encrypt(tfm, b_0, aad + 2,
31 ieee80211_aes_ccm_decrypt(struct crypto_aead *tfm, argument
35 return aead_decrypt(tfm, b_0, aad + 2,
40 static inline void ieee80211_aes_key_free(struct crypto_aead *tfm) argument
42 return aead_key_free(tfm);
H A Daes_cmac.h14 void ieee80211_aes_cmac(struct crypto_shash *tfm, const u8 *aad,
16 void ieee80211_aes_cmac_256(struct crypto_shash *tfm, const u8 *aad,
18 void ieee80211_aes_cmac_key_free(struct crypto_shash *tfm);
/linux-master/lib/
H A Dlibcrc32c.c36 static struct crypto_shash *tfm; variable in typeref:struct:crypto_shash
40 SHASH_DESC_ON_STACK(shash, tfm);
44 shash->tfm = tfm;
59 tfm = crypto_alloc_shash("crc32c", 0, 0);
60 return PTR_ERR_OR_ZERO(tfm);
65 crypto_free_shash(tfm);
/linux-master/include/linux/
H A Dcrypto.h174 struct crypto_tfm *tfm; member in struct:crypto_async_request
236 int (*cia_setkey)(struct crypto_tfm *tfm, const u8 *key,
238 void (*cia_encrypt)(struct crypto_tfm *tfm, u8 *dst, const u8 *src);
239 void (*cia_decrypt)(struct crypto_tfm *tfm, u8 *dst, const u8 *src);
254 int (*coa_compress)(struct crypto_tfm *tfm, const u8 *src,
256 int (*coa_decompress)(struct crypto_tfm *tfm, const u8 *src,
365 int (*cra_init)(struct crypto_tfm *tfm);
366 void (*cra_exit)(struct crypto_tfm *tfm);
429 void (*exit)(struct crypto_tfm *tfm);
445 void crypto_destroy_tfm(void *mem, struct crypto_tfm *tfm);
447 crypto_free_tfm(struct crypto_tfm *tfm) argument
455 crypto_tfm_alg_name(struct crypto_tfm *tfm) argument
460 crypto_tfm_alg_driver_name(struct crypto_tfm *tfm) argument
465 crypto_tfm_alg_blocksize(struct crypto_tfm *tfm) argument
470 crypto_tfm_alg_alignmask(struct crypto_tfm *tfm) argument
475 crypto_tfm_get_flags(struct crypto_tfm *tfm) argument
480 crypto_tfm_set_flags(struct crypto_tfm *tfm, u32 flags) argument
485 crypto_tfm_clear_flags(struct crypto_tfm *tfm, u32 flags) argument
492 struct crypto_tfm *tfm; local
496 __crypto_comp_cast(struct crypto_tfm *tfm) argument
511 crypto_comp_tfm(struct crypto_comp *tfm) argument
516 crypto_free_comp(struct crypto_comp *tfm) argument
530 crypto_comp_name(struct crypto_comp *tfm) argument
[all...]
/linux-master/security/integrity/ima/
H A Dima_crypto.c61 struct crypto_shash *tfm; member in struct:ima_algo_desc
93 struct crypto_shash *tfm = ima_shash_tfm; local
100 return tfm;
103 if (ima_algo_array[i].tfm && ima_algo_array[i].algo == algo)
104 return ima_algo_array[i].tfm;
106 tfm = crypto_alloc_shash(hash_algo_name[algo], 0, 0);
107 if (IS_ERR(tfm)) {
108 rc = PTR_ERR(tfm);
112 return tfm;
162 ima_algo_array[i].tfm
214 ima_free_tfm(struct crypto_shash *tfm) argument
292 struct crypto_ahash *tfm = ima_ahash_tfm; local
312 ima_free_atfm(struct crypto_ahash *tfm) argument
329 ima_calc_file_hash_atfm(struct file *file, struct ima_digest_data *hash, struct crypto_ahash *tfm) argument
442 struct crypto_ahash *tfm; local
456 ima_calc_file_hash_tfm(struct file *file, struct ima_digest_data *hash, struct crypto_shash *tfm) argument
509 struct crypto_shash *tfm; local
663 calc_buffer_ahash_atfm(const void *buf, loff_t len, struct ima_digest_data *hash, struct crypto_ahash *tfm) argument
706 struct crypto_ahash *tfm; local
720 calc_buffer_shash_tfm(const void *buf, loff_t size, struct ima_digest_data *hash, struct crypto_shash *tfm) argument
753 struct crypto_shash *tfm; local
800 ima_calc_boot_aggregate_tfm(char *digest, u16 alg_id, struct crypto_shash *tfm) argument
846 struct crypto_shash *tfm; local
[all...]

Completed in 986 milliseconds

1234567891011>>