Home
last modified time | relevance | path

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

/linux-4.4.14/include/crypto/
Dhash.h143 struct crypto_shash *tfm;
182 int (*setkey)(struct crypto_shash *tfm, const u8 *key,
211 struct crypto_shash { struct
643 struct crypto_shash *crypto_alloc_shash(const char *alg_name, u32 type,
646 static inline struct crypto_tfm *crypto_shash_tfm(struct crypto_shash *tfm) in crypto_shash_tfm()
655 static inline void crypto_free_shash(struct crypto_shash *tfm) in crypto_free_shash()
661 struct crypto_shash *tfm) in crypto_shash_alignmask()
675 static inline unsigned int crypto_shash_blocksize(struct crypto_shash *tfm) in crypto_shash_blocksize()
685 static inline struct shash_alg *crypto_shash_alg(struct crypto_shash *tfm) in crypto_shash_alg()
699 static inline unsigned int crypto_shash_digestsize(struct crypto_shash *tfm) in crypto_shash_digestsize()
[all …]
Dmcryptd.h42 struct crypto_shash *child;
67 struct crypto_shash *mcryptd_ahash_child(struct mcryptd_ahash *tfm);
Dpoly1305.h33 int crypto_poly1305_setkey(struct crypto_shash *tfm,
Dcryptd.h49 struct crypto_shash *cryptd_ahash_child(struct cryptd_ahash *tfm);
/linux-4.4.14/crypto/
Dshash.c27 static int shash_no_setkey(struct crypto_shash *tfm, const u8 *key, in shash_no_setkey()
33 static int shash_setkey_unaligned(struct crypto_shash *tfm, const u8 *key, in shash_setkey_unaligned()
54 int crypto_shash_setkey(struct crypto_shash *tfm, const u8 *key, in crypto_shash_setkey()
77 struct crypto_shash *tfm = desc->tfm; in shash_update_unaligned()
101 struct crypto_shash *tfm = desc->tfm; in crypto_shash_update()
114 struct crypto_shash *tfm = desc->tfm; in shash_final_unaligned()
136 struct crypto_shash *tfm = desc->tfm; in crypto_shash_final()
157 struct crypto_shash *tfm = desc->tfm; in crypto_shash_finup()
178 struct crypto_shash *tfm = desc->tfm; in crypto_shash_digest()
204 struct crypto_shash **ctx = crypto_ahash_ctx(tfm); in shash_async_setkey()
[all …]
Dhmac.c29 struct crypto_shash *hash;
37 static inline struct hmac_ctx *hmac_ctx(struct crypto_shash *tfm) in hmac_ctx()
44 static int hmac_setkey(struct crypto_shash *parent, in hmac_setkey()
54 struct crypto_shash *hash = ctx->hash; in hmac_setkey()
126 struct crypto_shash *parent = pdesc->tfm; in hmac_final()
143 struct crypto_shash *parent = pdesc->tfm; in hmac_finup()
158 struct crypto_shash *parent = __crypto_shash_cast(tfm); in hmac_init_tfm()
159 struct crypto_shash *hash; in hmac_init_tfm()
Dmcryptd.c281 struct crypto_shash *hash; in mcryptd_hash_init_tfm()
305 struct crypto_shash *child = ctx->child; in mcryptd_hash_setkey()
338 struct crypto_shash *child = ctx->child; in mcryptd_hash_init()
446 struct crypto_shash *child = ctx->child; in mcryptd_hash_digest()
633 struct crypto_shash *tfm = desc->tfm; in shash_ahash_mcryptd_update()
645 struct crypto_shash *tfm = desc->tfm; in shash_ahash_mcryptd_finup()
657 struct crypto_shash *tfm = desc->tfm; in shash_ahash_mcryptd_final()
666 struct crypto_shash *mcryptd_ahash_child(struct mcryptd_ahash *tfm) in mcryptd_ahash_child()
Dxcbc.c61 static int crypto_xcbc_digest_setkey(struct crypto_shash *parent, in crypto_xcbc_digest_setkey()
98 struct crypto_shash *parent = pdesc->tfm; in crypto_xcbc_digest_update()
144 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()
124 struct crypto_shash *parent = pdesc->tfm; in crypto_cmac_digest_update()
170 struct crypto_shash *parent = pdesc->tfm; in crypto_cmac_digest_final()
Dcryptd.c69 struct crypto_shash *child;
409 struct crypto_shash *hash; in cryptd_hash_init_tfm()
433 struct crypto_shash *child = ctx->child; in cryptd_hash_setkey()
462 struct crypto_shash *child = ctx->child; in cryptd_hash_init()
562 struct crypto_shash *child = ctx->child; in cryptd_hash_digest()
940 struct crypto_shash *cryptd_ahash_child(struct cryptd_ahash *tfm) in cryptd_ahash_child()
Dcrc32.c63 static int crc32_setkey(struct crypto_shash *hash, const u8 *key, in crc32_setkey()
Dcrc32c_generic.c76 static int chksum_setkey(struct crypto_shash *tfm, const u8 *key, in chksum_setkey()
Dghash-generic.c44 static int ghash_setkey(struct crypto_shash *tfm, in ghash_setkey()
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()
Dvmac.c544 static int vmac_setkey(struct crypto_shash *parent, in vmac_setkey()
565 struct crypto_shash *parent = pdesc->tfm; in vmac_update()
600 struct crypto_shash *parent = pdesc->tfm; in vmac_final()
Dpoly1305_generic.c54 int crypto_poly1305_setkey(struct crypto_shash *tfm, in crypto_poly1305_setkey()
Dahash.c485 return sizeof(struct crypto_shash *); in crypto_ahash_extsize()
Ddrbg.c1634 struct crypto_shash *tfm; in drbg_init_hash_kernel()
Dtestmgr.c1691 struct crypto_shash *tfm; in alg_test_crc32c()
/linux-4.4.14/security/integrity/ima/
Dima_crypto.c67 static struct crypto_shash *ima_shash_tfm;
84 static struct crypto_shash *ima_alloc_tfm(enum hash_algo algo) in ima_alloc_tfm()
86 struct crypto_shash *tfm = ima_shash_tfm; in ima_alloc_tfm()
103 static void ima_free_tfm(struct crypto_shash *tfm) in ima_free_tfm()
355 struct crypto_shash *tfm) in ima_calc_file_hash_tfm()
412 struct crypto_shash *tfm; in ima_calc_file_shash()
462 struct crypto_shash *tfm) in ima_calc_field_array_hash_tfm()
507 struct crypto_shash *tfm; in ima_calc_field_array_hash()
535 struct crypto_shash *tfm) in ima_calc_boot_aggregate_tfm()
561 struct crypto_shash *tfm; in ima_calc_boot_aggregate()
/linux-4.4.14/include/crypto/internal/
Dhash.h200 static inline void *crypto_shash_ctx(struct crypto_shash *tfm) in crypto_shash_ctx()
230 static inline struct crypto_shash *crypto_spawn_shash( in crypto_spawn_shash()
236 static inline void *crypto_shash_ctx_aligned(struct crypto_shash *tfm) in crypto_shash_ctx_aligned()
241 static inline struct crypto_shash *__crypto_shash_cast(struct crypto_tfm *tfm) in __crypto_shash_cast()
243 return container_of(tfm, struct crypto_shash, base); in __crypto_shash_cast()
/linux-4.4.14/drivers/crypto/vmx/
Dghash.c46 struct crypto_shash *fallback;
59 struct crypto_shash *fallback; in p8_ghash_init_tfm()
60 struct crypto_shash *shash_tfm = __crypto_shash_cast(tfm); in p8_ghash_init_tfm()
79 crypto_shash_get_flags((struct crypto_shash in p8_ghash_init_tfm()
111 static int p8_ghash_setkey(struct crypto_shash *tfm, const u8 *key, in p8_ghash_setkey()
/linux-4.4.14/security/integrity/evm/
Devm.h32 extern struct crypto_shash *hmac_tfm;
33 extern struct crypto_shash *hash_tfm;
Devm_crypto.c30 struct crypto_shash *hmac_tfm;
31 struct crypto_shash *hash_tfm;
39 struct crypto_shash **tfm; in init_desc()
/linux-4.4.14/security/apparmor/
Dcrypto.c25 static struct crypto_shash *apparmor_tfm;
76 struct crypto_shash *tfm; in init_profile_hash()
/linux-4.4.14/arch/arm/crypto/
Dghash-ce-glue.c109 static int ghash_setkey(struct crypto_shash *tfm, in ghash_setkey()
164 struct crypto_shash *child = cryptd_ahash_child(cryptd_tfm); in ghash_async_init()
221 struct crypto_shash *child = cryptd_ahash_child(cryptd_tfm); in ghash_async_digest()
/linux-4.4.14/fs/btrfs/
Dhash.c18 static struct crypto_shash *tfm;
/linux-4.4.14/arch/x86/crypto/
Dghash-clmulni-intel_glue.c55 static int ghash_setkey(struct crypto_shash *tfm, in ghash_setkey()
178 struct crypto_shash *child = cryptd_ahash_child(cryptd_tfm); in ghash_async_init()
235 struct crypto_shash *child = cryptd_ahash_child(cryptd_tfm); in ghash_async_digest()
Dcrc32-pclmul_glue.c91 static int crc32_pclmul_setkey(struct crypto_shash *hash, const u8 *key, in crc32_pclmul_setkey()
Dcrc32c-intel_glue.c114 static int crc32c_intel_setkey(struct crypto_shash *hash, const u8 *key, in crc32c_intel_setkey()
/linux-4.4.14/lib/
Dlibcrc32c.c40 static struct crypto_shash *tfm;
Dcrc-t10dif.c19 static struct crypto_shash *crct10dif_tfm;
Ddigsig.c31 static struct crypto_shash *shash;
/linux-4.4.14/drivers/staging/lustre/lustre/libcfs/linux/
Dlinux-crypto-adler.c54 static int adler32_setkey(struct crypto_shash *hash, const u8 *key, in adler32_setkey()
/linux-4.4.14/drivers/crypto/
Dpadlock-sha.c33 struct crypto_shash *fallback;
213 struct crypto_shash *hash = __crypto_shash_cast(tfm); in padlock_cra_init()
216 struct crypto_shash *fallback_tfm; in padlock_cra_init()
Dmv_cesa.c133 struct crypto_shash *fallback;
134 struct crypto_shash *base_hash;
848 struct crypto_shash *fallback_tfm = NULL; in mv_cra_hash_init()
849 struct crypto_shash *base_hash = NULL; in mv_cra_hash_init()
Domap-sham.c161 struct crypto_shash *shash;
172 struct crypto_shash *fallback;
1125 static int omap_sham_shash_digest(struct crypto_shash *tfm, u32 flags, in omap_sham_shash_digest()
Dn2_core.c287 struct crypto_shash *child_shash;
399 struct crypto_shash *child_shash; in n2_hmac_cra_init()
446 struct crypto_shash *child_shash = ctx->child_shash; in n2_hmac_async_setkey()
Dsahara.c156 struct crypto_shash *shash_fallback;
/linux-4.4.14/arch/sparc/crypto/
Dcrc32c_glue.c30 static int crc32c_sparc64_setkey(struct crypto_shash *hash, const u8 *key, in crc32c_sparc64_setkey()
/linux-4.4.14/arch/arm64/crypto/
Dghash-ce-glue.c103 static int ghash_setkey(struct crypto_shash *tfm, in ghash_setkey()
Dcrc32-arm64.c115 static int chksum_setkey(struct crypto_shash *tfm, const u8 *key, in chksum_setkey()
/linux-4.4.14/drivers/crypto/ccp/
Dccp-crypto.h153 struct crypto_shash *hmac_tfm;
Dccp-crypto-sha.c254 struct crypto_shash *shash = ctx->u.sha.hmac_tfm; in ccp_sha_setkey()
322 struct crypto_shash *hmac_tfm; in ccp_hmac_sha_cra_init()
/linux-4.4.14/arch/s390/crypto/
Dghash_s390.c41 static int ghash_setkey(struct crypto_shash *tfm, in ghash_setkey()
/linux-4.4.14/fs/cifs/
Dcifsglob.h117 struct crypto_shash *hmacmd5; /* hmac-md5 hash function */
118 struct crypto_shash *md5; /* md5 hash function */
119 struct crypto_shash *hmacsha256; /* hmac-sha256 hash function */
120 struct crypto_shash *cmacaes; /* block-cipher based MAC function */
Dsmbencrypt.c137 struct crypto_shash *md4; in mdfour()
Dlink.c61 struct crypto_shash *md5; in symlink_hash()
/linux-4.4.14/security/keys/encrypted-keys/
Dencrypted.c62 static struct crypto_shash *hashalg;
63 static struct crypto_shash *hmacalg;
324 static struct sdesc *alloc_sdesc(struct crypto_shash *alg) in alloc_sdesc()
/linux-4.4.14/security/keys/
Dtrusted.c42 static struct crypto_shash *hashalg;
43 static struct crypto_shash *hmacalg;
45 static struct sdesc *init_sdesc(struct crypto_shash *alg) in init_sdesc()
/linux-4.4.14/crypto/asymmetric_keys/
Dx509_public_key.c160 struct crypto_shash *tfm; in x509_get_sig_params()
Dpkcs7_verify.c28 struct crypto_shash *tfm; in pkcs7_digest()
Dverify_pefile.c325 struct crypto_shash *tfm; in pefile_digest_pe()
/linux-4.4.14/drivers/crypto/nx/
Dnx-aes-xcbc.c40 static int nx_xcbc_set_key(struct crypto_shash *desc, in nx_xcbc_set_key()
/linux-4.4.14/net/bluetooth/
Damp.c137 struct crypto_shash *tfm; in hmac_sha256()
/linux-4.4.14/include/linux/
Djbd2.h1034 struct crypto_shash *j_chksum_driver;
/linux-4.4.14/kernel/
Dkexec_file.c551 struct crypto_shash *tfm; in kexec_calculate_store_digests()
/linux-4.4.14/drivers/md/
Ddm-crypt.c99 struct crypto_shash *hash_tfm;
105 struct crypto_shash *crc32_tfm;
Ddm-verity.c58 struct crypto_shash *tfm;
/linux-4.4.14/drivers/crypto/qat/qat_common/
Dqat_algs.c112 struct crypto_shash *hash_tfm;
/linux-4.4.14/fs/ext4/
Dext4.h1433 struct crypto_shash *s_chksum_driver;