| /Linux-v5.4/include/crypto/ |
| D | hash.h | 143 struct crypto_shash *tfm; 190 int (*setkey)(struct crypto_shash *tfm, const u8 *key, 218 struct crypto_shash { struct 695 struct crypto_shash *crypto_alloc_shash(const char *alg_name, u32 type, 698 static inline struct crypto_tfm *crypto_shash_tfm(struct crypto_shash *tfm) in crypto_shash_tfm() 707 static inline void crypto_free_shash(struct crypto_shash *tfm) in crypto_free_shash() 712 static inline const char *crypto_shash_alg_name(struct crypto_shash *tfm) in crypto_shash_alg_name() 717 static inline const char *crypto_shash_driver_name(struct crypto_shash *tfm) in crypto_shash_driver_name() 723 struct crypto_shash *tfm) in crypto_shash_alignmask() 737 static inline unsigned int crypto_shash_blocksize(struct crypto_shash *tfm) in crypto_shash_blocksize() [all …]
|
| /Linux-v5.4/crypto/ |
| D | shash.c | 23 int shash_no_setkey(struct crypto_shash *tfm, const u8 *key, in shash_no_setkey() 30 static int shash_setkey_unaligned(struct crypto_shash *tfm, const u8 *key, in shash_setkey_unaligned() 51 static void shash_set_needkey(struct crypto_shash *tfm, struct shash_alg *alg) in shash_set_needkey() 58 int crypto_shash_setkey(struct crypto_shash *tfm, const u8 *key, in crypto_shash_setkey() 83 struct crypto_shash *tfm = desc->tfm; in shash_update_unaligned() 113 struct crypto_shash *tfm = desc->tfm; in crypto_shash_update() 126 struct crypto_shash *tfm = desc->tfm; in shash_final_unaligned() 154 struct crypto_shash *tfm = desc->tfm; in crypto_shash_final() 175 struct crypto_shash *tfm = desc->tfm; in crypto_shash_finup() 196 struct crypto_shash *tfm = desc->tfm; in crypto_shash_digest() [all …]
|
| 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() 143 struct crypto_shash *parent = __crypto_shash_cast(tfm); in hmac_init_tfm() 144 struct crypto_shash *hash; in hmac_init_tfm()
|
| D | xcbc.c | 50 static int crypto_xcbc_digest_setkey(struct crypto_shash *parent, in crypto_xcbc_digest_setkey() 87 struct crypto_shash *parent = pdesc->tfm; in crypto_xcbc_digest_update() 133 struct crypto_shash *parent = pdesc->tfm; in crypto_xcbc_digest_final()
|
| D | cmac.c | 49 static int crypto_cmac_digest_setkey(struct crypto_shash *parent, in crypto_cmac_digest_setkey() 120 struct crypto_shash *parent = pdesc->tfm; in crypto_cmac_digest_update() 166 struct crypto_shash *parent = pdesc->tfm; in crypto_cmac_digest_final()
|
| /Linux-v5.4/net/mac80211/ |
| 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);
|
| D | aes_cmac.c | 24 void ieee80211_aes_cmac(struct crypto_shash *tfm, const u8 *aad, in ieee80211_aes_cmac() 40 void ieee80211_aes_cmac_256(struct crypto_shash *tfm, const u8 *aad, in ieee80211_aes_cmac_256() 53 struct crypto_shash *ieee80211_aes_cmac_key_setup(const u8 key[], in ieee80211_aes_cmac_key_setup() 56 struct crypto_shash *tfm; in ieee80211_aes_cmac_key_setup() 65 void ieee80211_aes_cmac_key_free(struct crypto_shash *tfm) in ieee80211_aes_cmac_key_free()
|
| D | fils_aead.c | 25 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-v5.4/include/crypto/internal/ |
| D | hash.h | 80 int shash_no_setkey(struct crypto_shash *tfm, const u8 *key, 199 static inline void *crypto_shash_ctx(struct crypto_shash *tfm) in crypto_shash_ctx() 229 static inline struct crypto_shash *crypto_spawn_shash( in crypto_spawn_shash() 235 static inline void *crypto_shash_ctx_aligned(struct crypto_shash *tfm) in crypto_shash_ctx_aligned() 240 static inline struct crypto_shash *__crypto_shash_cast(struct crypto_tfm *tfm) in __crypto_shash_cast() 242 return container_of(tfm, struct crypto_shash, base); in __crypto_shash_cast()
|
| /Linux-v5.4/security/integrity/ima/ |
| D | ima_crypto.c | 59 static struct crypto_shash *ima_shash_tfm; 78 static struct crypto_shash *ima_alloc_tfm(enum hash_algo algo) in ima_alloc_tfm() 80 struct crypto_shash *tfm = ima_shash_tfm; in ima_alloc_tfm() 97 static void ima_free_tfm(struct crypto_shash *tfm) in ima_free_tfm() 333 struct crypto_shash *tfm) in ima_calc_file_hash_tfm() 382 struct crypto_shash *tfm; in ima_calc_file_shash() 470 struct crypto_shash *tfm) in ima_calc_field_array_hash_tfm() 516 struct crypto_shash *tfm; in ima_calc_field_array_hash() 590 struct crypto_shash *tfm) in calc_buffer_shash_tfm() 621 struct crypto_shash *tfm; in calc_buffer_shash() [all …]
|
| /Linux-v5.4/security/integrity/evm/ |
| D | evm.h | 40 extern struct crypto_shash *hmac_tfm; 41 extern struct crypto_shash *hash_tfm;
|
| D | evm_crypto.c | 29 struct crypto_shash *hmac_tfm; 30 static struct crypto_shash *evm_tfm[HASH_ALGO__LAST]; 78 struct crypto_shash **tfm; in init_desc()
|
| /Linux-v5.4/net/ipv6/ |
| D | seg6_hmac.c | 124 struct crypto_shash *tfm; in __do_hmac() 356 struct crypto_shash *tfm; in seg6_hmac_init_algo() 363 struct crypto_shash **p_tfm; in seg6_hmac_init_algo() 367 algo->tfms = alloc_percpu(struct crypto_shash *); in seg6_hmac_init_algo() 425 struct crypto_shash *tfm; in seg6_hmac_exit()
|
| /Linux-v5.4/security/apparmor/ |
| D | crypto.c | 21 static struct crypto_shash *apparmor_tfm; 104 struct crypto_shash *tfm; in init_profile_hash()
|
| /Linux-v5.4/arch/powerpc/crypto/ |
| D | crc-vpmsum_test.c | 31 struct crypto_shash *crct10dif_tfm; in crc_test_init() 32 struct crypto_shash *crc32c_tfm; in crc_test_init()
|
| /Linux-v5.4/lib/ |
| D | crc-t10dif.c | 19 static struct crypto_shash __rcu *crct10dif_tfm; 26 struct crypto_shash *new, *old; in crc_t10dif_rehash()
|
| D | libcrc32c.c | 36 static struct crypto_shash *tfm;
|
| /Linux-v5.4/include/net/sctp/ |
| D | auth.h | 25 struct crypto_shash; 81 void sctp_auth_destroy_hmacs(struct crypto_shash *auth_hmacs[]);
|
| /Linux-v5.4/fs/crypto/ |
| D | hkdf.c | 43 static int hkdf_extract(struct crypto_shash *hmac_tfm, const u8 *ikm, in hkdf_extract() 70 struct crypto_shash *hmac_tfm; in fscrypt_init_hkdf()
|
| /Linux-v5.4/drivers/net/wireless/intersil/orinoco/ |
| D | mic.h | 19 int orinoco_mic(struct crypto_shash *tfm_michael, u8 *key,
|
| D | orinoco.h | 154 struct crypto_shash *rx_tfm_mic; 155 struct crypto_shash *tx_tfm_mic;
|
| /Linux-v5.4/arch/x86/crypto/ |
| D | ghash-clmulni-intel_glue.c | 53 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() 248 struct crypto_shash *child = cryptd_ahash_child(cryptd_tfm); in ghash_async_digest()
|
| /Linux-v5.4/Documentation/crypto/ |
| D | api-samples.rst | 104 static struct sdesc *init_sdesc(struct crypto_shash *alg) 117 static int calc_hash(struct crypto_shash *alg, 138 struct crypto_shash *alg;
|
| /Linux-v5.4/net/wireless/ |
| D | lib80211_crypt_tkip.c | 67 struct crypto_shash *rx_tfm_michael; 68 struct crypto_shash *tx_tfm_michael; 474 static int michael_mic(struct crypto_shash *tfm_michael, u8 *key, u8 *hdr, in michael_mic() 624 struct crypto_shash *tfm = tkey->tx_tfm_michael; in lib80211_tkip_set_key() 626 struct crypto_shash *tfm3 = tkey->rx_tfm_michael; in lib80211_tkip_set_key()
|
| /Linux-v5.4/drivers/staging/rtl8192e/ |
| D | rtllib_crypt_tkip.c | 49 struct crypto_shash *rx_tfm_michael; 51 struct crypto_shash *tx_tfm_michael; 499 static int michael_mic(struct crypto_shash *tfm_michael, u8 *key, u8 *hdr, in michael_mic() 659 struct crypto_shash *tfm = tkey->tx_tfm_michael; in rtllib_tkip_set_key() 661 struct crypto_shash *tfm3 = tkey->rx_tfm_michael; in rtllib_tkip_set_key()
|