Home
last modified time | relevance | path

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

12

/linux-4.19.296/include/crypto/
Dhash.h148 struct crypto_shash *tfm;
187 int (*setkey)(struct crypto_shash *tfm, const u8 *key,
215 struct crypto_shash { struct
686 struct crypto_shash *crypto_alloc_shash(const char *alg_name, u32 type,
689 static inline struct crypto_tfm *crypto_shash_tfm(struct crypto_shash *tfm) in crypto_shash_tfm()
700 static inline void crypto_free_shash(struct crypto_shash *tfm) in crypto_free_shash()
705 static inline const char *crypto_shash_alg_name(struct crypto_shash *tfm) in crypto_shash_alg_name()
710 static inline const char *crypto_shash_driver_name(struct crypto_shash *tfm) in crypto_shash_driver_name()
716 struct crypto_shash *tfm) in crypto_shash_alignmask()
730 static inline unsigned int crypto_shash_blocksize(struct crypto_shash *tfm) in crypto_shash_blocksize()
[all …]
Dcryptd.h62 struct crypto_shash *cryptd_ahash_child(struct cryptd_ahash *tfm);
/linux-4.19.296/crypto/
Dshash.c28 static int shash_no_setkey(struct crypto_shash *tfm, const u8 *key, in shash_no_setkey()
47 static int shash_setkey_unaligned(struct crypto_shash *tfm, const u8 *key, in shash_setkey_unaligned()
68 static void shash_set_needkey(struct crypto_shash *tfm, struct shash_alg *alg) in shash_set_needkey()
75 int crypto_shash_setkey(struct crypto_shash *tfm, const u8 *key, in crypto_shash_setkey()
107 struct crypto_shash *tfm = desc->tfm; in shash_update_unaligned()
131 struct crypto_shash *tfm = desc->tfm; in crypto_shash_update()
144 struct crypto_shash *tfm = desc->tfm; in shash_final_unaligned()
166 struct crypto_shash *tfm = desc->tfm; in crypto_shash_final()
187 struct crypto_shash *tfm = desc->tfm; in crypto_shash_finup()
208 struct crypto_shash *tfm = desc->tfm; in crypto_shash_digest()
[all …]
Dhmac.c30 struct crypto_shash *hash;
38 static inline struct hmac_ctx *hmac_ctx(struct crypto_shash *tfm) in hmac_ctx()
45 static int hmac_setkey(struct crypto_shash *parent, in hmac_setkey()
55 struct crypto_shash *hash = ctx->hash; in hmac_setkey()
127 struct crypto_shash *parent = pdesc->tfm; in hmac_final()
144 struct crypto_shash *parent = pdesc->tfm; in hmac_finup()
159 struct crypto_shash *parent = __crypto_shash_cast(tfm); in hmac_init_tfm()
160 struct crypto_shash *hash; in hmac_init_tfm()
Dxcbc.c60 static int crypto_xcbc_digest_setkey(struct crypto_shash *parent, in crypto_xcbc_digest_setkey()
97 struct crypto_shash *parent = pdesc->tfm; in crypto_xcbc_digest_update()
143 struct crypto_shash *parent = pdesc->tfm; in crypto_xcbc_digest_final()
Dcmac.c54 static int crypto_cmac_digest_setkey(struct crypto_shash *parent, in crypto_cmac_digest_setkey()
125 struct crypto_shash *parent = pdesc->tfm; in crypto_cmac_digest_update()
171 struct crypto_shash *parent = pdesc->tfm; in crypto_cmac_digest_final()
Dcrc32_generic.c58 static int crc32_setkey(struct crypto_shash *hash, const u8 *key, in crc32_setkey()
Dcrc32c_generic.c77 static int chksum_setkey(struct crypto_shash *tfm, const u8 *key, in chksum_setkey()
Dghash-generic.c33 static int ghash_setkey(struct crypto_shash *tfm, in ghash_setkey()
Dcryptd.c88 struct crypto_shash *child;
665 struct crypto_shash *hash; in cryptd_hash_init_tfm()
689 struct crypto_shash *child = ctx->child; in cryptd_hash_setkey()
733 struct crypto_shash *child = ctx->child; in cryptd_hash_init()
825 struct crypto_shash *child = ctx->child; in cryptd_hash_digest()
1293 struct crypto_shash *cryptd_ahash_child(struct cryptd_ahash *tfm) in cryptd_ahash_child()
Dmichael_mic.c136 static int michael_setkey(struct crypto_shash *tfm, const u8 *key, in michael_setkey()
Dcrypto_null.c64 static int null_hash_setkey(struct crypto_shash *tfm, const u8 *key, in null_hash_setkey()
Dccm.c852 static int crypto_cbcmac_digest_setkey(struct crypto_shash *parent, in crypto_cbcmac_digest_setkey()
875 struct crypto_shash *parent = pdesc->tfm; in crypto_cbcmac_digest_update()
901 struct crypto_shash *parent = pdesc->tfm; in crypto_cbcmac_digest_final()
/linux-4.19.296/include/crypto/internal/
Dhash.h204 static inline void *crypto_shash_ctx(struct crypto_shash *tfm) in crypto_shash_ctx()
234 static inline struct crypto_shash *crypto_spawn_shash( in crypto_spawn_shash()
240 static inline void *crypto_shash_ctx_aligned(struct crypto_shash *tfm) in crypto_shash_ctx_aligned()
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()
/linux-4.19.296/include/net/sctp/
Dauth.h40 struct crypto_shash;
96 void sctp_auth_destroy_hmacs(struct crypto_shash *auth_hmacs[]);
Dstructs.h86 struct crypto_shash;
172 struct crypto_shash *hmac;
1325 struct crypto_shash **auth_hmacs;
/linux-4.19.296/lib/
Dlibcrc32c.c41 static struct crypto_shash *tfm;
Dcrc-t10dif.c19 static struct crypto_shash *crct10dif_tfm;
Ddigsig.c31 static struct crypto_shash *shash;
/linux-4.19.296/include/net/
Dseg6_hmac.h43 struct crypto_shash * __percpu *tfms;
/linux-4.19.296/fs/crypto/
Dkeyinfo.c20 static struct crypto_shash *essiv_hash_tfm;
213 struct crypto_shash *tfm = READ_ONCE(essiv_hash_tfm); in derive_essiv_salt()
217 struct crypto_shash *prev_tfm; in derive_essiv_salt()
/linux-4.19.296/fs/cifs/
Dcifsglob.h135 struct crypto_shash *hmacmd5; /* hmac-md5 hash function */
136 struct crypto_shash *md5; /* md5 hash function */
137 struct crypto_shash *hmacsha256; /* hmac-sha256 hash function */
138 struct crypto_shash *cmacaes; /* block-cipher based MAC function */
139 struct crypto_shash *sha512; /* sha512 hash function */
Dsmbencrypt.c124 struct crypto_shash *md4 = NULL; in mdfour()
Dcifsproto.h559 int cifs_alloc_hash(const char *name, struct crypto_shash **shash,
561 void cifs_free_hash(struct crypto_shash **shash, struct sdesc **sdesc);
/linux-4.19.296/crypto/asymmetric_keys/
Dx509_public_key.c30 struct crypto_shash *tfm; in x509_get_sig_params()

12