Home
last modified time | relevance | path

Searched refs:shash_desc (Results 1 – 102 of 102) sorted by relevance

/linux-4.1.27/drivers/staging/skein/
Dskein_generic.c24 static int skein256_init(struct shash_desc *desc) in skein256_init()
30 static int skein256_update(struct shash_desc *desc, const u8 *data, in skein256_update()
37 static int skein256_final(struct shash_desc *desc, u8 *out) in skein256_final()
43 static int skein256_export(struct shash_desc *desc, void *out) in skein256_export()
51 static int skein256_import(struct shash_desc *desc, const void *in) in skein256_import()
59 static int skein512_init(struct shash_desc *desc) in skein512_init()
65 static int skein512_update(struct shash_desc *desc, const u8 *data, in skein512_update()
72 static int skein512_final(struct shash_desc *desc, u8 *out) in skein512_final()
78 static int skein512_export(struct shash_desc *desc, void *out) in skein512_export()
86 static int skein512_import(struct shash_desc *desc, const void *in) in skein512_import()
[all …]
/linux-4.1.27/include/crypto/
Dhash.h137 struct shash_desc { struct
145 char __##shash##_desc[sizeof(struct shash_desc) + \ argument
147 struct shash_desc *shash = (struct shash_desc *)__##shash##_desc
167 int (*init)(struct shash_desc *desc);
168 int (*update)(struct shash_desc *desc, const u8 *data,
170 int (*final)(struct shash_desc *desc, u8 *out);
171 int (*finup)(struct shash_desc *desc, const u8 *data,
173 int (*digest)(struct shash_desc *desc, const u8 *data,
175 int (*export)(struct shash_desc *desc, void *out);
176 int (*import)(struct shash_desc *desc, const void *in);
[all …]
Dsha.h85 struct shash_desc;
87 extern int crypto_sha1_update(struct shash_desc *desc, const u8 *data,
90 extern int crypto_sha1_finup(struct shash_desc *desc, const u8 *data,
93 extern int crypto_sha256_update(struct shash_desc *desc, const u8 *data,
96 extern int crypto_sha256_finup(struct shash_desc *desc, const u8 *data,
99 extern int crypto_sha512_update(struct shash_desc *desc, const u8 *data,
102 extern int crypto_sha512_finup(struct shash_desc *desc, const u8 *data,
Dsha256_base.h21 static inline int sha224_base_init(struct shash_desc *desc) in sha224_base_init()
38 static inline int sha256_base_init(struct shash_desc *desc) in sha256_base_init()
55 static inline int sha256_base_do_update(struct shash_desc *desc, in sha256_base_do_update()
93 static inline int sha256_base_do_finalize(struct shash_desc *desc, in sha256_base_do_finalize()
116 static inline int sha256_base_finish(struct shash_desc *desc, u8 *out) in sha256_base_finish()
Dsha512_base.h21 static inline int sha384_base_init(struct shash_desc *desc) in sha384_base_init()
38 static inline int sha512_base_init(struct shash_desc *desc) in sha512_base_init()
55 static inline int sha512_base_do_update(struct shash_desc *desc, in sha512_base_do_update()
95 static inline int sha512_base_do_finalize(struct shash_desc *desc, in sha512_base_do_finalize()
119 static inline int sha512_base_finish(struct shash_desc *desc, u8 *out) in sha512_base_finish()
Dsha1_base.h20 static inline int sha1_base_init(struct shash_desc *desc) in sha1_base_init()
34 static inline int sha1_base_do_update(struct shash_desc *desc, in sha1_base_do_update()
72 static inline int sha1_base_do_finalize(struct shash_desc *desc, in sha1_base_do_finalize()
95 static inline int sha1_base_finish(struct shash_desc *desc, u8 *out) in sha1_base_finish()
Dmcryptd.h62 struct shash_desc desc;
68 struct shash_desc *mcryptd_shash_desc(struct ahash_request *req);
Dcryptd.h49 struct shash_desc *cryptd_shash_desc(struct ahash_request *req);
/linux-4.1.27/crypto/
Dshash.c74 static int shash_update_unaligned(struct shash_desc *desc, const u8 *data, in shash_update_unaligned()
98 int crypto_shash_update(struct shash_desc *desc, const u8 *data, in crypto_shash_update()
112 static int shash_final_unaligned(struct shash_desc *desc, u8 *out) in shash_final_unaligned()
134 int crypto_shash_final(struct shash_desc *desc, u8 *out) in crypto_shash_final()
147 static int shash_finup_unaligned(struct shash_desc *desc, const u8 *data, in shash_finup_unaligned()
154 int crypto_shash_finup(struct shash_desc *desc, const u8 *data, in crypto_shash_finup()
168 static int shash_digest_unaligned(struct shash_desc *desc, const u8 *data, in shash_digest_unaligned()
175 int crypto_shash_digest(struct shash_desc *desc, const u8 *data, in crypto_shash_digest()
189 static int shash_default_export(struct shash_desc *desc, void *out) in shash_default_export()
195 static int shash_default_import(struct shash_desc *desc, const void *in) in shash_default_import()
[all …]
Dhmac.c89 static int hmac_export(struct shash_desc *pdesc, void *out) in hmac_export()
91 struct shash_desc *desc = shash_desc_ctx(pdesc); in hmac_export()
98 static int hmac_import(struct shash_desc *pdesc, const void *in) in hmac_import()
100 struct shash_desc *desc = shash_desc_ctx(pdesc); in hmac_import()
109 static int hmac_init(struct shash_desc *pdesc) in hmac_init()
114 static int hmac_update(struct shash_desc *pdesc, in hmac_update()
117 struct shash_desc *desc = shash_desc_ctx(pdesc); in hmac_update()
124 static int hmac_final(struct shash_desc *pdesc, u8 *out) in hmac_final()
130 struct shash_desc *desc = shash_desc_ctx(pdesc); in hmac_final()
139 static int hmac_finup(struct shash_desc *pdesc, const u8 *data, in hmac_finup()
[all …]
Dcrct10dif_generic.c42 static int chksum_init(struct shash_desc *desc) in chksum_init()
51 static int chksum_update(struct shash_desc *desc, const u8 *data, in chksum_update()
60 static int chksum_final(struct shash_desc *desc, u8 *out) in chksum_final()
75 static int chksum_finup(struct shash_desc *desc, const u8 *data, in chksum_finup()
83 static int chksum_digest(struct shash_desc *desc, const u8 *data, in chksum_digest()
Dcrc32.c76 static int crc32_init(struct shash_desc *desc) in crc32_init()
86 static int crc32_update(struct shash_desc *desc, const u8 *data, in crc32_update()
103 static int crc32_finup(struct shash_desc *desc, const u8 *data, in crc32_finup()
109 static int crc32_final(struct shash_desc *desc, u8 *out) in crc32_final()
117 static int crc32_digest(struct shash_desc *desc, const u8 *data, in crc32_digest()
Dcrc32c_generic.c61 static int chksum_init(struct shash_desc *desc) in chksum_init()
89 static int chksum_update(struct shash_desc *desc, const u8 *data, in chksum_update()
98 static int chksum_final(struct shash_desc *desc, u8 *out) in chksum_final()
112 static int chksum_finup(struct shash_desc *desc, const u8 *data, in chksum_finup()
120 static int chksum_digest(struct shash_desc *desc, const u8 *data, in chksum_digest()
Dmd5.c50 static int md5_init(struct shash_desc *desc) in md5_init()
63 static int md5_update(struct shash_desc *desc, const u8 *data, unsigned int len) in md5_update()
95 static int md5_final(struct shash_desc *desc, u8 *out) in md5_final()
123 static int md5_export(struct shash_desc *desc, void *out) in md5_export()
131 static int md5_import(struct shash_desc *desc, const void *in) in md5_import()
Dsha1_generic.c41 int crypto_sha1_update(struct shash_desc *desc, const u8 *data, in crypto_sha1_update()
48 static int sha1_final(struct shash_desc *desc, u8 *out) in sha1_final()
54 int crypto_sha1_finup(struct shash_desc *desc, const u8 *data, in crypto_sha1_finup()
Dcrypto_null.c38 static int null_init(struct shash_desc *desc) in null_init()
43 static int null_update(struct shash_desc *desc, const u8 *data, in null_update()
49 static int null_final(struct shash_desc *desc, u8 *out) in null_final()
54 static int null_digest(struct shash_desc *desc, const u8 *data, in null_digest()
Dghash-generic.c35 static int ghash_init(struct shash_desc *desc) in ghash_init()
63 static int ghash_update(struct shash_desc *desc, in ghash_update()
119 static int ghash_final(struct shash_desc *desc, u8 *dst) in ghash_final()
Dtgr192.c498 static int tgr192_init(struct shash_desc *desc) in tgr192_init()
514 static int tgr192_update(struct shash_desc *desc, const u8 *inbuf, in tgr192_update()
555 static int tgr192_final(struct shash_desc *desc, u8 * out) in tgr192_final()
609 static int tgr160_final(struct shash_desc *desc, u8 * out) in tgr160_final()
620 static int tgr128_final(struct shash_desc *desc, u8 * out) in tgr128_final()
Dmichael_mic.c50 static int michael_init(struct shash_desc *desc) in michael_init()
62 static int michael_update(struct shash_desc *desc, const u8 *data, in michael_update()
103 static int michael_final(struct shash_desc *desc, u8 *out) in michael_final()
Dmcryptd.c341 struct shash_desc *desc = &rctx->desc; in mcryptd_hash_init()
449 struct shash_desc *desc = &rctx->desc; in mcryptd_hash_digest()
619 struct shash_desc *desc) in shash_ahash_mcryptd_digest()
631 struct shash_desc *desc) in shash_ahash_mcryptd_update()
643 struct shash_desc *desc) in shash_ahash_mcryptd_finup()
655 struct shash_desc *desc) in shash_ahash_mcryptd_final()
674 struct shash_desc *mcryptd_shash_desc(struct ahash_request *req) in mcryptd_shash_desc()
Dwp512.c989 static int wp512_init(struct shash_desc *desc) { in wp512_init()
1003 static int wp512_update(struct shash_desc *desc, const u8 *source, in wp512_update()
1065 static int wp512_final(struct shash_desc *desc, u8 *out) in wp512_final()
1100 static int wp384_final(struct shash_desc *desc, u8 *out) in wp384_final()
1111 static int wp256_final(struct shash_desc *desc, u8 *out) in wp256_final()
Dxcbc.c82 static int crypto_xcbc_digest_init(struct shash_desc *pdesc) in crypto_xcbc_digest_init()
95 static int crypto_xcbc_digest_update(struct shash_desc *pdesc, const u8 *p, in crypto_xcbc_digest_update()
142 static int crypto_xcbc_digest_final(struct shash_desc *pdesc, u8 *out) in crypto_xcbc_digest_final()
Dsha512_generic.c143 int crypto_sha512_update(struct shash_desc *desc, const u8 *data, in crypto_sha512_update()
150 static int sha512_final(struct shash_desc *desc, u8 *hash) in sha512_final()
156 int crypto_sha512_finup(struct shash_desc *desc, const u8 *data, in crypto_sha512_finup()
Dcmac.c108 static int crypto_cmac_digest_init(struct shash_desc *pdesc) in crypto_cmac_digest_init()
121 static int crypto_cmac_digest_update(struct shash_desc *pdesc, const u8 *p, in crypto_cmac_digest_update()
168 static int crypto_cmac_digest_final(struct shash_desc *pdesc, u8 *out) in crypto_cmac_digest_final()
Dmd4.c156 static int md4_init(struct shash_desc *desc) in md4_init()
169 static int md4_update(struct shash_desc *desc, const u8 *data, unsigned int len) in md4_update()
201 static int md4_final(struct shash_desc *desc, u8 *out) in md4_final()
Drmd128.c220 static int rmd128_init(struct shash_desc *desc) in rmd128_init()
236 static int rmd128_update(struct shash_desc *desc, const u8 *data, in rmd128_update()
272 static int rmd128_final(struct shash_desc *desc, u8 *out) in rmd128_final()
Drmd256.c235 static int rmd256_init(struct shash_desc *desc) in rmd256_init()
255 static int rmd256_update(struct shash_desc *desc, const u8 *data, in rmd256_update()
291 static int rmd256_final(struct shash_desc *desc, u8 *out) in rmd256_final()
Dcryptd.c74 struct shash_desc desc;
456 struct shash_desc *desc = &rctx->desc; in cryptd_hash_init()
556 struct shash_desc *desc = &rctx->desc; in cryptd_hash_digest()
918 struct shash_desc *cryptd_shash_desc(struct ahash_request *req) in cryptd_shash_desc()
Dvmac.c557 static int vmac_init(struct shash_desc *pdesc) in vmac_init()
562 static int vmac_update(struct shash_desc *pdesc, const u8 *p, in vmac_update()
598 static int vmac_final(struct shash_desc *pdesc, u8 *out) in vmac_final()
Dsha256_generic.c227 int crypto_sha256_update(struct shash_desc *desc, const u8 *data, in crypto_sha256_update()
234 static int sha256_final(struct shash_desc *desc, u8 *out) in sha256_final()
240 int crypto_sha256_finup(struct shash_desc *desc, const u8 *data, in crypto_sha256_finup()
Drmd160.c263 static int rmd160_init(struct shash_desc *desc) in rmd160_init()
280 static int rmd160_update(struct shash_desc *desc, const u8 *data, in rmd160_update()
316 static int rmd160_final(struct shash_desc *desc, u8 *out) in rmd160_final()
Drmd320.c282 static int rmd320_init(struct shash_desc *desc) in rmd320_init()
304 static int rmd320_update(struct shash_desc *desc, const u8 *data, in rmd320_update()
340 static int rmd320_final(struct shash_desc *desc, u8 *out) in rmd320_final()
Ddrbg.c1576 struct shash_desc shash;
1591 sdesc = kzalloc(sizeof(struct shash_desc) + crypto_shash_descsize(tfm), in drbg_init_hash_kernel()
/linux-4.1.27/arch/x86/crypto/
Dcrc32c-intel_glue.c128 static int crc32c_intel_init(struct shash_desc *desc) in crc32c_intel_init()
138 static int crc32c_intel_update(struct shash_desc *desc, const u8 *data, in crc32c_intel_update()
154 static int crc32c_intel_finup(struct shash_desc *desc, const u8 *data, in crc32c_intel_finup()
160 static int crc32c_intel_final(struct shash_desc *desc, u8 *out) in crc32c_intel_final()
168 static int crc32c_intel_digest(struct shash_desc *desc, const u8 *data, in crc32c_intel_digest()
185 static int crc32c_pcl_intel_update(struct shash_desc *desc, const u8 *data, in crc32c_pcl_intel_update()
216 static int crc32c_pcl_intel_finup(struct shash_desc *desc, const u8 *data, in crc32c_pcl_intel_finup()
222 static int crc32c_pcl_intel_digest(struct shash_desc *desc, const u8 *data, in crc32c_pcl_intel_digest()
Dcrct10dif-pclmul_glue.c48 static int chksum_init(struct shash_desc *desc) in chksum_init()
57 static int chksum_update(struct shash_desc *desc, const u8 *data, in chksum_update()
71 static int chksum_final(struct shash_desc *desc, u8 *out) in chksum_final()
91 static int chksum_finup(struct shash_desc *desc, const u8 *data, in chksum_finup()
99 static int chksum_digest(struct shash_desc *desc, const u8 *data, in chksum_digest()
Dcrc32-pclmul_glue.c104 static int crc32_pclmul_init(struct shash_desc *desc) in crc32_pclmul_init()
114 static int crc32_pclmul_update(struct shash_desc *desc, const u8 *data, in crc32_pclmul_update()
131 static int crc32_pclmul_finup(struct shash_desc *desc, const u8 *data, in crc32_pclmul_finup()
137 static int crc32_pclmul_final(struct shash_desc *desc, u8 *out) in crc32_pclmul_final()
145 static int crc32_pclmul_digest(struct shash_desc *desc, const u8 *data, in crc32_pclmul_digest()
Dghash-clmulni-intel_glue.c46 static int ghash_init(struct shash_desc *desc) in ghash_init()
80 static int ghash_update(struct shash_desc *desc, in ghash_update()
134 static int ghash_final(struct shash_desc *desc, u8 *dst) in ghash_final()
177 struct shash_desc *desc = cryptd_shash_desc(cryptd_req); in ghash_async_init()
199 struct shash_desc *desc = cryptd_shash_desc(cryptd_req); in ghash_async_update()
217 struct shash_desc *desc = cryptd_shash_desc(cryptd_req); in ghash_async_final()
234 struct shash_desc *desc = cryptd_shash_desc(cryptd_req); in ghash_async_digest()
Dsha1_ssse3_glue.c52 static int sha1_ssse3_update(struct shash_desc *desc, const u8 *data, in sha1_ssse3_update()
72 static int sha1_ssse3_finup(struct shash_desc *desc, const u8 *data, in sha1_ssse3_finup()
89 static int sha1_ssse3_final(struct shash_desc *desc, u8 *out) in sha1_ssse3_final()
Dsha256_ssse3_glue.c58 static int sha256_ssse3_update(struct shash_desc *desc, const u8 *data, in sha256_ssse3_update()
78 static int sha256_ssse3_finup(struct shash_desc *desc, const u8 *data, in sha256_ssse3_finup()
95 static int sha256_ssse3_final(struct shash_desc *desc, u8 *out) in sha256_ssse3_final()
Dsha512_ssse3_glue.c57 static int sha512_ssse3_update(struct shash_desc *desc, const u8 *data, in sha512_ssse3_update()
77 static int sha512_ssse3_finup(struct shash_desc *desc, const u8 *data, in sha512_ssse3_finup()
94 static int sha512_ssse3_final(struct shash_desc *desc, u8 *out) in sha512_ssse3_final()
/linux-4.1.27/drivers/crypto/
Dpadlock-sha.c29 struct shash_desc fallback;
36 static int padlock_sha_init(struct shash_desc *desc) in padlock_sha_init()
46 static int padlock_sha_update(struct shash_desc *desc, in padlock_sha_update()
55 static int padlock_sha_export(struct shash_desc *desc, void *out) in padlock_sha_export()
62 static int padlock_sha_import(struct shash_desc *desc, const void *in) in padlock_sha_import()
79 static int padlock_sha1_finup(struct shash_desc *desc, const u8 *in, in padlock_sha1_finup()
138 static int padlock_sha1_final(struct shash_desc *desc, u8 *out) in padlock_sha1_final()
145 static int padlock_sha256_finup(struct shash_desc *desc, const u8 *in, in padlock_sha256_finup()
204 static int padlock_sha256_final(struct shash_desc *desc, u8 *out) in padlock_sha256_final()
294 static int padlock_sha1_init_nano(struct shash_desc *desc) in padlock_sha1_init_nano()
[all …]
Dmv_cesa.c389 struct shash_desc *desc) in mv_hash_import_sha1_ctx()
/linux-4.1.27/drivers/staging/lustre/lustre/libcfs/linux/
Dlinux-crypto-adler.c67 static int adler32_init(struct shash_desc *desc) in adler32_init()
77 static int adler32_update(struct shash_desc *desc, const u8 *data, in adler32_update()
92 static int adler32_finup(struct shash_desc *desc, const u8 *data, in adler32_finup()
98 static int adler32_final(struct shash_desc *desc, u8 *out) in adler32_final()
106 static int adler32_digest(struct shash_desc *desc, const u8 *data, in adler32_digest()
/linux-4.1.27/arch/arm64/crypto/
Dcrc32-arm64.c100 static int chksum_init(struct shash_desc *desc) in chksum_init()
128 static int chksum_update(struct shash_desc *desc, const u8 *data, in chksum_update()
137 static int chksumc_update(struct shash_desc *desc, const u8 *data, in chksumc_update()
146 static int chksum_final(struct shash_desc *desc, u8 *out) in chksum_final()
154 static int chksumc_final(struct shash_desc *desc, u8 *out) in chksumc_final()
174 static int chksum_finup(struct shash_desc *desc, const u8 *data, in chksum_finup()
182 static int chksumc_finup(struct shash_desc *desc, const u8 *data, in chksumc_finup()
190 static int chksum_digest(struct shash_desc *desc, const u8 *data, in chksum_digest()
198 static int chksumc_digest(struct shash_desc *desc, const u8 *data, in chksumc_digest()
Dsha1-ce-glue.c35 static int sha1_ce_update(struct shash_desc *desc, const u8 *data, in sha1_ce_update()
49 static int sha1_ce_finup(struct shash_desc *desc, const u8 *data, in sha1_ce_finup()
75 static int sha1_ce_final(struct shash_desc *desc, u8 *out) in sha1_ce_final()
Dsha2-ce-glue.c35 static int sha256_ce_update(struct shash_desc *desc, const u8 *data, in sha256_ce_update()
49 static int sha256_ce_finup(struct shash_desc *desc, const u8 *data, in sha256_ce_finup()
76 static int sha256_ce_final(struct shash_desc *desc, u8 *out) in sha256_ce_final()
Dghash-ce-glue.c39 static int ghash_init(struct shash_desc *desc) in ghash_init()
47 static int ghash_update(struct shash_desc *desc, const u8 *src, in ghash_update()
82 static int ghash_final(struct shash_desc *desc, u8 *dst) in ghash_final()
/linux-4.1.27/arch/arm/crypto/
Dsha512_neon_glue.c79 static int sha512_neon_init(struct shash_desc *desc) in sha512_neon_init()
96 static int __sha512_neon_update(struct shash_desc *desc, const u8 *data, in __sha512_neon_update()
126 static int sha512_neon_update(struct shash_desc *desc, const u8 *data, in sha512_neon_update()
156 static int sha512_neon_final(struct shash_desc *desc, u8 *out) in sha512_neon_final()
201 static int sha512_neon_export(struct shash_desc *desc, void *out) in sha512_neon_export()
210 static int sha512_neon_import(struct shash_desc *desc, const void *in) in sha512_neon_import()
219 static int sha384_neon_init(struct shash_desc *desc) in sha384_neon_init()
237 static int sha384_neon_final(struct shash_desc *desc, u8 *hash) in sha384_neon_final()
Dsha1_glue.c33 int sha1_update_arm(struct shash_desc *desc, const u8 *data, in sha1_update_arm()
44 static int sha1_final(struct shash_desc *desc, u8 *out) in sha1_final()
50 int sha1_finup_arm(struct shash_desc *desc, const u8 *data, in sha1_finup_arm()
Dghash-ce-glue.c46 static int ghash_init(struct shash_desc *desc) in ghash_init()
54 static int ghash_update(struct shash_desc *desc, const u8 *src, in ghash_update()
89 static int ghash_final(struct shash_desc *desc, u8 *dst) in ghash_final()
163 struct shash_desc *desc = cryptd_shash_desc(cryptd_req); in ghash_async_init()
185 struct shash_desc *desc = cryptd_shash_desc(cryptd_req); in ghash_async_update()
203 struct shash_desc *desc = cryptd_shash_desc(cryptd_req); in ghash_async_final()
220 struct shash_desc *desc = cryptd_shash_desc(cryptd_req); in ghash_async_digest()
Dsha1-ce-glue.c30 static int sha1_ce_update(struct shash_desc *desc, const u8 *data, in sha1_ce_update()
46 static int sha1_ce_finup(struct shash_desc *desc, const u8 *data, in sha1_ce_finup()
61 static int sha1_ce_final(struct shash_desc *desc, u8 *out) in sha1_ce_final()
Dsha256_neon_glue.c32 static int sha256_update(struct shash_desc *desc, const u8 *data, in sha256_update()
49 static int sha256_finup(struct shash_desc *desc, const u8 *data, in sha256_finup()
66 static int sha256_final(struct shash_desc *desc, u8 *out) in sha256_final()
Dsha1_neon_glue.c37 static int sha1_neon_update(struct shash_desc *desc, const u8 *data, in sha1_neon_update()
54 static int sha1_neon_finup(struct shash_desc *desc, const u8 *data, in sha1_neon_finup()
70 static int sha1_neon_final(struct shash_desc *desc, u8 *out) in sha1_neon_final()
Dsha1.h7 extern int sha1_update_arm(struct shash_desc *desc, const u8 *data,
10 extern int sha1_finup_arm(struct shash_desc *desc, const u8 *data,
Dsha256_glue.h8 int crypto_sha256_arm_update(struct shash_desc *desc, const u8 *data,
11 int crypto_sha256_arm_finup(struct shash_desc *desc, const u8 *data,
Dsha2-ce-glue.c31 static int sha2_ce_update(struct shash_desc *desc, const u8 *data, in sha2_ce_update()
48 static int sha2_ce_finup(struct shash_desc *desc, const u8 *data, in sha2_ce_finup()
64 static int sha2_ce_final(struct shash_desc *desc, u8 *out) in sha2_ce_final()
Dsha256_glue.c36 int crypto_sha256_arm_update(struct shash_desc *desc, const u8 *data, in crypto_sha256_arm_update()
47 static int sha256_final(struct shash_desc *desc, u8 *out) in sha256_final()
54 int crypto_sha256_arm_finup(struct shash_desc *desc, const u8 *data, in crypto_sha256_arm_finup()
/linux-4.1.27/include/crypto/internal/
Dhash.h116 int shash_ahash_update(struct ahash_request *req, struct shash_desc *desc);
117 int shash_ahash_finup(struct ahash_request *req, struct shash_desc *desc);
118 int shash_ahash_digest(struct ahash_request *req, struct shash_desc *desc);
121 struct shash_desc *desc);
123 struct shash_desc *desc);
125 struct shash_desc *desc);
127 struct shash_desc *desc);
/linux-4.1.27/arch/s390/crypto/
Dsha.h32 struct shash_desc;
34 int s390_sha_update(struct shash_desc *desc, const u8 *data, unsigned int len);
35 int s390_sha_final(struct shash_desc *desc, u8 *out);
Dsha512_s390.c25 static int sha512_init(struct shash_desc *desc) in sha512_init()
43 static int sha512_export(struct shash_desc *desc, void *out) in sha512_export()
55 static int sha512_import(struct shash_desc *desc, const void *in) in sha512_import()
91 static int sha384_init(struct shash_desc *desc) in sha384_init()
Dsha256_s390.c24 static int sha256_init(struct shash_desc *desc) in sha256_init()
42 static int sha256_export(struct shash_desc *desc, void *out) in sha256_export()
53 static int sha256_import(struct shash_desc *desc, const void *in) in sha256_import()
84 static int sha224_init(struct shash_desc *desc) in sha224_init()
Dsha1_s390.c34 static int sha1_init(struct shash_desc *desc) in sha1_init()
49 static int sha1_export(struct shash_desc *desc, void *out) in sha1_export()
60 static int sha1_import(struct shash_desc *desc, const void *in) in sha1_import()
Dghash_s390.c29 static int ghash_init(struct shash_desc *desc) in ghash_init()
55 static int ghash_update(struct shash_desc *desc, in ghash_update()
118 static int ghash_final(struct shash_desc *desc, u8 *dst) in ghash_final()
Dsha_common.c21 int s390_sha_update(struct shash_desc *desc, const u8 *data, unsigned int len) in s390_sha_update()
63 int s390_sha_final(struct shash_desc *desc, u8 *out) in s390_sha_final()
/linux-4.1.27/arch/sparc/crypto/
Dsha256_glue.c29 static int sha224_sparc64_init(struct shash_desc *desc) in sha224_sparc64_init()
45 static int sha256_sparc64_init(struct shash_desc *desc) in sha256_sparc64_init()
82 static int sha256_sparc64_update(struct shash_desc *desc, const u8 *data, in sha256_sparc64_update()
98 static int sha256_sparc64_final(struct shash_desc *desc, u8 *out) in sha256_sparc64_final()
131 static int sha224_sparc64_final(struct shash_desc *desc, u8 *hash) in sha224_sparc64_final()
143 static int sha256_sparc64_export(struct shash_desc *desc, void *out) in sha256_sparc64_export()
151 static int sha256_sparc64_import(struct shash_desc *desc, const void *in) in sha256_sparc64_import()
Dcrc32c_glue.c43 static int crc32c_sparc64_init(struct shash_desc *desc) in crc32c_sparc64_init()
69 static int crc32c_sparc64_update(struct shash_desc *desc, const u8 *data, in crc32c_sparc64_update()
90 static int crc32c_sparc64_finup(struct shash_desc *desc, const u8 *data, in crc32c_sparc64_finup()
96 static int crc32c_sparc64_final(struct shash_desc *desc, u8 *out) in crc32c_sparc64_final()
104 static int crc32c_sparc64_digest(struct shash_desc *desc, const u8 *data, in crc32c_sparc64_digest()
Dmd5_glue.c32 static int md5_sparc64_init(struct shash_desc *desc) in md5_sparc64_init()
66 static int md5_sparc64_update(struct shash_desc *desc, const u8 *data, in md5_sparc64_update()
83 static int md5_sparc64_final(struct shash_desc *desc, u8 *out) in md5_sparc64_final()
116 static int md5_sparc64_export(struct shash_desc *desc, void *out) in md5_sparc64_export()
125 static int md5_sparc64_import(struct shash_desc *desc, const void *in) in md5_sparc64_import()
Dsha1_glue.c29 static int sha1_sparc64_init(struct shash_desc *desc) in sha1_sparc64_init()
61 static int sha1_sparc64_update(struct shash_desc *desc, const u8 *data, in sha1_sparc64_update()
78 static int sha1_sparc64_final(struct shash_desc *desc, u8 *out) in sha1_sparc64_final()
111 static int sha1_sparc64_export(struct shash_desc *desc, void *out) in sha1_sparc64_export()
120 static int sha1_sparc64_import(struct shash_desc *desc, const void *in) in sha1_sparc64_import()
Dsha512_glue.c28 static int sha512_sparc64_init(struct shash_desc *desc) in sha512_sparc64_init()
44 static int sha384_sparc64_init(struct shash_desc *desc) in sha384_sparc64_init()
82 static int sha512_sparc64_update(struct shash_desc *desc, const u8 *data, in sha512_sparc64_update()
99 static int sha512_sparc64_final(struct shash_desc *desc, u8 *out) in sha512_sparc64_final()
135 static int sha384_sparc64_final(struct shash_desc *desc, u8 *hash) in sha384_sparc64_final()
/linux-4.1.27/arch/powerpc/crypto/
Dsha1.c31 static int sha1_init(struct shash_desc *desc) in sha1_init()
42 static int sha1_update(struct shash_desc *desc, const u8 *data, in sha1_update()
79 static int sha1_final(struct shash_desc *desc, u8 *out) in sha1_final()
107 static int sha1_export(struct shash_desc *desc, void *out) in sha1_export()
115 static int sha1_import(struct shash_desc *desc, const void *in) in sha1_import()
Dsha256-spe-glue.c64 static int ppc_spe_sha256_init(struct shash_desc *desc) in ppc_spe_sha256_init()
81 static int ppc_spe_sha224_init(struct shash_desc *desc) in ppc_spe_sha224_init()
98 static int ppc_spe_sha256_update(struct shash_desc *desc, const u8 *data, in ppc_spe_sha256_update()
143 static int ppc_spe_sha256_final(struct shash_desc *desc, u8 *out) in ppc_spe_sha256_final()
183 static int ppc_spe_sha224_final(struct shash_desc *desc, u8 *out) in ppc_spe_sha224_final()
204 static int ppc_spe_sha256_export(struct shash_desc *desc, void *out) in ppc_spe_sha256_export()
212 static int ppc_spe_sha256_import(struct shash_desc *desc, const void *in) in ppc_spe_sha256_import()
Dmd5-glue.c36 static int ppc_md5_init(struct shash_desc *desc) in ppc_md5_init()
49 static int ppc_md5_update(struct shash_desc *desc, const u8 *data, in ppc_md5_update()
81 static int ppc_md5_final(struct shash_desc *desc, u8 *out) in ppc_md5_final()
113 static int ppc_md5_export(struct shash_desc *desc, void *out) in ppc_md5_export()
121 static int ppc_md5_import(struct shash_desc *desc, const void *in) in ppc_md5_import()
Dsha1-spe-glue.c63 static int ppc_spe_sha1_init(struct shash_desc *desc) in ppc_spe_sha1_init()
77 static int ppc_spe_sha1_update(struct shash_desc *desc, const u8 *data, in ppc_spe_sha1_update()
121 static int ppc_spe_sha1_final(struct shash_desc *desc, u8 *out) in ppc_spe_sha1_final()
158 static int ppc_spe_sha1_export(struct shash_desc *desc, void *out) in ppc_spe_sha1_export()
166 static int ppc_spe_sha1_import(struct shash_desc *desc, const void *in) in ppc_spe_sha1_import()
/linux-4.1.27/arch/mips/cavium-octeon/crypto/
Docteon-sha256.c70 static int octeon_sha224_init(struct shash_desc *desc) in octeon_sha224_init()
87 static int octeon_sha256_init(struct shash_desc *desc) in octeon_sha256_init()
135 static int octeon_sha256_update(struct shash_desc *desc, const u8 *data, in octeon_sha256_update()
161 static int octeon_sha256_final(struct shash_desc *desc, u8 *out) in octeon_sha256_final()
201 static int octeon_sha224_final(struct shash_desc *desc, u8 *hash) in octeon_sha224_final()
213 static int octeon_sha256_export(struct shash_desc *desc, void *out) in octeon_sha256_export()
221 static int octeon_sha256_import(struct shash_desc *desc, const void *in) in octeon_sha256_import()
Docteon-md5.c68 static int octeon_md5_init(struct shash_desc *desc) in octeon_md5_init()
81 static int octeon_md5_update(struct shash_desc *desc, const u8 *data, in octeon_md5_update()
121 static int octeon_md5_final(struct shash_desc *desc, u8 *out) in octeon_md5_final()
156 static int octeon_md5_export(struct shash_desc *desc, void *out) in octeon_md5_export()
164 static int octeon_md5_import(struct shash_desc *desc, const void *in) in octeon_md5_import()
Docteon-sha1.c78 static int octeon_sha1_init(struct shash_desc *desc) in octeon_sha1_init()
123 static int octeon_sha1_update(struct shash_desc *desc, const u8 *data, in octeon_sha1_update()
149 static int octeon_sha1_final(struct shash_desc *desc, u8 *out) in octeon_sha1_final()
189 static int octeon_sha1_export(struct shash_desc *desc, void *out) in octeon_sha1_export()
197 static int octeon_sha1_import(struct shash_desc *desc, const void *in) in octeon_sha1_import()
Docteon-sha512.c81 static int octeon_sha512_init(struct shash_desc *desc) in octeon_sha512_init()
98 static int octeon_sha384_init(struct shash_desc *desc) in octeon_sha384_init()
149 static int octeon_sha512_update(struct shash_desc *desc, const u8 *data, in octeon_sha512_update()
175 static int octeon_sha512_final(struct shash_desc *desc, u8 *hash) in octeon_sha512_final()
216 static int octeon_sha384_final(struct shash_desc *desc, u8 *hash) in octeon_sha384_final()
/linux-4.1.27/security/integrity/evm/
Devm_crypto.c35 static struct shash_desc *init_desc(char type) in init_desc()
40 struct shash_desc *desc; in init_desc()
97 static void hmac_add_misc(struct shash_desc *desc, struct inode *inode, in hmac_add_misc()
135 struct shash_desc *desc; in evm_calc_hmac_or_hash()
222 struct shash_desc *desc; in evm_init_hmac()
/linux-4.1.27/drivers/crypto/vmx/
Dghash.c53 struct shash_desc fallback_desc;
97 static int p8_ghash_init(struct shash_desc *desc) in p8_ghash_init()
126 static int p8_ghash_update(struct shash_desc *desc, in p8_ghash_update()
174 static int p8_ghash_final(struct shash_desc *desc, u8 *out) in p8_ghash_final()
/linux-4.1.27/drivers/crypto/nx/
Dnx-sha256.c50 static int nx_sha256_init(struct shash_desc *desc) { in nx_sha256_init()
68 static int nx_sha256_update(struct shash_desc *desc, const u8 *data, in nx_sha256_update()
189 static int nx_sha256_final(struct shash_desc *desc, u8 *out) in nx_sha256_final()
260 static int nx_sha256_export(struct shash_desc *desc, void *out) in nx_sha256_export()
269 static int nx_sha256_import(struct shash_desc *desc, const void *in) in nx_sha256_import()
Dnx-sha512.c49 static int nx_sha512_init(struct shash_desc *desc) in nx_sha512_init()
68 static int nx_sha512_update(struct shash_desc *desc, const u8 *data, in nx_sha512_update()
192 static int nx_sha512_final(struct shash_desc *desc, u8 *out) in nx_sha512_final()
266 static int nx_sha512_export(struct shash_desc *desc, void *out) in nx_sha512_export()
275 static int nx_sha512_import(struct shash_desc *desc, const void *in) in nx_sha512_import()
Dnx-aes-xcbc.c71 static int nx_xcbc_empty(struct shash_desc *desc, u8 *out) in nx_xcbc_empty()
170 static int nx_xcbc_init(struct shash_desc *desc) in nx_xcbc_init()
179 static int nx_xcbc_update(struct shash_desc *desc, in nx_xcbc_update()
307 static int nx_xcbc_final(struct shash_desc *desc, u8 *out) in nx_xcbc_final()
/linux-4.1.27/arch/x86/crypto/sha-mb/
Dsha1_mb.c85 struct shash_desc *desc; in cast_hash_to_mcryptd_ctx()
87 desc = container_of((void *) hash_ctx, struct shash_desc, __ctx); in cast_hash_to_mcryptd_ctx()
97 struct shash_desc *desc) in req_ctx_init()
349 static int sha1_mb_init(struct shash_desc *desc) in sha1_mb_init()
491 static int sha1_mb_update(struct shash_desc *desc, const u8 *data, in sha1_mb_update()
550 static int sha1_mb_finup(struct shash_desc *desc, const u8 *data, in sha1_mb_finup()
611 static int sha1_mb_final(struct shash_desc *desc, u8 *out) in sha1_mb_final()
660 static int sha1_mb_export(struct shash_desc *desc, void *out) in sha1_mb_export()
669 static int sha1_mb_import(struct shash_desc *desc, const void *in) in sha1_mb_import()
/linux-4.1.27/lib/
Dcrc-t10dif.c25 struct shash_desc shash; in crc_t10dif()
Ddigsig.c194 struct shash_desc *desc = NULL; in digsig_verify()
/linux-4.1.27/security/apparmor/
Dcrypto.c36 struct shash_desc shash; in aa_calc_profile_hash()
/linux-4.1.27/drivers/md/
Ddm-verity.c119 static struct shash_desc *io_hash_desc(struct dm_verity *v, struct dm_verity_io *io) in io_hash_desc()
121 return (struct shash_desc *)(io + 1); in io_hash_desc()
280 struct shash_desc *desc; in verity_verify_level()
360 struct shash_desc *desc; in verity_verify_io()
852 sizeof(struct shash_desc) + crypto_shash_descsize(v->tfm); in verity_ctr()
/linux-4.1.27/crypto/asymmetric_keys/
Dverify_pefile.c247 struct shash_desc *desc) in pefile_digest_pe_contents()
326 struct shash_desc *desc; in pefile_digest_pe()
Dpkcs7_verify.c29 struct shash_desc *desc; in pkcs7_digest()
Dx509_public_key.c131 struct shash_desc *desc; in x509_get_sig_params()
/linux-4.1.27/fs/cifs/
Dsmbencrypt.c147 size = sizeof(struct shash_desc) + crypto_shash_descsize(md4); in mdfour()
Dsmb2transport.c59 size = sizeof(struct shash_desc) + in smb2_crypto_shash_allocate()
98 size = sizeof(struct shash_desc) + in smb3_crypto_shash_allocate()
Dcifsencrypt.c54 size = sizeof(struct shash_desc) + in cifs_crypto_shash_md5_allocate()
663 size = sizeof(struct shash_desc) + in crypto_hmacmd5_alloc()
Dlink.c71 size = sizeof(struct shash_desc) + crypto_shash_descsize(md5); in symlink_hash()
Dcifsglob.h111 struct shash_desc shash;
/linux-4.1.27/kernel/
Dmodule_signing.c49 struct shash_desc *desc; in mod_make_digest()
Dkexec.c2184 struct shash_desc *desc; in kexec_calculate_store_digests()
/linux-4.1.27/security/keys/encrypted-keys/
Dencrypted.c58 struct shash_desc shash;
329 size = sizeof(struct shash_desc) + crypto_shash_descsize(alg); in alloc_sdesc()
/linux-4.1.27/net/bluetooth/
Damp.c137 struct shash_desc *shash; in hmac_sha256()
/linux-4.1.27/security/keys/
Dtrusted.c38 struct shash_desc shash;
50 size = sizeof(struct shash_desc) + crypto_shash_descsize(alg); in init_sdesc()
/linux-4.1.27/include/linux/
Djbd2.h1367 struct shash_desc shash; in jbd2_chksum()
/linux-4.1.27/fs/ext4/
Dext4.h1834 struct shash_desc shash; in ext4_chksum()