/kernel/linux/linux-6.6/include/crypto/ |
H A D | hash.h | 176 struct crypto_shash *tfm; 236 int (*setkey)(struct crypto_shash *tfm, const u8 *key, 238 int (*init_tfm)(struct crypto_shash *tfm); 239 void (*exit_tfm)(struct crypto_shash *tfm); 240 int (*clone_tfm)(struct crypto_shash *dst, struct crypto_shash *src); 268 struct crypto_shash { struct 762 * crypto_shash is the cipher handle that is required for any subsequent 768 struct crypto_shash *crypto_alloc_shash(const char *alg_name, u32 type, 771 struct crypto_shash *crypto_clone_shas [all...] |
H A D | kdf_sp800108.h | 31 int crypto_kdf108_ctr_generate(struct crypto_shash *kmd, 57 int crypto_kdf108_setkey(struct crypto_shash *kmd,
|
/kernel/linux/linux-6.6/crypto/ |
H A D | shash.c | 34 int shash_no_setkey(struct crypto_shash *tfm, const u8 *key, in shash_no_setkey() 41 static int shash_setkey_unaligned(struct crypto_shash *tfm, const u8 *key, in shash_setkey_unaligned() 62 static void shash_set_needkey(struct crypto_shash *tfm, struct shash_alg *alg) in shash_set_needkey() 68 int crypto_shash_setkey(struct crypto_shash *tfm, const u8 *key, in crypto_shash_setkey() 93 struct crypto_shash *tfm = desc->tfm; in shash_update_unaligned() 123 struct crypto_shash *tfm = desc->tfm; in crypto_shash_update() 142 struct crypto_shash *tfm = desc->tfm; in shash_final_unaligned() 170 struct crypto_shash *tfm = desc->tfm; in crypto_shash_final() 197 struct crypto_shash *tfm = desc->tfm; in crypto_shash_finup() 230 struct crypto_shash *tf in crypto_shash_digest() [all...] |
H A D | hmac.c | 26 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 int hmac_clone_tfm(struct crypto_shash *dst, struct crypto_shash *sr [all...] |
H A D | cmac.c | 50 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() 201 static int cmac_init_tfm(struct crypto_shash *tfm) in cmac_init_tfm() 218 static int cmac_clone_tfm(struct crypto_shash *tfm, struct crypto_shash *otfm) in cmac_clone_tfm() 233 static void cmac_exit_tfm(struct crypto_shash *tfm) in cmac_exit_tfm()
|
/kernel/linux/linux-5.10/include/crypto/ |
H A D | hash.h | 151 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 712 * crypto_shash is the cipher handle that is required for any subsequent 718 struct crypto_shash *crypto_alloc_shash(const char *alg_name, u32 type, 721 static inline struct crypto_tfm *crypto_shash_tfm(struct crypto_shash *tfm) in crypto_shash_tfm() 732 static inline void crypto_free_shash(struct crypto_shash *tfm) in crypto_free_shash() 737 static inline const char *crypto_shash_alg_name(struct crypto_shash *tf [all...] |
/kernel/linux/linux-5.10/crypto/ |
H A D | shash.c | 23 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 *tf in crypto_shash_digest() [all...] |
H A D | hmac.c | 25 struct crypto_shash *hash; 33 static inline struct hmac_ctx *hmac_ctx(struct crypto_shash *tfm) in hmac_ctx() 40 static int hmac_setkey(struct crypto_shash *parent, in hmac_setkey() 50 struct crypto_shash *hash = ctx->hash; in hmac_setkey() 115 struct crypto_shash *parent = pdesc->tfm; in hmac_final() 130 struct crypto_shash *parent = pdesc->tfm; in hmac_finup() 141 static int hmac_init_tfm(struct crypto_shash *parent) in hmac_init_tfm() 143 struct crypto_shash *hash; in hmac_init_tfm() 159 static void hmac_exit_tfm(struct crypto_shash *parent) in hmac_exit_tfm()
|
/kernel/linux/linux-5.10/net/mac80211/ |
H A D | aes_cmac.h | 12 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 D | aes_cmac.c | 24 void ieee80211_aes_cmac(struct crypto_shash *tfm, const u8 *aad, in ieee80211_aes_cmac() 48 void ieee80211_aes_cmac_256(struct crypto_shash *tfm, const u8 *aad, in ieee80211_aes_cmac_256() 70 struct crypto_shash *ieee80211_aes_cmac_key_setup(const u8 key[], in ieee80211_aes_cmac_key_setup() 73 struct crypto_shash *tfm; in ieee80211_aes_cmac_key_setup() 82 void ieee80211_aes_cmac_key_free(struct crypto_shash *tfm) in ieee80211_aes_cmac_key_free()
|
/kernel/linux/linux-6.6/net/mac80211/ |
H A D | aes_cmac.h | 12 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 D | aes_cmac.c | 25 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()
|
/kernel/linux/linux-6.6/include/crypto/internal/ |
H A D | hash.h | 78 int shash_no_setkey(struct crypto_shash *tfm, const u8 *key, 238 static inline void *crypto_shash_ctx(struct crypto_shash *tfm) in crypto_shash_ctx() 256 struct crypto_shash *shash) in shash_alg_instance() 266 static inline struct crypto_shash *crypto_spawn_shash( in crypto_spawn_shash() 272 static inline void *crypto_shash_ctx_aligned(struct crypto_shash *tfm) in crypto_shash_ctx_aligned() 277 static inline struct crypto_shash *__crypto_shash_cast(struct crypto_tfm *tfm) in __crypto_shash_cast() 279 return container_of(tfm, struct crypto_shash, base); in __crypto_shash_cast()
|
H A D | kdf_selftest.h | 25 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()
|
/kernel/linux/linux-5.10/include/crypto/internal/ |
H A D | hash.h | 200 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()
|
/kernel/linux/linux-5.10/security/integrity/ima/ |
H A D | ima_crypto.c | 57 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 *tf in ima_calc_boot_aggregate_tfm() [all...] |
/kernel/linux/linux-6.6/security/integrity/ima/ |
H A D | ima_crypto.c | 57 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 *tf in ima_calc_boot_aggregate_tfm() [all...] |
/kernel/linux/linux-5.10/security/integrity/evm/ |
H A D | evm.h | 40 extern struct crypto_shash *hmac_tfm; 41 extern struct crypto_shash *hash_tfm;
|
/kernel/linux/linux-5.10/lib/ |
H A D | crc-t10dif.c | 19 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()
|
/kernel/linux/linux-6.6/lib/ |
H A D | crc-t10dif.c | 19 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()
|
H A D | crc64-rocksoft.c | 13 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()
|
/kernel/linux/linux-6.6/drivers/crypto/xilinx/ |
H A D | zynqmp-sha.c | 36 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()
|
/kernel/linux/linux-6.6/security/keys/ |
H A D | dh.c | 67 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()
|
/kernel/linux/linux-5.10/security/apparmor/ |
H A D | crypto.c | 21 static struct crypto_shash *apparmor_tfm; 104 struct crypto_shash *tfm; in init_profile_hash()
|
/kernel/linux/linux-6.6/security/apparmor/ |
H A D | crypto.c | 21 static struct crypto_shash *apparmor_tfm; 104 struct crypto_shash *tfm; in init_profile_hash()
|