/linux/include/crypto/ |
H A D | hash.h | 155 struct crypto_shash *tfm; 211 int (*setkey)(struct crypto_shash *tfm, const u8 *key, 213 int (*init_tfm)(struct crypto_shash *tfm); 214 void (*exit_tfm)(struct crypto_shash *tfm); 215 int (*clone_tfm)(struct crypto_shash *dst, struct crypto_shash *src); 233 struct crypto_shash { struct 682 struct crypto_shash *crypto_clone_shash(struct crypto_shash *tfm); 697 static inline void crypto_free_shash(struct crypto_shash *tfm) in crypto_free_shash() 755 static inline u32 crypto_shash_get_flags(struct crypto_shash *tfm) in crypto_shash_get_flags() 808 int crypto_shash_setkey(struct crypto_shash *tfm, const u8 *key, [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,
|
/linux/crypto/ |
H A D | hmac.c | 26 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 D | shash.c | 19 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 D | cmac.c | 50 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 D | ahash.c | 34 static inline struct crypto_shash *ahash_to_shash(struct crypto_ahash *tfm) in ahash_to_shash() 36 return *(struct crypto_shash **)crypto_ahash_ctx(tfm); in ahash_to_shash() 108 struct crypto_shash **ctx = crypto_tfm_ctx(tfm); in crypto_exit_ahash_using_shash() 117 struct crypto_shash **ctx = crypto_tfm_ctx(tfm); in crypto_init_ahash_using_shash() 118 struct crypto_shash *shash; in crypto_init_ahash_using_shash() 228 struct crypto_shash *shash = ahash_to_shash(tfm); in crypto_ahash_setkey() 491 return sizeof(struct crypto_shash *); in crypto_ahash_extsize() 603 struct crypto_shash **nctx = crypto_ahash_ctx(nhash); in crypto_clone_ahash() 604 struct crypto_shash *shash; in crypto_clone_ahash()
|
H A D | kdf_sp800108.c | 17 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 D | jitterentropy-kcapi.c | 196 struct crypto_shash *tfm; 225 struct crypto_shash *hash; in jent_kcapi_init() 336 struct crypto_shash *tfm; in jent_mod_init()
|
H A D | xcbc.c | 51 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()
|
/linux/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()
|
/linux/include/crypto/internal/ |
H A D | hash.h | 76 int shash_no_setkey(struct crypto_shash *tfm, const u8 *key, 234 static inline void *crypto_shash_ctx(struct crypto_shash *tfm) in crypto_shash_ctx() 252 struct crypto_shash *shash) in shash_alg_instance() 262 static inline struct crypto_shash *crypto_spawn_shash( in crypto_spawn_shash() 268 static inline struct crypto_shash *__crypto_shash_cast(struct crypto_tfm *tfm) in __crypto_shash_cast() 270 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()
|
/linux/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()
|
/linux/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()
|
/linux/security/integrity/ima/ |
H A D | ima_crypto.c | 57 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/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()
|
/linux/net/ipv6/ |
H A D | seg6_hmac.c | 122 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/security/apparmor/ |
H A D | crypto.c | 21 static struct crypto_shash *apparmor_tfm; 104 struct crypto_shash *tfm; in init_profile_hash()
|
/linux/arch/powerpc/crypto/ |
H A D | crc-vpmsum_test.c | 33 struct crypto_shash *crct10dif_tfm; in crc_test_init() 34 struct crypto_shash *crc32c_tfm; in crc_test_init()
|
/linux/include/net/sctp/ |
H A D | auth.h | 25 struct crypto_shash; 81 void sctp_auth_destroy_hmacs(struct crypto_shash *auth_hmacs[]);
|
/linux/fs/crypto/ |
H A D | hkdf.c | 48 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/net/sunrpc/auth_gss/ |
H A D | gss_krb5_keys.c | 305 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()
|
/linux/arch/x86/crypto/ |
H A D | polyval-clmulni_glue.c | 52 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()
|