Home
last modified time | relevance | path

Searched refs:crypto_shash (Results 1 – 25 of 109) sorted by relevance

12345

/Linux-v4.19/include/crypto/
Dhash.h148 struct crypto_shash *tfm;
187 int (*setkey)(struct crypto_shash *tfm, const u8 *key,
215 struct crypto_shash { struct
684 struct crypto_shash *crypto_alloc_shash(const char *alg_name, u32 type,
687 static inline struct crypto_tfm *crypto_shash_tfm(struct crypto_shash *tfm) in crypto_shash_tfm()
696 static inline void crypto_free_shash(struct crypto_shash *tfm) in crypto_free_shash()
701 static inline const char *crypto_shash_alg_name(struct crypto_shash *tfm) in crypto_shash_alg_name()
706 static inline const char *crypto_shash_driver_name(struct crypto_shash *tfm) in crypto_shash_driver_name()
712 struct crypto_shash *tfm) in crypto_shash_alignmask()
726 static inline unsigned int crypto_shash_blocksize(struct crypto_shash *tfm) in crypto_shash_blocksize()
[all …]
/Linux-v4.19/net/mac80211/
Daes_cmac.h15 struct crypto_shash *ieee80211_aes_cmac_key_setup(const u8 key[],
17 void ieee80211_aes_cmac(struct crypto_shash *tfm, const u8 *aad,
19 void ieee80211_aes_cmac_256(struct crypto_shash *tfm, const u8 *aad,
21 void ieee80211_aes_cmac_key_free(struct crypto_shash *tfm);
Daes_cmac.c27 void ieee80211_aes_cmac(struct crypto_shash *tfm, const u8 *aad, in ieee80211_aes_cmac()
43 void ieee80211_aes_cmac_256(struct crypto_shash *tfm, const u8 *aad, in ieee80211_aes_cmac_256()
56 struct crypto_shash *ieee80211_aes_cmac_key_setup(const u8 key[], in ieee80211_aes_cmac_key_setup()
59 struct crypto_shash *tfm; in ieee80211_aes_cmac_key_setup()
68 void ieee80211_aes_cmac_key_free(struct crypto_shash *tfm) in ieee80211_aes_cmac_key_free()
Dfils_aead.c28 static int aes_s2v(struct crypto_shash *tfm, in aes_s2v()
75 struct crypto_shash *tfm; in aes_siv_encrypt()
152 struct crypto_shash *tfm; in aes_siv_decrypt()
/Linux-v4.19/crypto/
Dshash.c28 int shash_no_setkey(struct crypto_shash *tfm, const u8 *key, in shash_no_setkey()
35 static int shash_setkey_unaligned(struct crypto_shash *tfm, const u8 *key, in shash_setkey_unaligned()
56 int crypto_shash_setkey(struct crypto_shash *tfm, const u8 *key, in crypto_shash_setkey()
86 struct crypto_shash *tfm = desc->tfm; in shash_update_unaligned()
110 struct crypto_shash *tfm = desc->tfm; in crypto_shash_update()
123 struct crypto_shash *tfm = desc->tfm; in shash_final_unaligned()
145 struct crypto_shash *tfm = desc->tfm; in crypto_shash_final()
166 struct crypto_shash *tfm = desc->tfm; in crypto_shash_finup()
187 struct crypto_shash *tfm = desc->tfm; in crypto_shash_digest()
216 struct crypto_shash **ctx = crypto_ahash_ctx(tfm); in shash_async_setkey()
[all …]
Dhmac.c30 struct crypto_shash *hash;
38 static inline struct hmac_ctx *hmac_ctx(struct crypto_shash *tfm) in hmac_ctx()
45 static int hmac_setkey(struct crypto_shash *parent, in hmac_setkey()
55 struct crypto_shash *hash = ctx->hash; in hmac_setkey()
127 struct crypto_shash *parent = pdesc->tfm; in hmac_final()
144 struct crypto_shash *parent = pdesc->tfm; in hmac_finup()
159 struct crypto_shash *parent = __crypto_shash_cast(tfm); in hmac_init_tfm()
160 struct crypto_shash *hash; in hmac_init_tfm()
Dxcbc.c60 static int crypto_xcbc_digest_setkey(struct crypto_shash *parent, in crypto_xcbc_digest_setkey()
97 struct crypto_shash *parent = pdesc->tfm; in crypto_xcbc_digest_update()
143 struct crypto_shash *parent = pdesc->tfm; in crypto_xcbc_digest_final()
Dcmac.c54 static int crypto_cmac_digest_setkey(struct crypto_shash *parent, in crypto_cmac_digest_setkey()
125 struct crypto_shash *parent = pdesc->tfm; in crypto_cmac_digest_update()
171 struct crypto_shash *parent = pdesc->tfm; in crypto_cmac_digest_final()
/Linux-v4.19/include/crypto/internal/
Dhash.h85 int shash_no_setkey(struct crypto_shash *tfm, const u8 *key,
210 static inline void *crypto_shash_ctx(struct crypto_shash *tfm) in crypto_shash_ctx()
240 static inline struct crypto_shash *crypto_spawn_shash( in crypto_spawn_shash()
246 static inline void *crypto_shash_ctx_aligned(struct crypto_shash *tfm) in crypto_shash_ctx_aligned()
251 static inline struct crypto_shash *__crypto_shash_cast(struct crypto_tfm *tfm) in __crypto_shash_cast()
253 return container_of(tfm, struct crypto_shash, base); in __crypto_shash_cast()
/Linux-v4.19/security/integrity/ima/
Dima_crypto.c62 static struct crypto_shash *ima_shash_tfm;
81 static struct crypto_shash *ima_alloc_tfm(enum hash_algo algo) in ima_alloc_tfm()
83 struct crypto_shash *tfm = ima_shash_tfm; in ima_alloc_tfm()
100 static void ima_free_tfm(struct crypto_shash *tfm) in ima_free_tfm()
335 struct crypto_shash *tfm) in ima_calc_file_hash_tfm()
392 struct crypto_shash *tfm; in ima_calc_file_shash()
452 struct crypto_shash *tfm) in ima_calc_field_array_hash_tfm()
499 struct crypto_shash *tfm; in ima_calc_field_array_hash()
573 struct crypto_shash *tfm) in calc_buffer_shash_tfm()
605 struct crypto_shash *tfm; in calc_buffer_shash()
[all …]
/Linux-v4.19/drivers/crypto/vmx/
Dghash.c43 struct crypto_shash *fallback;
56 struct crypto_shash *fallback; in p8_ghash_init_tfm()
57 struct crypto_shash *shash_tfm = __crypto_shash_cast(tfm); in p8_ghash_init_tfm()
69 crypto_shash_get_flags((struct crypto_shash in p8_ghash_init_tfm()
109 static int p8_ghash_setkey(struct crypto_shash *tfm, const u8 *key, in p8_ghash_setkey()
/Linux-v4.19/security/integrity/evm/
Devm.h44 extern struct crypto_shash *hmac_tfm;
45 extern struct crypto_shash *hash_tfm;
Devm_crypto.c32 struct crypto_shash *hmac_tfm;
33 static struct crypto_shash *evm_tfm[HASH_ALGO__LAST];
81 struct crypto_shash **tfm; in init_desc()
/Linux-v4.19/net/ipv6/
Dseg6_hmac.c129 struct crypto_shash *tfm; in __do_hmac()
361 struct crypto_shash *tfm; in seg6_hmac_init_algo()
368 struct crypto_shash **p_tfm; in seg6_hmac_init_algo()
372 algo->tfms = alloc_percpu(struct crypto_shash *); in seg6_hmac_init_algo()
430 struct crypto_shash *tfm; in seg6_hmac_exit()
/Linux-v4.19/security/apparmor/
Dcrypto.c25 static struct crypto_shash *apparmor_tfm;
110 struct crypto_shash *tfm; in init_profile_hash()
/Linux-v4.19/arch/powerpc/crypto/
Dcrc-vpmsum_test.c34 struct crypto_shash *crct10dif_tfm; in crc_test_init()
35 struct crypto_shash *crc32c_tfm; in crc_test_init()
/Linux-v4.19/include/net/sctp/
Dauth.h40 struct crypto_shash;
96 void sctp_auth_destroy_hmacs(struct crypto_shash *auth_hmacs[]);
/Linux-v4.19/drivers/net/wireless/intersil/orinoco/
Dmic.h19 int orinoco_mic(struct crypto_shash *tfm_michael, u8 *key,
Dorinoco.h154 struct crypto_shash *rx_tfm_mic;
155 struct crypto_shash *tx_tfm_mic;
/Linux-v4.19/Documentation/crypto/
Dapi-samples.rst126 static struct sdesc *init_sdesc(struct crypto_shash *alg)
140 static int calc_hash(struct crypto_shash *alg,
161 struct crypto_shash *alg;
/Linux-v4.19/arch/x86/crypto/
Dghash-clmulni-intel_glue.c55 static int ghash_setkey(struct crypto_shash *tfm, in ghash_setkey()
171 struct crypto_shash *child = cryptd_ahash_child(cryptd_tfm); in ghash_async_init()
251 struct crypto_shash *child = cryptd_ahash_child(cryptd_tfm); in ghash_async_digest()
/Linux-v4.19/arch/arm/crypto/
Dghash-ce-glue.c120 static int ghash_setkey(struct crypto_shash *tfm, in ghash_setkey()
169 struct crypto_shash *child = cryptd_ahash_child(cryptd_tfm); in ghash_async_init()
226 struct crypto_shash *child = cryptd_ahash_child(cryptd_tfm); in ghash_async_digest()
/Linux-v4.19/lib/
Dlibcrc32c.c41 static struct crypto_shash *tfm;
/Linux-v4.19/fs/crypto/
Dkeyinfo.c20 static struct crypto_shash *essiv_hash_tfm;
223 struct crypto_shash *tfm = READ_ONCE(essiv_hash_tfm); in derive_essiv_salt()
227 struct crypto_shash *prev_tfm; in derive_essiv_salt()
/Linux-v4.19/drivers/staging/rtl8192u/ieee80211/
Dieee80211_crypt_tkip.c57 struct crypto_shash *rx_tfm_michael;
59 struct crypto_shash *tx_tfm_michael;
501 static int michael_mic(struct crypto_shash *tfm_michael, u8 *key, u8 *hdr, in michael_mic()
665 struct crypto_shash *tfm = tkey->tx_tfm_michael; in ieee80211_tkip_set_key()
667 struct crypto_shash *tfm3 = tkey->rx_tfm_michael; in ieee80211_tkip_set_key()

12345