Home
last modified time | relevance | path

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

123456

/linux-6.1.9/include/crypto/
Dhash.h151 struct crypto_shash *tfm;
209 int (*setkey)(struct crypto_shash *tfm, const u8 *key,
211 int (*init_tfm)(struct crypto_shash *tfm);
212 void (*exit_tfm)(struct crypto_shash *tfm);
239 struct crypto_shash { struct
718 struct crypto_shash *crypto_alloc_shash(const char *alg_name, u32 type,
723 static inline struct crypto_tfm *crypto_shash_tfm(struct crypto_shash *tfm) in crypto_shash_tfm()
734 static inline void crypto_free_shash(struct crypto_shash *tfm) in crypto_free_shash()
739 static inline const char *crypto_shash_alg_name(struct crypto_shash *tfm) in crypto_shash_alg_name()
744 static inline const char *crypto_shash_driver_name(struct crypto_shash *tfm) in crypto_shash_driver_name()
[all …]
Dkdf_sp800108.h31 int crypto_kdf108_ctr_generate(struct crypto_shash *kmd,
57 int crypto_kdf108_setkey(struct crypto_shash *kmd,
/linux-6.1.9/crypto/
Dshash.c23 static int shash_no_setkey(struct crypto_shash *tfm, const u8 *key, in shash_no_setkey()
42 static int shash_setkey_unaligned(struct crypto_shash *tfm, const u8 *key, in shash_setkey_unaligned()
63 static void shash_set_needkey(struct crypto_shash *tfm, struct shash_alg *alg) in shash_set_needkey()
69 int crypto_shash_setkey(struct crypto_shash *tfm, const u8 *key, in crypto_shash_setkey()
94 struct crypto_shash *tfm = desc->tfm; in shash_update_unaligned()
124 struct crypto_shash *tfm = desc->tfm; in crypto_shash_update()
137 struct crypto_shash *tfm = desc->tfm; in shash_final_unaligned()
165 struct crypto_shash *tfm = desc->tfm; in crypto_shash_final()
186 struct crypto_shash *tfm = desc->tfm; in crypto_shash_finup()
207 struct crypto_shash *tfm = desc->tfm; in crypto_shash_digest()
[all …]
Dhmac.c26 struct crypto_shash *hash;
34 static inline struct hmac_ctx *hmac_ctx(struct crypto_shash *tfm) in hmac_ctx()
41 static int hmac_setkey(struct crypto_shash *parent, in hmac_setkey()
51 struct crypto_shash *hash = ctx->hash; in hmac_setkey()
119 struct crypto_shash *parent = pdesc->tfm; in hmac_final()
134 struct crypto_shash *parent = pdesc->tfm; in hmac_finup()
145 static int hmac_init_tfm(struct crypto_shash *parent) in hmac_init_tfm()
147 struct crypto_shash *hash; in hmac_init_tfm()
163 static void hmac_exit_tfm(struct crypto_shash *parent) in hmac_exit_tfm()
Dkdf_sp800108.c17 int crypto_kdf108_ctr_generate(struct crypto_shash *kmd, in crypto_kdf108_ctr_generate()
77 int crypto_kdf108_setkey(struct crypto_shash *kmd, in crypto_kdf108_setkey()
Dxcbc.c51 static int crypto_xcbc_digest_setkey(struct crypto_shash *parent, in crypto_xcbc_digest_setkey()
88 struct crypto_shash *parent = pdesc->tfm; in crypto_xcbc_digest_update()
134 struct crypto_shash *parent = pdesc->tfm; in crypto_xcbc_digest_final()
Dcmac.c50 static int crypto_cmac_digest_setkey(struct crypto_shash *parent, in crypto_cmac_digest_setkey()
121 struct crypto_shash *parent = pdesc->tfm; in crypto_cmac_digest_update()
167 struct crypto_shash *parent = pdesc->tfm; in crypto_cmac_digest_final()
/linux-6.1.9/net/mac80211/
Daes_cmac.h12 struct crypto_shash *ieee80211_aes_cmac_key_setup(const u8 key[],
14 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);
Daes_cmac.c25 void ieee80211_aes_cmac(struct crypto_shash *tfm, const u8 *aad, in ieee80211_aes_cmac()
49 void ieee80211_aes_cmac_256(struct crypto_shash *tfm, const u8 *aad, in ieee80211_aes_cmac_256()
71 struct crypto_shash *ieee80211_aes_cmac_key_setup(const u8 key[], in ieee80211_aes_cmac_key_setup()
74 struct crypto_shash *tfm; in ieee80211_aes_cmac_key_setup()
89 void ieee80211_aes_cmac_key_free(struct crypto_shash *tfm) in ieee80211_aes_cmac_key_free()
Dfils_aead.c25 static int aes_s2v(struct crypto_shash *tfm, in aes_s2v()
72 struct crypto_shash *tfm; in aes_siv_encrypt()
149 struct crypto_shash *tfm; in aes_siv_decrypt()
/linux-6.1.9/include/crypto/internal/
Dhash.h200 static inline void *crypto_shash_ctx(struct crypto_shash *tfm) in crypto_shash_ctx()
218 struct crypto_shash *shash) in shash_alg_instance()
228 static inline struct crypto_shash *crypto_spawn_shash( in crypto_spawn_shash()
234 static inline void *crypto_shash_ctx_aligned(struct crypto_shash *tfm) in crypto_shash_ctx_aligned()
239 static inline struct crypto_shash *__crypto_shash_cast(struct crypto_tfm *tfm) in __crypto_shash_cast()
241 return container_of(tfm, struct crypto_shash, base); in __crypto_shash_cast()
Dkdf_selftest.h25 int (*crypto_kdf_setkey)(struct crypto_shash *kmd, in kdf_test()
28 int (*crypto_kdf_generate)(struct crypto_shash *kmd, in kdf_test()
33 struct crypto_shash *kmd; in kdf_test()
/linux-6.1.9/lib/
Dcrc-t10dif.c19 static struct crypto_shash __rcu *crct10dif_tfm;
38 struct crypto_shash *new, *old; in crc_t10dif_rehash()
112 struct crypto_shash *tfm; in crc_t10dif_transform_show()
Dcrc64-rocksoft.c13 static struct crypto_shash __rcu *crc64_rocksoft_tfm;
32 struct crypto_shash *new, *old; in crc64_rocksoft_rehash()
106 struct crypto_shash *tfm; in crc64_rocksoft_transform_show()
/linux-6.1.9/security/integrity/ima/
Dima_crypto.c57 static struct crypto_shash *ima_shash_tfm;
61 struct crypto_shash *tfm;
91 static struct crypto_shash *ima_alloc_tfm(enum hash_algo algo) in ima_alloc_tfm()
93 struct crypto_shash *tfm = ima_shash_tfm; in ima_alloc_tfm()
214 static void ima_free_tfm(struct crypto_shash *tfm) in ima_free_tfm()
458 struct crypto_shash *tfm) in ima_calc_file_hash_tfm()
509 struct crypto_shash *tfm; in ima_calc_file_shash()
722 struct crypto_shash *tfm) in calc_buffer_shash_tfm()
753 struct crypto_shash *tfm; in calc_buffer_shash()
801 struct crypto_shash *tfm) in ima_calc_boot_aggregate_tfm()
[all …]
/linux-6.1.9/security/keys/
Ddh.c83 static int kdf_alloc(struct crypto_shash **hash, char *hashname) in kdf_alloc()
85 struct crypto_shash *tfm; in kdf_alloc()
104 static void kdf_dealloc(struct crypto_shash *hash) in kdf_dealloc()
110 static int keyctl_dh_compute_kdf(struct crypto_shash *hash, in keyctl_dh_compute_kdf()
154 struct crypto_shash *hash = NULL; in __keyctl_dh_compute()
/linux-6.1.9/drivers/crypto/xilinx/
Dzynqmp-sha.c37 struct crypto_shash *fbk_tfm;
47 static int zynqmp_sha_init_tfm(struct crypto_shash *hash) in zynqmp_sha_init_tfm()
52 struct crypto_shash *fallback_tfm; in zynqmp_sha_init_tfm()
70 static void zynqmp_sha_exit_tfm(struct crypto_shash *hash) in zynqmp_sha_exit_tfm()
/linux-6.1.9/net/ipv6/
Dseg6_hmac.c122 struct crypto_shash *tfm; in __do_hmac()
354 struct crypto_shash *tfm; in seg6_hmac_init_algo()
361 struct crypto_shash **p_tfm; in seg6_hmac_init_algo()
365 algo->tfms = alloc_percpu(struct crypto_shash *); in seg6_hmac_init_algo()
419 struct crypto_shash *tfm; in seg6_hmac_exit()
/linux-6.1.9/security/apparmor/
Dcrypto.c21 static struct crypto_shash *apparmor_tfm;
104 struct crypto_shash *tfm; in init_profile_hash()
/linux-6.1.9/arch/powerpc/crypto/
Dcrc-vpmsum_test.c33 struct crypto_shash *crct10dif_tfm; in crc_test_init()
34 struct crypto_shash *crc32c_tfm; in crc_test_init()
/linux-6.1.9/include/net/sctp/
Dauth.h25 struct crypto_shash;
81 void sctp_auth_destroy_hmacs(struct crypto_shash *auth_hmacs[]);
/linux-6.1.9/fs/crypto/
Dhkdf.c48 static int hkdf_extract(struct crypto_shash *hmac_tfm, const u8 *ikm, in hkdf_extract()
71 struct crypto_shash *hmac_tfm; in fscrypt_init_hkdf()
/linux-6.1.9/drivers/net/wireless/intersil/orinoco/
Dmic.h19 int orinoco_mic(struct crypto_shash *tfm_michael, u8 *key,
/linux-6.1.9/arch/x86/crypto/
Dpolyval-clmulni_glue.c52 static inline struct polyval_tfm_ctx *polyval_tfm_ctx(struct crypto_shash *tfm) in polyval_tfm_ctx()
81 static int polyval_x86_setkey(struct crypto_shash *tfm, in polyval_x86_setkey()
Dghash-clmulni-intel_glue.c53 static int ghash_setkey(struct crypto_shash *tfm, in ghash_setkey()
167 struct crypto_shash *child = cryptd_ahash_child(cryptd_tfm); in ghash_async_init()
246 struct crypto_shash *child = cryptd_ahash_child(cryptd_tfm); in ghash_async_digest()

123456