Home
last modified time | relevance | path

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

123456

/linux-6.15/include/crypto/
H A Dhash.h162 struct crypto_shash *tfm;
218 int (*setkey)(struct crypto_shash *tfm, const u8 *key,
220 int (*init_tfm)(struct crypto_shash *tfm);
221 void (*exit_tfm)(struct crypto_shash *tfm);
222 int (*clone_tfm)(struct crypto_shash *dst, struct crypto_shash *src);
240 struct crypto_shash { struct
718 struct crypto_shash *crypto_clone_shash(struct crypto_shash *tfm);
733 static inline void crypto_free_shash(struct crypto_shash *tfm) in crypto_free_shash()
791 static inline u32 crypto_shash_get_flags(struct crypto_shash *tfm) in crypto_shash_get_flags()
844 int crypto_shash_setkey(struct crypto_shash *tfm, const u8 *key,
[all …]
H A Dkrb5.h15 struct crypto_shash;
125 struct crypto_shash *crypto_krb5_prepare_checksum(const struct krb5_enctype *krb5,
139 struct crypto_shash *shash,
145 struct crypto_shash *shash,
H A Dkdf_sp800108.h31 int crypto_kdf108_ctr_generate(struct crypto_shash *kmd,
57 int crypto_kdf108_setkey(struct crypto_shash *kmd,
H A Dhkdf.h14 int hkdf_extract(struct crypto_shash *hmac_tfm, const u8 *ikm,
17 int hkdf_expand(struct crypto_shash *hmac_tfm,
/linux-6.15/crypto/
H A Dhmac.c26 struct crypto_shash *hash;
31 static int hmac_setkey(struct crypto_shash *parent, in hmac_setkey()
38 struct crypto_shash *hash = tctx->hash; in hmac_setkey()
110 struct crypto_shash *parent = pdesc->tfm; in hmac_final()
126 struct crypto_shash *parent = pdesc->tfm; in hmac_finup()
138 static int hmac_init_tfm(struct crypto_shash *parent) in hmac_init_tfm()
140 struct crypto_shash *hash; in hmac_init_tfm()
156 static int hmac_clone_tfm(struct crypto_shash *dst, struct crypto_shash *src) in hmac_clone_tfm()
160 struct crypto_shash *hash; in hmac_clone_tfm()
170 static void hmac_exit_tfm(struct crypto_shash *parent) in hmac_exit_tfm()
H A Dshash.c19 int shash_no_setkey(struct crypto_shash *tfm, const u8 *key, in shash_no_setkey()
32 int crypto_shash_setkey(struct crypto_shash *tfm, const u8 *key, in crypto_shash_setkey()
90 struct crypto_shash *tfm = desc->tfm; in crypto_shash_digest()
99 int crypto_shash_tfm_digest(struct crypto_shash *tfm, const u8 *data, in crypto_shash_tfm_digest()
117 struct crypto_shash *tfm = desc->tfm; in crypto_shash_export()
130 struct crypto_shash *tfm = desc->tfm; in crypto_shash_import()
146 struct crypto_shash *hash = __crypto_shash_cast(tfm); in crypto_shash_exit_tfm()
154 struct crypto_shash *hash = __crypto_shash_cast(tfm); in crypto_shash_init_tfm()
229 .tfmsize = offsetof(struct crypto_shash, base),
254 struct crypto_shash *crypto_clone_shash(struct crypto_shash *hash) in crypto_clone_shash()
[all …]
H A Dcmac.c50 static int crypto_cmac_digest_setkey(struct crypto_shash *parent, in crypto_cmac_digest_setkey()
118 struct crypto_shash *parent = pdesc->tfm; in crypto_cmac_digest_update()
163 struct crypto_shash *parent = pdesc->tfm; in crypto_cmac_digest_final()
194 static int cmac_init_tfm(struct crypto_shash *tfm) in cmac_init_tfm()
211 static int cmac_clone_tfm(struct crypto_shash *tfm, struct crypto_shash *otfm) in cmac_clone_tfm()
226 static void cmac_exit_tfm(struct crypto_shash *tfm) in cmac_exit_tfm()
H A 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()
H A Djitterentropy-kcapi.c196 struct crypto_shash *tfm;
225 struct crypto_shash *hash; in jent_kcapi_init()
336 struct crypto_shash *tfm; in jent_mod_init()
H A Dxcbc.c51 static int crypto_xcbc_digest_setkey(struct crypto_shash *parent, in crypto_xcbc_digest_setkey()
86 struct crypto_shash *parent = pdesc->tfm; in crypto_xcbc_digest_update()
131 struct crypto_shash *parent = pdesc->tfm; in crypto_xcbc_digest_final()
H A Dahash.c153 static inline struct crypto_shash *ahash_to_shash(struct crypto_ahash *tfm) in ahash_to_shash()
155 return *(struct crypto_shash **)crypto_ahash_ctx(tfm); in ahash_to_shash()
242 struct crypto_shash **ctx = crypto_tfm_ctx(tfm); in crypto_exit_ahash_using_shash()
251 struct crypto_shash **ctx = crypto_tfm_ctx(tfm); in crypto_init_ahash_using_shash()
252 struct crypto_shash *shash; in crypto_init_ahash_using_shash()
291 struct crypto_shash *shash = ahash_to_shash(tfm); in crypto_ahash_setkey()
847 return sizeof(struct crypto_shash *); in crypto_ahash_extsize()
959 struct crypto_shash **nctx = crypto_ahash_ctx(nhash); in crypto_clone_ahash()
960 struct crypto_shash *shash; in crypto_clone_ahash()
/linux-6.15/net/mac80211/
H A 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);
H A 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()
/linux-6.15/include/crypto/internal/
H A Dhash.h53 int shash_no_setkey(struct crypto_shash *tfm, const u8 *key,
211 static inline void *crypto_shash_ctx(struct crypto_shash *tfm) in crypto_shash_ctx()
229 struct crypto_shash *shash) in shash_alg_instance()
239 static inline struct crypto_shash *crypto_spawn_shash( in crypto_spawn_shash()
245 static inline struct crypto_shash *__crypto_shash_cast(struct crypto_tfm *tfm) in __crypto_shash_cast()
247 return container_of(tfm, struct crypto_shash, base); in __crypto_shash_cast()
H A 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.15/crypto/krb5/
H A Dkrb5_api.c235 struct crypto_shash *krb5_prepare_checksum(const struct krb5_enctype *krb5, in krb5_prepare_checksum()
239 struct crypto_shash *ci = NULL; in krb5_prepare_checksum()
274 struct crypto_shash *crypto_krb5_prepare_checksum(const struct krb5_enctype *krb5, in crypto_krb5_prepare_checksum()
278 struct crypto_shash *ci = NULL; in crypto_krb5_prepare_checksum()
396 struct crypto_shash *shash, in crypto_krb5_get_mic()
433 struct crypto_shash *shash, in crypto_krb5_verify_mic()
H A Dinternal.h88 struct crypto_shash *shash,
96 struct crypto_shash *shash,
154 struct crypto_shash *krb5_prepare_checksum(const struct krb5_enctype *krb5,
204 struct crypto_shash *shash,
209 struct crypto_shash *shash,
/linux-6.15/security/keys/
H A Ddh.c67 static int kdf_alloc(struct crypto_shash **hash, char *hashname) in kdf_alloc()
69 struct crypto_shash *tfm; in kdf_alloc()
88 static void kdf_dealloc(struct crypto_shash *hash) in kdf_dealloc()
94 static int keyctl_dh_compute_kdf(struct crypto_shash *hash, in keyctl_dh_compute_kdf()
138 struct crypto_shash *hash = NULL; in __keyctl_dh_compute()
/linux-6.15/security/integrity/ima/
H A Dima_crypto.c57 static struct crypto_shash *ima_shash_tfm;
86 static struct crypto_shash *ima_alloc_tfm(enum hash_algo algo) in ima_alloc_tfm()
88 struct crypto_shash *tfm = ima_shash_tfm; in ima_alloc_tfm()
209 static void ima_free_tfm(struct crypto_shash *tfm) in ima_free_tfm()
453 struct crypto_shash *tfm) in ima_calc_file_hash_tfm()
504 struct crypto_shash *tfm; in ima_calc_file_shash()
717 struct crypto_shash *tfm) in calc_buffer_shash_tfm()
748 struct crypto_shash *tfm; in calc_buffer_shash()
796 struct crypto_shash *tfm) in ima_calc_boot_aggregate_tfm()
841 struct crypto_shash *tfm; in ima_calc_boot_aggregate()
/linux-6.15/drivers/crypto/xilinx/
H A Dzynqmp-sha.c36 struct crypto_shash *fbk_tfm;
46 static int zynqmp_sha_init_tfm(struct crypto_shash *hash) in zynqmp_sha_init_tfm()
51 struct crypto_shash *fallback_tfm; in zynqmp_sha_init_tfm()
69 static void zynqmp_sha_exit_tfm(struct crypto_shash *hash) in zynqmp_sha_exit_tfm()
/linux-6.15/net/ipv6/
H A Dseg6_hmac.c122 struct crypto_shash *tfm; in __do_hmac()
356 struct crypto_shash *tfm; in seg6_hmac_init_algo()
364 struct crypto_shash **p_tfm; in seg6_hmac_init_algo()
368 algo->tfms = alloc_percpu(struct crypto_shash *); in seg6_hmac_init_algo()
422 struct crypto_shash *tfm; in seg6_hmac_exit()
/linux-6.15/security/apparmor/
H A Dcrypto.c21 static struct crypto_shash *apparmor_tfm;
104 struct crypto_shash *tfm; in init_profile_hash()
/linux-6.15/include/net/sctp/
H A Dauth.h25 struct crypto_shash;
81 void sctp_auth_destroy_hmacs(struct crypto_shash *auth_hmacs[]);
/linux-6.15/drivers/nvme/common/
H A Dauth.c244 struct crypto_shash *key_tfm; in nvme_auth_transform_key()
321 struct crypto_shash *tfm; in nvme_auth_hash_skey()
346 struct crypto_shash *tfm; in nvme_auth_augmented_challenge()
503 struct crypto_shash *tfm; in nvme_auth_generate_psk()
601 struct crypto_shash *tfm; in nvme_auth_generate_digest()
727 struct crypto_shash *hmac_tfm; in nvme_auth_derive_tls_psk()
/linux-6.15/net/sunrpc/auth_gss/
H A Dgss_krb5_keys.c305 krb5_cmac_Ki(struct crypto_shash *tfm, const struct xdr_netobj *constant, in krb5_cmac_Ki()
377 struct crypto_shash *tfm; in krb5_kdf_feedback_cmac()
444 krb5_hmac_K1(struct crypto_shash *tfm, const struct xdr_netobj *label, in krb5_hmac_K1()
506 struct crypto_shash *tfm; in krb5_kdf_hmac_sha2()

123456