Searched refs:shash_desc (Results 1 - 105 of 105) sorted by relevance

/linux-4.4.14/arch/arm/crypto/
H A 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,
H A 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,
H A Dsha1-ce-glue.c30 static int sha1_ce_update(struct shash_desc *desc, const u8 *data, sha1_ce_update()
46 static int sha1_ce_finup(struct shash_desc *desc, const u8 *data, sha1_ce_finup()
61 static int sha1_ce_final(struct shash_desc *desc, u8 *out) sha1_ce_final()
H A Dsha512-neon-glue.c28 static int sha512_neon_update(struct shash_desc *desc, const u8 *data, sha512_neon_update()
45 static int sha512_neon_finup(struct shash_desc *desc, const u8 *data, sha512_neon_finup()
62 static int sha512_neon_final(struct shash_desc *desc, u8 *out) sha512_neon_final()
H A Dsha1_glue.c33 int sha1_update_arm(struct shash_desc *desc, const u8 *data, sha1_update_arm()
44 static int sha1_final(struct shash_desc *desc, u8 *out) sha1_final()
50 int sha1_finup_arm(struct shash_desc *desc, const u8 *data, sha1_finup_arm()
H A Dsha1_neon_glue.c37 static int sha1_neon_update(struct shash_desc *desc, const u8 *data, sha1_neon_update()
54 static int sha1_neon_finup(struct shash_desc *desc, const u8 *data, sha1_neon_finup()
70 static int sha1_neon_final(struct shash_desc *desc, u8 *out) sha1_neon_final()
H A Dsha2-ce-glue.c31 static int sha2_ce_update(struct shash_desc *desc, const u8 *data, sha2_ce_update()
48 static int sha2_ce_finup(struct shash_desc *desc, const u8 *data, sha2_ce_finup()
64 static int sha2_ce_final(struct shash_desc *desc, u8 *out) sha2_ce_final()
H A Dsha256_glue.c36 int crypto_sha256_arm_update(struct shash_desc *desc, const u8 *data, crypto_sha256_arm_update()
47 static int sha256_final(struct shash_desc *desc, u8 *out) sha256_final()
54 int crypto_sha256_arm_finup(struct shash_desc *desc, const u8 *data, crypto_sha256_arm_finup()
H A Dsha256_neon_glue.c32 static int sha256_update(struct shash_desc *desc, const u8 *data, sha256_update()
49 static int sha256_finup(struct shash_desc *desc, const u8 *data, sha256_finup()
66 static int sha256_final(struct shash_desc *desc, u8 *out) sha256_final()
H A Dsha512-glue.c33 int sha512_arm_update(struct shash_desc *desc, const u8 *data, sha512_arm_update()
40 int sha512_arm_final(struct shash_desc *desc, u8 *out) sha512_arm_final()
47 int sha512_arm_finup(struct shash_desc *desc, const u8 *data, sha512_arm_finup()
H A Dghash-ce-glue.c46 static int ghash_init(struct shash_desc *desc) ghash_init()
54 static int ghash_update(struct shash_desc *desc, const u8 *src, ghash_update()
89 static int ghash_final(struct shash_desc *desc, u8 *dst) ghash_final()
163 struct shash_desc *desc = cryptd_shash_desc(cryptd_req); ghash_async_init()
185 struct shash_desc *desc = cryptd_shash_desc(cryptd_req); ghash_async_update()
203 struct shash_desc *desc = cryptd_shash_desc(cryptd_req); ghash_async_final()
220 struct shash_desc *desc = cryptd_shash_desc(cryptd_req); ghash_async_digest()
/linux-4.4.14/include/crypto/
H A 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,
H A Dpoly1305.h32 int crypto_poly1305_init(struct shash_desc *desc);
37 int crypto_poly1305_update(struct shash_desc *desc,
39 int crypto_poly1305_final(struct shash_desc *desc, u8 *dst);
H A Dsha256_base.h21 static inline int sha224_base_init(struct shash_desc *desc) sha224_base_init()
38 static inline int sha256_base_init(struct shash_desc *desc) sha256_base_init()
55 static inline int sha256_base_do_update(struct shash_desc *desc, sha256_base_do_update()
93 static inline int sha256_base_do_finalize(struct shash_desc *desc, sha256_base_do_finalize()
116 static inline int sha256_base_finish(struct shash_desc *desc, u8 *out) sha256_base_finish()
H A Dsha1_base.h20 static inline int sha1_base_init(struct shash_desc *desc) sha1_base_init()
34 static inline int sha1_base_do_update(struct shash_desc *desc, sha1_base_do_update()
72 static inline int sha1_base_do_finalize(struct shash_desc *desc, sha1_base_do_finalize()
95 static inline int sha1_base_finish(struct shash_desc *desc, u8 *out) sha1_base_finish()
H A Dsha512_base.h21 static inline int sha384_base_init(struct shash_desc *desc) sha384_base_init()
38 static inline int sha512_base_init(struct shash_desc *desc) sha512_base_init()
55 static inline int sha512_base_do_update(struct shash_desc *desc, sha512_base_do_update()
95 static inline int sha512_base_do_finalize(struct shash_desc *desc, sha512_base_do_finalize()
119 static inline int sha512_base_finish(struct shash_desc *desc, u8 *out) sha512_base_finish()
H A Dmcryptd.h62 struct shash_desc desc;
68 struct shash_desc *mcryptd_shash_desc(struct ahash_request *req);
H A Dhash.h142 struct shash_desc { struct
150 char __##shash##_desc[sizeof(struct shash_desc) + \
152 struct shash_desc *shash = (struct shash_desc *)__##shash##_desc
168 * shash_desc.__ctx
172 int (*init)(struct shash_desc *desc);
173 int (*update)(struct shash_desc *desc, const u8 *data,
175 int (*final)(struct shash_desc *desc, u8 *out);
176 int (*finup)(struct shash_desc *desc, const u8 *data,
178 int (*digest)(struct shash_desc *desc, const u8 *data,
180 int (*export)(struct shash_desc *desc, void *out);
181 int (*import)(struct shash_desc *desc, const void *in);
626 * shash_desc request data structure.
733 * The operational state is defined with struct shash_desc where the size of
735 * sizeof(struct shash_desc) + crypto_shash_descsize(alg)
744 static inline void *shash_desc_ctx(struct shash_desc *desc) shash_desc_ctx()
778 int crypto_shash_digest(struct shash_desc *desc, const u8 *data,
792 static inline int crypto_shash_export(struct shash_desc *desc, void *out) crypto_shash_export()
808 static inline int crypto_shash_import(struct shash_desc *desc, const void *in) crypto_shash_import()
824 static inline int crypto_shash_init(struct shash_desc *desc) crypto_shash_init()
840 int crypto_shash_update(struct shash_desc *desc, const u8 *data,
856 int crypto_shash_final(struct shash_desc *desc, u8 *out);
872 int crypto_shash_finup(struct shash_desc *desc, const u8 *data,
H A Dcryptd.h50 struct shash_desc *cryptd_shash_desc(struct ahash_request *req);
/linux-4.4.14/drivers/staging/skein/
H A Dskein_generic.c23 static int skein256_init(struct shash_desc *desc) skein256_init()
29 static int skein256_update(struct shash_desc *desc, const u8 *data, skein256_update()
36 static int skein256_final(struct shash_desc *desc, u8 *out) skein256_final()
42 static int skein256_export(struct shash_desc *desc, void *out) skein256_export()
50 static int skein256_import(struct shash_desc *desc, const void *in) skein256_import()
58 static int skein512_init(struct shash_desc *desc) skein512_init()
64 static int skein512_update(struct shash_desc *desc, const u8 *data, skein512_update()
71 static int skein512_final(struct shash_desc *desc, u8 *out) skein512_final()
77 static int skein512_export(struct shash_desc *desc, void *out) skein512_export()
85 static int skein512_import(struct shash_desc *desc, const void *in) skein512_import()
93 static int skein1024_init(struct shash_desc *desc) skein1024_init()
99 static int skein1024_update(struct shash_desc *desc, const u8 *data, skein1024_update()
106 static int skein1024_final(struct shash_desc *desc, u8 *out) skein1024_final()
112 static int skein1024_export(struct shash_desc *desc, void *out) skein1024_export()
120 static int skein1024_import(struct shash_desc *desc, const void *in) skein1024_import()
/linux-4.4.14/arch/s390/crypto/
H A 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);
H A Dsha1_s390.c35 static int sha1_init(struct shash_desc *desc) sha1_init()
50 static int sha1_export(struct shash_desc *desc, void *out) sha1_export()
61 static int sha1_import(struct shash_desc *desc, const void *in) sha1_import()
H A Dsha256_s390.c25 static int sha256_init(struct shash_desc *desc) sha256_init()
43 static int sha256_export(struct shash_desc *desc, void *out) sha256_export()
54 static int sha256_import(struct shash_desc *desc, const void *in) sha256_import()
85 static int sha224_init(struct shash_desc *desc) sha224_init()
H A Dsha512_s390.c26 static int sha512_init(struct shash_desc *desc) sha512_init()
44 static int sha512_export(struct shash_desc *desc, void *out) sha512_export()
56 static int sha512_import(struct shash_desc *desc, const void *in) sha512_import()
92 static int sha384_init(struct shash_desc *desc) sha384_init()
H A Dghash_s390.c30 static int ghash_init(struct shash_desc *desc) ghash_init()
56 static int ghash_update(struct shash_desc *desc, ghash_update()
119 static int ghash_final(struct shash_desc *desc, u8 *dst) ghash_final()
H A Dsha_common.c21 int s390_sha_update(struct shash_desc *desc, const u8 *data, unsigned int len) s390_sha_update()
63 int s390_sha_final(struct shash_desc *desc, u8 *out) s390_sha_final()
/linux-4.4.14/crypto/
H A Dshash.c74 static int shash_update_unaligned(struct shash_desc *desc, const u8 *data, shash_update_unaligned()
98 int crypto_shash_update(struct shash_desc *desc, const u8 *data, crypto_shash_update()
112 static int shash_final_unaligned(struct shash_desc *desc, u8 *out) shash_final_unaligned()
134 int crypto_shash_final(struct shash_desc *desc, u8 *out) crypto_shash_final()
147 static int shash_finup_unaligned(struct shash_desc *desc, const u8 *data, shash_finup_unaligned()
154 int crypto_shash_finup(struct shash_desc *desc, const u8 *data, crypto_shash_finup()
168 static int shash_digest_unaligned(struct shash_desc *desc, const u8 *data, shash_digest_unaligned()
175 int crypto_shash_digest(struct shash_desc *desc, const u8 *data, crypto_shash_digest()
189 static int shash_default_export(struct shash_desc *desc, void *out) shash_default_export()
195 static int shash_default_import(struct shash_desc *desc, const void *in) shash_default_import()
212 struct shash_desc *desc = ahash_request_ctx(req); shash_async_init()
220 int shash_ahash_update(struct ahash_request *req, struct shash_desc *desc) shash_ahash_update()
243 int shash_ahash_finup(struct ahash_request *req, struct shash_desc *desc) shash_ahash_finup()
267 struct shash_desc *desc = ahash_request_ctx(req); shash_async_finup()
275 int shash_ahash_digest(struct ahash_request *req, struct shash_desc *desc) shash_ahash_digest()
301 struct shash_desc *desc = ahash_request_ctx(req); shash_async_digest()
317 struct shash_desc *desc = ahash_request_ctx(req); shash_async_import()
366 crt->reqsize = sizeof(struct shash_desc) + crypto_shash_descsize(shash); crypto_init_shash_ops_async()
374 struct shash_desc **descp = crypto_hash_ctx(tfm); shash_compat_setkey()
375 struct shash_desc *desc = *descp; shash_compat_setkey()
382 struct shash_desc **descp = crypto_hash_ctx(hdesc->tfm); shash_compat_init()
383 struct shash_desc *desc = *descp; shash_compat_init()
393 struct shash_desc **descp = crypto_hash_ctx(hdesc->tfm); shash_compat_update()
394 struct shash_desc *desc = *descp; shash_compat_update()
407 struct shash_desc **descp = crypto_hash_ctx(hdesc->tfm); shash_compat_final()
419 struct shash_desc **descp = crypto_hash_ctx(hdesc->tfm); shash_compat_digest()
420 struct shash_desc *desc = *descp; shash_compat_digest()
448 struct shash_desc **descp = crypto_tfm_ctx(tfm); crypto_exit_shash_ops_compat()
449 struct shash_desc *desc = *descp; crypto_exit_shash_ops_compat()
460 struct shash_desc **descp = crypto_tfm_ctx(tfm); crypto_init_shash_ops_compat()
462 struct shash_desc *desc; crypto_init_shash_ops_compat()
510 return sizeof(struct shash_desc *); crypto_shash_ctxsize()
H A Dhmac.c89 static int hmac_export(struct shash_desc *pdesc, void *out) hmac_export()
91 struct shash_desc *desc = shash_desc_ctx(pdesc); hmac_export()
98 static int hmac_import(struct shash_desc *pdesc, const void *in) hmac_import()
100 struct shash_desc *desc = shash_desc_ctx(pdesc); hmac_import()
109 static int hmac_init(struct shash_desc *pdesc) hmac_init()
114 static int hmac_update(struct shash_desc *pdesc, hmac_update()
117 struct shash_desc *desc = shash_desc_ctx(pdesc); hmac_update()
124 static int hmac_final(struct shash_desc *pdesc, u8 *out) hmac_final()
130 struct shash_desc *desc = shash_desc_ctx(pdesc); hmac_final()
139 static int hmac_finup(struct shash_desc *pdesc, const u8 *data, hmac_finup()
147 struct shash_desc *desc = shash_desc_ctx(pdesc); hmac_finup()
168 parent->descsize = sizeof(struct shash_desc) + hmac_init_tfm()
H A Dsha1_generic.c41 int crypto_sha1_update(struct shash_desc *desc, const u8 *data, crypto_sha1_update()
48 static int sha1_final(struct shash_desc *desc, u8 *out) sha1_final()
54 int crypto_sha1_finup(struct shash_desc *desc, const u8 *data, crypto_sha1_finup()
H A Dcrc32.c76 static int crc32_init(struct shash_desc *desc) crc32_init()
86 static int crc32_update(struct shash_desc *desc, const u8 *data, crc32_update()
103 static int crc32_finup(struct shash_desc *desc, const u8 *data, crc32_finup()
109 static int crc32_final(struct shash_desc *desc, u8 *out) crc32_final()
117 static int crc32_digest(struct shash_desc *desc, const u8 *data, crc32_digest()
H A Dcrct10dif_generic.c42 static int chksum_init(struct shash_desc *desc) chksum_init()
51 static int chksum_update(struct shash_desc *desc, const u8 *data, chksum_update()
60 static int chksum_final(struct shash_desc *desc, u8 *out) chksum_final()
75 static int chksum_finup(struct shash_desc *desc, const u8 *data, chksum_finup()
83 static int chksum_digest(struct shash_desc *desc, const u8 *data, chksum_digest()
H A Dmd5.c50 static int md5_init(struct shash_desc *desc) md5_init()
63 static int md5_update(struct shash_desc *desc, const u8 *data, unsigned int len) md5_update()
95 static int md5_final(struct shash_desc *desc, u8 *out) md5_final()
123 static int md5_export(struct shash_desc *desc, void *out) md5_export()
131 static int md5_import(struct shash_desc *desc, const void *in) md5_import()
H A Dcrc32c_generic.c61 static int chksum_init(struct shash_desc *desc) chksum_init()
89 static int chksum_update(struct shash_desc *desc, const u8 *data, chksum_update()
98 static int chksum_final(struct shash_desc *desc, u8 *out) chksum_final()
112 static int chksum_finup(struct shash_desc *desc, const u8 *data, chksum_finup()
120 static int chksum_digest(struct shash_desc *desc, const u8 *data, chksum_digest()
H A Dghash-generic.c35 static int ghash_init(struct shash_desc *desc) ghash_init()
63 static int ghash_update(struct shash_desc *desc, ghash_update()
119 static int ghash_final(struct shash_desc *desc, u8 *dst) ghash_final()
H A Dmichael_mic.c50 static int michael_init(struct shash_desc *desc) michael_init()
62 static int michael_update(struct shash_desc *desc, const u8 *data, michael_update()
103 static int michael_final(struct shash_desc *desc, u8 *out) michael_final()
H A Dcrypto_null.c42 static int null_init(struct shash_desc *desc) null_init()
47 static int null_update(struct shash_desc *desc, const u8 *data, null_update()
53 static int null_final(struct shash_desc *desc, u8 *out) null_final()
58 static int null_digest(struct shash_desc *desc, const u8 *data, null_digest()
H A Dmd4.c156 static int md4_init(struct shash_desc *desc) md4_init()
169 static int md4_update(struct shash_desc *desc, const u8 *data, unsigned int len) md4_update()
201 static int md4_final(struct shash_desc *desc, u8 *out) md4_final()
H A Dsha512_generic.c143 int crypto_sha512_update(struct shash_desc *desc, const u8 *data, crypto_sha512_update()
150 static int sha512_final(struct shash_desc *desc, u8 *hash) sha512_final()
156 int crypto_sha512_finup(struct shash_desc *desc, const u8 *data, crypto_sha512_finup()
H A Dmcryptd.c341 struct shash_desc *desc = &rctx->desc; mcryptd_hash_init()
449 struct shash_desc *desc = &rctx->desc; mcryptd_hash_digest()
619 struct shash_desc *desc) shash_ahash_mcryptd_digest()
631 struct shash_desc *desc) shash_ahash_mcryptd_update()
643 struct shash_desc *desc) shash_ahash_mcryptd_finup()
655 struct shash_desc *desc) shash_ahash_mcryptd_final()
674 struct shash_desc *mcryptd_shash_desc(struct ahash_request *req) mcryptd_shash_desc()
H A Dxcbc.c82 static int crypto_xcbc_digest_init(struct shash_desc *pdesc) crypto_xcbc_digest_init()
95 static int crypto_xcbc_digest_update(struct shash_desc *pdesc, const u8 *p, crypto_xcbc_digest_update()
142 static int crypto_xcbc_digest_final(struct shash_desc *pdesc, u8 *out) crypto_xcbc_digest_final()
H A Dcmac.c108 static int crypto_cmac_digest_init(struct shash_desc *pdesc) crypto_cmac_digest_init()
121 static int crypto_cmac_digest_update(struct shash_desc *pdesc, const u8 *p, crypto_cmac_digest_update()
168 static int crypto_cmac_digest_final(struct shash_desc *pdesc, u8 *out) crypto_cmac_digest_final()
H A Dpoly1305_generic.c41 int crypto_poly1305_init(struct shash_desc *desc) crypto_poly1305_init()
179 int crypto_poly1305_update(struct shash_desc *desc, crypto_poly1305_update()
214 int crypto_poly1305_final(struct shash_desc *desc, u8 *dst) crypto_poly1305_final()
H A Dtgr192.c498 static int tgr192_init(struct shash_desc *desc) tgr192_init()
514 static int tgr192_update(struct shash_desc *desc, const u8 *inbuf, tgr192_update()
555 static int tgr192_final(struct shash_desc *desc, u8 * out) tgr192_final()
609 static int tgr160_final(struct shash_desc *desc, u8 * out) tgr160_final()
620 static int tgr128_final(struct shash_desc *desc, u8 * out) tgr128_final()
H A Dsha256_generic.c227 int crypto_sha256_update(struct shash_desc *desc, const u8 *data, crypto_sha256_update()
234 static int sha256_final(struct shash_desc *desc, u8 *out) sha256_final()
240 int crypto_sha256_finup(struct shash_desc *desc, const u8 *data, crypto_sha256_finup()
H A Drmd128.c220 static int rmd128_init(struct shash_desc *desc) rmd128_init()
236 static int rmd128_update(struct shash_desc *desc, const u8 *data, rmd128_update()
272 static int rmd128_final(struct shash_desc *desc, u8 *out) rmd128_final()
H A Drmd256.c235 static int rmd256_init(struct shash_desc *desc) rmd256_init()
255 static int rmd256_update(struct shash_desc *desc, const u8 *data, rmd256_update()
291 static int rmd256_final(struct shash_desc *desc, u8 *out) rmd256_final()
H A Dcryptd.c74 struct shash_desc desc;
465 struct shash_desc *desc = &rctx->desc; cryptd_hash_init()
565 struct shash_desc *desc = &rctx->desc; cryptd_hash_digest()
948 struct shash_desc *cryptd_shash_desc(struct ahash_request *req) cryptd_shash_desc()
H A Dwp512.c989 static int wp512_init(struct shash_desc *desc) { wp512_init()
1003 static int wp512_update(struct shash_desc *desc, const u8 *source, wp512_update()
1065 static int wp512_final(struct shash_desc *desc, u8 *out) wp512_final()
1100 static int wp384_final(struct shash_desc *desc, u8 *out) wp384_final()
1111 static int wp256_final(struct shash_desc *desc, u8 *out) wp256_final()
H A Dvmac.c557 static int vmac_init(struct shash_desc *pdesc) vmac_init()
562 static int vmac_update(struct shash_desc *pdesc, const u8 *p, vmac_update()
598 static int vmac_final(struct shash_desc *pdesc, u8 *out) vmac_final()
H A Drmd160.c263 static int rmd160_init(struct shash_desc *desc) rmd160_init()
280 static int rmd160_update(struct shash_desc *desc, const u8 *data, rmd160_update()
316 static int rmd160_final(struct shash_desc *desc, u8 *out) rmd160_final()
H A Drmd320.c282 static int rmd320_init(struct shash_desc *desc) rmd320_init()
304 static int rmd320_update(struct shash_desc *desc, const u8 *data, rmd320_update()
340 static int rmd320_final(struct shash_desc *desc, u8 *out) rmd320_final()
H A Ddrbg.c1627 struct shash_desc shash;
1643 sdesc = kzalloc(sizeof(struct shash_desc) + crypto_shash_descsize(tfm), drbg_init_hash_kernel()
/linux-4.4.14/arch/x86/crypto/
H A Dsha1_ssse3_glue.c37 static int sha1_update(struct shash_desc *desc, const u8 *data, sha1_update()
57 static int sha1_finup(struct shash_desc *desc, const u8 *data, sha1_finup()
76 static int sha1_ssse3_update(struct shash_desc *desc, const u8 *data, sha1_ssse3_update()
83 static int sha1_ssse3_finup(struct shash_desc *desc, const u8 *data, sha1_ssse3_finup()
91 static int sha1_ssse3_final(struct shash_desc *desc, u8 *out) sha1_ssse3_final()
130 static int sha1_avx_update(struct shash_desc *desc, const u8 *data, sha1_avx_update()
137 static int sha1_avx_finup(struct shash_desc *desc, const u8 *data, sha1_avx_finup()
144 static int sha1_avx_final(struct shash_desc *desc, u8 *out) sha1_avx_final()
222 static int sha1_avx2_update(struct shash_desc *desc, const u8 *data, sha1_avx2_update()
229 static int sha1_avx2_finup(struct shash_desc *desc, const u8 *data, sha1_avx2_finup()
236 static int sha1_avx2_final(struct shash_desc *desc, u8 *out) sha1_avx2_final()
280 static int sha1_ni_update(struct shash_desc *desc, const u8 *data, sha1_ni_update()
287 static int sha1_ni_finup(struct shash_desc *desc, const u8 *data, sha1_ni_finup()
294 static int sha1_ni_final(struct shash_desc *desc, u8 *out) sha1_ni_final()
H A Dsha256_ssse3_glue.c47 static int sha256_update(struct shash_desc *desc, const u8 *data, sha256_update()
67 static int sha256_finup(struct shash_desc *desc, const u8 *data, sha256_finup()
83 static int sha256_ssse3_update(struct shash_desc *desc, const u8 *data, sha256_ssse3_update()
89 static int sha256_ssse3_finup(struct shash_desc *desc, const u8 *data, sha256_ssse3_finup()
96 static int sha256_ssse3_final(struct shash_desc *desc, u8 *out) sha256_ssse3_final()
152 static int sha256_avx_update(struct shash_desc *desc, const u8 *data, sha256_avx_update()
158 static int sha256_avx_finup(struct shash_desc *desc, const u8 *data, sha256_avx_finup()
164 static int sha256_avx_final(struct shash_desc *desc, u8 *out) sha256_avx_final()
236 static int sha256_avx2_update(struct shash_desc *desc, const u8 *data, sha256_avx2_update()
242 static int sha256_avx2_finup(struct shash_desc *desc, const u8 *data, sha256_avx2_finup()
248 static int sha256_avx2_final(struct shash_desc *desc, u8 *out) sha256_avx2_final()
318 static int sha256_ni_update(struct shash_desc *desc, const u8 *data, sha256_ni_update()
324 static int sha256_ni_finup(struct shash_desc *desc, const u8 *data, sha256_ni_finup()
330 static int sha256_ni_final(struct shash_desc *desc, u8 *out) sha256_ni_final()
H A Dcrct10dif-pclmul_glue.c48 static int chksum_init(struct shash_desc *desc) chksum_init()
57 static int chksum_update(struct shash_desc *desc, const u8 *data, chksum_update()
71 static int chksum_final(struct shash_desc *desc, u8 *out) chksum_final()
91 static int chksum_finup(struct shash_desc *desc, const u8 *data, chksum_finup()
99 static int chksum_digest(struct shash_desc *desc, const u8 *data, chksum_digest()
H A Dsha512_ssse3_glue.c47 static int sha512_update(struct shash_desc *desc, const u8 *data, sha512_update()
67 static int sha512_finup(struct shash_desc *desc, const u8 *data, sha512_finup()
83 static int sha512_ssse3_update(struct shash_desc *desc, const u8 *data, sha512_ssse3_update()
89 static int sha512_ssse3_finup(struct shash_desc *desc, const u8 *data, sha512_ssse3_finup()
96 static int sha512_ssse3_final(struct shash_desc *desc, u8 *out) sha512_ssse3_final()
162 static int sha512_avx_update(struct shash_desc *desc, const u8 *data, sha512_avx_update()
168 static int sha512_avx_finup(struct shash_desc *desc, const u8 *data, sha512_avx_finup()
175 static int sha512_avx_final(struct shash_desc *desc, u8 *out) sha512_avx_final()
235 static int sha512_avx2_update(struct shash_desc *desc, const u8 *data, sha512_avx2_update()
241 static int sha512_avx2_finup(struct shash_desc *desc, const u8 *data, sha512_avx2_finup()
248 static int sha512_avx2_final(struct shash_desc *desc, u8 *out) sha512_avx2_final()
H A Dcrc32c-intel_glue.c127 static int crc32c_intel_init(struct shash_desc *desc) crc32c_intel_init()
137 static int crc32c_intel_update(struct shash_desc *desc, const u8 *data, crc32c_intel_update()
153 static int crc32c_intel_finup(struct shash_desc *desc, const u8 *data, crc32c_intel_finup()
159 static int crc32c_intel_final(struct shash_desc *desc, u8 *out) crc32c_intel_final()
167 static int crc32c_intel_digest(struct shash_desc *desc, const u8 *data, crc32c_intel_digest()
184 static int crc32c_pcl_intel_update(struct shash_desc *desc, const u8 *data, crc32c_pcl_intel_update()
215 static int crc32c_pcl_intel_finup(struct shash_desc *desc, const u8 *data, crc32c_pcl_intel_finup()
221 static int crc32c_pcl_intel_digest(struct shash_desc *desc, const u8 *data, crc32c_pcl_intel_digest()
H A Dcrc32-pclmul_glue.c104 static int crc32_pclmul_init(struct shash_desc *desc) crc32_pclmul_init()
114 static int crc32_pclmul_update(struct shash_desc *desc, const u8 *data, crc32_pclmul_update()
131 static int crc32_pclmul_finup(struct shash_desc *desc, const u8 *data, crc32_pclmul_finup()
137 static int crc32_pclmul_final(struct shash_desc *desc, u8 *out) crc32_pclmul_final()
145 static int crc32_pclmul_digest(struct shash_desc *desc, const u8 *data, crc32_pclmul_digest()
H A Dghash-clmulni-intel_glue.c46 static int ghash_init(struct shash_desc *desc) ghash_init()
80 static int ghash_update(struct shash_desc *desc, ghash_update()
134 static int ghash_final(struct shash_desc *desc, u8 *dst) ghash_final()
177 struct shash_desc *desc = cryptd_shash_desc(cryptd_req); ghash_async_init()
199 struct shash_desc *desc = cryptd_shash_desc(cryptd_req); ghash_async_update()
217 struct shash_desc *desc = cryptd_shash_desc(cryptd_req); ghash_async_final()
234 struct shash_desc *desc = cryptd_shash_desc(cryptd_req); ghash_async_digest()
H A Dpoly1305_glue.c44 static int poly1305_simd_init(struct shash_desc *desc) poly1305_simd_init()
120 static int poly1305_simd_update(struct shash_desc *desc, poly1305_simd_update()
/linux-4.4.14/drivers/staging/lustre/lustre/libcfs/linux/
H A Dlinux-crypto-adler.c67 static int adler32_init(struct shash_desc *desc) adler32_init()
77 static int adler32_update(struct shash_desc *desc, const u8 *data, adler32_update()
93 static int adler32_finup(struct shash_desc *desc, const u8 *data, adler32_finup()
99 static int adler32_final(struct shash_desc *desc, u8 *out) adler32_final()
107 static int adler32_digest(struct shash_desc *desc, const u8 *data, adler32_digest()
/linux-4.4.14/arch/sparc/crypto/
H A Dcrc32c_glue.c43 static int crc32c_sparc64_init(struct shash_desc *desc) crc32c_sparc64_init()
69 static int crc32c_sparc64_update(struct shash_desc *desc, const u8 *data, crc32c_sparc64_update()
90 static int crc32c_sparc64_finup(struct shash_desc *desc, const u8 *data, crc32c_sparc64_finup()
96 static int crc32c_sparc64_final(struct shash_desc *desc, u8 *out) crc32c_sparc64_final()
104 static int crc32c_sparc64_digest(struct shash_desc *desc, const u8 *data, crc32c_sparc64_digest()
H A Dsha256_glue.c29 static int sha224_sparc64_init(struct shash_desc *desc) sha224_sparc64_init()
45 static int sha256_sparc64_init(struct shash_desc *desc) sha256_sparc64_init()
82 static int sha256_sparc64_update(struct shash_desc *desc, const u8 *data, sha256_sparc64_update()
98 static int sha256_sparc64_final(struct shash_desc *desc, u8 *out) sha256_sparc64_final()
131 static int sha224_sparc64_final(struct shash_desc *desc, u8 *hash) sha224_sparc64_final()
143 static int sha256_sparc64_export(struct shash_desc *desc, void *out) sha256_sparc64_export()
151 static int sha256_sparc64_import(struct shash_desc *desc, const void *in) sha256_sparc64_import()
H A Dmd5_glue.c32 static int md5_sparc64_init(struct shash_desc *desc) md5_sparc64_init()
66 static int md5_sparc64_update(struct shash_desc *desc, const u8 *data, md5_sparc64_update()
83 static int md5_sparc64_final(struct shash_desc *desc, u8 *out) md5_sparc64_final()
116 static int md5_sparc64_export(struct shash_desc *desc, void *out) md5_sparc64_export()
125 static int md5_sparc64_import(struct shash_desc *desc, const void *in) md5_sparc64_import()
H A Dsha1_glue.c29 static int sha1_sparc64_init(struct shash_desc *desc) sha1_sparc64_init()
61 static int sha1_sparc64_update(struct shash_desc *desc, const u8 *data, sha1_sparc64_update()
78 static int sha1_sparc64_final(struct shash_desc *desc, u8 *out) sha1_sparc64_final()
111 static int sha1_sparc64_export(struct shash_desc *desc, void *out) sha1_sparc64_export()
120 static int sha1_sparc64_import(struct shash_desc *desc, const void *in) sha1_sparc64_import()
H A Dsha512_glue.c28 static int sha512_sparc64_init(struct shash_desc *desc) sha512_sparc64_init()
44 static int sha384_sparc64_init(struct shash_desc *desc) sha384_sparc64_init()
82 static int sha512_sparc64_update(struct shash_desc *desc, const u8 *data, sha512_sparc64_update()
99 static int sha512_sparc64_final(struct shash_desc *desc, u8 *out) sha512_sparc64_final()
135 static int sha384_sparc64_final(struct shash_desc *desc, u8 *hash) sha384_sparc64_final()
/linux-4.4.14/arch/powerpc/crypto/
H A Dmd5-glue.c36 static int ppc_md5_init(struct shash_desc *desc) ppc_md5_init()
49 static int ppc_md5_update(struct shash_desc *desc, const u8 *data, ppc_md5_update()
81 static int ppc_md5_final(struct shash_desc *desc, u8 *out) ppc_md5_final()
113 static int ppc_md5_export(struct shash_desc *desc, void *out) ppc_md5_export()
121 static int ppc_md5_import(struct shash_desc *desc, const void *in) ppc_md5_import()
H A Dsha1.c31 static int sha1_init(struct shash_desc *desc) sha1_init()
42 static int sha1_update(struct shash_desc *desc, const u8 *data, sha1_update()
79 static int sha1_final(struct shash_desc *desc, u8 *out) sha1_final()
107 static int sha1_export(struct shash_desc *desc, void *out) sha1_export()
115 static int sha1_import(struct shash_desc *desc, const void *in) sha1_import()
H A Dsha1-spe-glue.c63 static int ppc_spe_sha1_init(struct shash_desc *desc) ppc_spe_sha1_init()
77 static int ppc_spe_sha1_update(struct shash_desc *desc, const u8 *data, ppc_spe_sha1_update()
121 static int ppc_spe_sha1_final(struct shash_desc *desc, u8 *out) ppc_spe_sha1_final()
158 static int ppc_spe_sha1_export(struct shash_desc *desc, void *out) ppc_spe_sha1_export()
166 static int ppc_spe_sha1_import(struct shash_desc *desc, const void *in) ppc_spe_sha1_import()
H A Dsha256-spe-glue.c64 static int ppc_spe_sha256_init(struct shash_desc *desc) ppc_spe_sha256_init()
81 static int ppc_spe_sha224_init(struct shash_desc *desc) ppc_spe_sha224_init()
98 static int ppc_spe_sha256_update(struct shash_desc *desc, const u8 *data, ppc_spe_sha256_update()
143 static int ppc_spe_sha256_final(struct shash_desc *desc, u8 *out) ppc_spe_sha256_final()
183 static int ppc_spe_sha224_final(struct shash_desc *desc, u8 *out) ppc_spe_sha224_final()
204 static int ppc_spe_sha256_export(struct shash_desc *desc, void *out) ppc_spe_sha256_export()
212 static int ppc_spe_sha256_import(struct shash_desc *desc, const void *in) ppc_spe_sha256_import()
/linux-4.4.14/include/crypto/internal/
H A 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.4.14/drivers/crypto/
H A Dpadlock-sha.c29 struct shash_desc fallback;
36 static int padlock_sha_init(struct shash_desc *desc) padlock_sha_init()
46 static int padlock_sha_update(struct shash_desc *desc, padlock_sha_update()
55 static int padlock_sha_export(struct shash_desc *desc, void *out) padlock_sha_export()
62 static int padlock_sha_import(struct shash_desc *desc, const void *in) padlock_sha_import()
79 static int padlock_sha1_finup(struct shash_desc *desc, const u8 *in, padlock_sha1_finup()
138 static int padlock_sha1_final(struct shash_desc *desc, u8 *out) padlock_sha1_final()
145 static int padlock_sha256_finup(struct shash_desc *desc, const u8 *in, padlock_sha256_finup()
204 static int padlock_sha256_final(struct shash_desc *desc, u8 *out) padlock_sha256_final()
294 static int padlock_sha1_init_nano(struct shash_desc *desc) padlock_sha1_init_nano()
305 static int padlock_sha1_update_nano(struct shash_desc *desc, padlock_sha1_update_nano()
359 static int padlock_sha1_final_nano(struct shash_desc *desc, u8 *out) padlock_sha1_final_nano()
382 static int padlock_sha256_init_nano(struct shash_desc *desc) padlock_sha256_init_nano()
394 static int padlock_sha256_update_nano(struct shash_desc *desc, const u8 *data, padlock_sha256_update_nano()
448 static int padlock_sha256_final_nano(struct shash_desc *desc, u8 *out) padlock_sha256_final_nano()
472 static int padlock_sha_export_nano(struct shash_desc *desc, padlock_sha_export_nano()
482 static int padlock_sha_import_nano(struct shash_desc *desc, padlock_sha_import_nano()
H A Dmv_cesa.c394 struct shash_desc *desc) mv_hash_import_sha1_ctx()
/linux-4.4.14/arch/arm64/crypto/
H A Dsha1-ce-glue.c35 static int sha1_ce_update(struct shash_desc *desc, const u8 *data, sha1_ce_update()
49 static int sha1_ce_finup(struct shash_desc *desc, const u8 *data, sha1_ce_finup()
75 static int sha1_ce_final(struct shash_desc *desc, u8 *out) sha1_ce_final()
H A Dcrc32-arm64.c100 static int chksum_init(struct shash_desc *desc) chksum_init()
128 static int chksum_update(struct shash_desc *desc, const u8 *data, chksum_update()
137 static int chksumc_update(struct shash_desc *desc, const u8 *data, chksumc_update()
146 static int chksum_final(struct shash_desc *desc, u8 *out) chksum_final()
154 static int chksumc_final(struct shash_desc *desc, u8 *out) chksumc_final()
174 static int chksum_finup(struct shash_desc *desc, const u8 *data, chksum_finup()
182 static int chksumc_finup(struct shash_desc *desc, const u8 *data, chksumc_finup()
190 static int chksum_digest(struct shash_desc *desc, const u8 *data, chksum_digest()
198 static int chksumc_digest(struct shash_desc *desc, const u8 *data, chksumc_digest()
H A Dghash-ce-glue.c39 static int ghash_init(struct shash_desc *desc) ghash_init()
47 static int ghash_update(struct shash_desc *desc, const u8 *src, ghash_update()
82 static int ghash_final(struct shash_desc *desc, u8 *dst) ghash_final()
H A Dsha2-ce-glue.c35 static int sha256_ce_update(struct shash_desc *desc, const u8 *data, sha256_ce_update()
49 static int sha256_ce_finup(struct shash_desc *desc, const u8 *data, sha256_ce_finup()
76 static int sha256_ce_final(struct shash_desc *desc, u8 *out) sha256_ce_final()
/linux-4.4.14/arch/mips/cavium-octeon/crypto/
H A Docteon-md5.c68 static int octeon_md5_init(struct shash_desc *desc) octeon_md5_init()
81 static int octeon_md5_update(struct shash_desc *desc, const u8 *data, octeon_md5_update()
121 static int octeon_md5_final(struct shash_desc *desc, u8 *out) octeon_md5_final()
156 static int octeon_md5_export(struct shash_desc *desc, void *out) octeon_md5_export()
164 static int octeon_md5_import(struct shash_desc *desc, const void *in) octeon_md5_import()
H A Docteon-sha1.c78 static int octeon_sha1_init(struct shash_desc *desc) octeon_sha1_init()
123 static int octeon_sha1_update(struct shash_desc *desc, const u8 *data, octeon_sha1_update()
149 static int octeon_sha1_final(struct shash_desc *desc, u8 *out) octeon_sha1_final()
189 static int octeon_sha1_export(struct shash_desc *desc, void *out) octeon_sha1_export()
197 static int octeon_sha1_import(struct shash_desc *desc, const void *in) octeon_sha1_import()
H A Docteon-sha256.c70 static int octeon_sha224_init(struct shash_desc *desc) octeon_sha224_init()
87 static int octeon_sha256_init(struct shash_desc *desc) octeon_sha256_init()
135 static int octeon_sha256_update(struct shash_desc *desc, const u8 *data, octeon_sha256_update()
161 static int octeon_sha256_final(struct shash_desc *desc, u8 *out) octeon_sha256_final()
201 static int octeon_sha224_final(struct shash_desc *desc, u8 *hash) octeon_sha224_final()
213 static int octeon_sha256_export(struct shash_desc *desc, void *out) octeon_sha256_export()
221 static int octeon_sha256_import(struct shash_desc *desc, const void *in) octeon_sha256_import()
H A Docteon-sha512.c81 static int octeon_sha512_init(struct shash_desc *desc) octeon_sha512_init()
98 static int octeon_sha384_init(struct shash_desc *desc) octeon_sha384_init()
149 static int octeon_sha512_update(struct shash_desc *desc, const u8 *data, octeon_sha512_update()
175 static int octeon_sha512_final(struct shash_desc *desc, u8 *hash) octeon_sha512_final()
216 static int octeon_sha384_final(struct shash_desc *desc, u8 *hash) octeon_sha384_final()
/linux-4.4.14/drivers/crypto/vmx/
H A Dghash.c53 struct shash_desc fallback_desc;
99 static int p8_ghash_init(struct shash_desc *desc) p8_ghash_init()
130 static int p8_ghash_update(struct shash_desc *desc, p8_ghash_update()
184 static int p8_ghash_final(struct shash_desc *desc, u8 *out) p8_ghash_final()
/linux-4.4.14/drivers/crypto/nx/
H A Dnx-sha256.c50 static int nx_sha256_init(struct shash_desc *desc) { nx_sha256_init()
68 static int nx_sha256_update(struct shash_desc *desc, const u8 *data, nx_sha256_update()
189 static int nx_sha256_final(struct shash_desc *desc, u8 *out) nx_sha256_final()
260 static int nx_sha256_export(struct shash_desc *desc, void *out) nx_sha256_export()
269 static int nx_sha256_import(struct shash_desc *desc, const void *in) nx_sha256_import()
H A Dnx-sha512.c49 static int nx_sha512_init(struct shash_desc *desc) nx_sha512_init()
68 static int nx_sha512_update(struct shash_desc *desc, const u8 *data, nx_sha512_update()
192 static int nx_sha512_final(struct shash_desc *desc, u8 *out) nx_sha512_final()
266 static int nx_sha512_export(struct shash_desc *desc, void *out) nx_sha512_export()
275 static int nx_sha512_import(struct shash_desc *desc, const void *in) nx_sha512_import()
H A Dnx-aes-xcbc.c71 static int nx_xcbc_empty(struct shash_desc *desc, u8 *out) nx_xcbc_empty()
170 static int nx_xcbc_init(struct shash_desc *desc) nx_xcbc_init()
179 static int nx_xcbc_update(struct shash_desc *desc, nx_xcbc_update()
307 static int nx_xcbc_final(struct shash_desc *desc, u8 *out) nx_xcbc_final()
/linux-4.4.14/security/integrity/evm/
H A Devm_crypto.c35 static struct shash_desc *init_desc(char type) init_desc()
40 struct shash_desc *desc; init_desc()
97 static void hmac_add_misc(struct shash_desc *desc, struct inode *inode, hmac_add_misc()
135 struct shash_desc *desc; evm_calc_hmac_or_hash()
222 struct shash_desc *desc; evm_init_hmac()
/linux-4.4.14/lib/
H A Dcrc-t10dif.c25 struct shash_desc shash; crc_t10dif_update()
H A Ddigsig.c195 struct shash_desc *desc = NULL; digsig_verify()
/linux-4.4.14/security/apparmor/
H A Dcrypto.c36 struct shash_desc shash; aa_calc_profile_hash()
/linux-4.4.14/arch/x86/crypto/sha-mb/
H A Dsha1_mb.c82 struct shash_desc *desc; cast_hash_to_mcryptd_ctx()
84 desc = container_of((void *) hash_ctx, struct shash_desc, __ctx); cast_hash_to_mcryptd_ctx()
94 struct shash_desc *desc) req_ctx_init()
346 static int sha1_mb_init(struct shash_desc *desc) sha1_mb_init()
488 static int sha1_mb_update(struct shash_desc *desc, const u8 *data, sha1_mb_update()
547 static int sha1_mb_finup(struct shash_desc *desc, const u8 *data, sha1_mb_finup()
608 static int sha1_mb_final(struct shash_desc *desc, u8 *out) sha1_mb_final()
657 static int sha1_mb_export(struct shash_desc *desc, void *out) sha1_mb_export()
666 static int sha1_mb_import(struct shash_desc *desc, const void *in) sha1_mb_import()
/linux-4.4.14/drivers/md/
H A Ddm-verity.c115 static struct shash_desc *io_hash_desc(struct dm_verity *v, struct dm_verity_io *io) io_hash_desc()
117 return (struct shash_desc *)(io + 1); io_hash_desc()
276 struct shash_desc *desc; verity_verify_level()
356 struct shash_desc *desc; verity_verify_io()
830 sizeof(struct shash_desc) + crypto_shash_descsize(v->tfm); verity_ctr()
/linux-4.4.14/crypto/asymmetric_keys/
H A Dverify_pefile.c247 struct shash_desc *desc) pefile_digest_pe_contents()
326 struct shash_desc *desc; pefile_digest_pe()
H A Dx509_public_key.c161 struct shash_desc *desc; x509_get_sig_params()
H A Dpkcs7_verify.c29 struct shash_desc *desc; pkcs7_digest()
/linux-4.4.14/fs/cifs/
H A Dsmb2transport.c59 size = sizeof(struct shash_desc) + smb2_crypto_shash_allocate()
98 size = sizeof(struct shash_desc) + smb3_crypto_shash_allocate()
H A Dsmbencrypt.c147 size = sizeof(struct shash_desc) + crypto_shash_descsize(md4); mdfour()
H A Dcifsencrypt.c54 size = sizeof(struct shash_desc) + cifs_crypto_shash_md5_allocate()
663 size = sizeof(struct shash_desc) + crypto_hmacmd5_alloc()
H A Dlink.c71 size = sizeof(struct shash_desc) + crypto_shash_descsize(md5); symlink_hash()
H A Dcifsglob.h111 struct shash_desc shash;
/linux-4.4.14/net/bluetooth/
H A Damp.c138 struct shash_desc *shash; hmac_sha256()
/linux-4.4.14/security/keys/encrypted-keys/
H A Dencrypted.c58 struct shash_desc shash;
329 size = sizeof(struct shash_desc) + crypto_shash_descsize(alg); alloc_sdesc()
/linux-4.4.14/security/keys/
H A Dtrusted.c38 struct shash_desc shash;
50 size = sizeof(struct shash_desc) + crypto_shash_descsize(alg); init_sdesc()
/linux-4.4.14/kernel/
H A Dkexec_file.c552 struct shash_desc *desc; kexec_calculate_store_digests()
/linux-4.4.14/include/linux/
H A Djbd2.h1476 struct shash_desc shash; jbd2_chksum()
/linux-4.4.14/fs/ext4/
H A Dext4.h1993 struct shash_desc shash; ext4_chksum()

Completed in 2180 milliseconds