Home
last modified time | relevance | path

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

1234567

/kernel/linux/linux-5.10/include/crypto/
Dhash.h150 struct shash_desc { struct
161 #define HASH_MAX_DESCSIZE (sizeof(struct shash_desc) + 360)
166 char __##shash##_desc[sizeof(struct shash_desc) + HASH_MAX_DESCSIZE] \
167 __aligned(__alignof__(struct shash_desc)); \
168 struct shash_desc *shash = (struct shash_desc *)__##shash##_desc
199 int (*init)(struct shash_desc *desc);
200 int (*update)(struct shash_desc *desc, const u8 *data,
202 int (*final)(struct shash_desc *desc, u8 *out);
203 int (*finup)(struct shash_desc *desc, const u8 *data,
205 int (*digest)(struct shash_desc *desc, const u8 *data,
[all …]
Dnhpoly1305.h64 int crypto_nhpoly1305_init(struct shash_desc *desc);
65 int crypto_nhpoly1305_update(struct shash_desc *desc,
67 int crypto_nhpoly1305_update_helper(struct shash_desc *desc,
70 int crypto_nhpoly1305_final(struct shash_desc *desc, u8 *dst);
71 int crypto_nhpoly1305_final_helper(struct shash_desc *desc, u8 *dst,
Dsha.h96 struct shash_desc;
98 extern int crypto_sha1_update(struct shash_desc *desc, const u8 *data,
101 extern int crypto_sha1_finup(struct shash_desc *desc, const u8 *data,
104 extern int crypto_sha256_update(struct shash_desc *desc, const u8 *data,
107 extern int crypto_sha256_finup(struct shash_desc *desc, const u8 *data,
110 extern int crypto_sha512_update(struct shash_desc *desc, const u8 *data,
113 extern int crypto_sha512_finup(struct shash_desc *desc, const u8 *data,
Dsm3.h33 struct shash_desc;
35 extern int crypto_sm3_update(struct shash_desc *desc, const u8 *data,
38 extern int crypto_sm3_final(struct shash_desc *desc, u8 *out);
40 extern int crypto_sm3_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()
29 static inline int sha256_base_init(struct shash_desc *desc) in sha256_base_init()
37 static inline int sha256_base_do_update(struct shash_desc *desc, in sha256_base_do_update()
75 static inline int sha256_base_do_finalize(struct shash_desc *desc, in sha256_base_do_finalize()
98 static inline int sha256_base_finish(struct shash_desc *desc, u8 *out) in sha256_base_finish()
Dsha3.h29 int crypto_sha3_init(struct shash_desc *desc);
30 int crypto_sha3_update(struct shash_desc *desc, const u8 *data,
32 int crypto_sha3_final(struct shash_desc *desc, u8 *out);
/kernel/linux/linux-5.10/arch/x86/crypto/
Dsha1_ssse3_glue.c29 static int sha1_update(struct shash_desc *desc, const u8 *data, in sha1_update()
51 static int sha1_finup(struct shash_desc *desc, const u8 *data, in sha1_finup()
69 static int sha1_ssse3_update(struct shash_desc *desc, const u8 *data, in sha1_ssse3_update()
75 static int sha1_ssse3_finup(struct shash_desc *desc, const u8 *data, in sha1_ssse3_finup()
82 static int sha1_ssse3_final(struct shash_desc *desc, u8 *out) in sha1_ssse3_final()
119 static int sha1_avx_update(struct shash_desc *desc, const u8 *data, in sha1_avx_update()
125 static int sha1_avx_finup(struct shash_desc *desc, const u8 *data, in sha1_avx_finup()
131 static int sha1_avx_final(struct shash_desc *desc, u8 *out) in sha1_avx_final()
201 static int sha1_avx2_update(struct shash_desc *desc, const u8 *data, in sha1_avx2_update()
207 static int sha1_avx2_finup(struct shash_desc *desc, const u8 *data, in sha1_avx2_finup()
[all …]
Dsha256_ssse3_glue.c46 static int _sha256_update(struct shash_desc *desc, const u8 *data, in _sha256_update()
68 static int sha256_finup(struct shash_desc *desc, const u8 *data, in sha256_finup()
83 static int sha256_ssse3_update(struct shash_desc *desc, const u8 *data, in sha256_ssse3_update()
89 static int sha256_ssse3_finup(struct shash_desc *desc, const u8 *data, in sha256_ssse3_finup()
96 static int sha256_ssse3_final(struct shash_desc *desc, u8 *out) in sha256_ssse3_final()
149 static int sha256_avx_update(struct shash_desc *desc, const u8 *data, in sha256_avx_update()
155 static int sha256_avx_finup(struct shash_desc *desc, const u8 *data, in sha256_avx_finup()
161 static int sha256_avx_final(struct shash_desc *desc, u8 *out) in sha256_avx_final()
225 static int sha256_avx2_update(struct shash_desc *desc, const u8 *data, in sha256_avx2_update()
231 static int sha256_avx2_finup(struct shash_desc *desc, const u8 *data, in sha256_avx2_finup()
[all …]
Dsha512_ssse3_glue.c44 static int sha512_update(struct shash_desc *desc, const u8 *data, in sha512_update()
66 static int sha512_finup(struct shash_desc *desc, const u8 *data, in sha512_finup()
81 static int sha512_ssse3_update(struct shash_desc *desc, const u8 *data, in sha512_ssse3_update()
87 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()
157 static int sha512_avx_update(struct shash_desc *desc, const u8 *data, in sha512_avx_update()
163 static int sha512_avx_finup(struct shash_desc *desc, const u8 *data, in sha512_avx_finup()
170 static int sha512_avx_final(struct shash_desc *desc, u8 *out) in sha512_avx_final()
223 static int sha512_avx2_update(struct shash_desc *desc, const u8 *data, in sha512_avx2_update()
229 static int sha512_avx2_finup(struct shash_desc *desc, const u8 *data, in sha512_avx2_finup()
[all …]
Dcrc32c-intel_glue.c94 static int crc32c_intel_init(struct shash_desc *desc) in crc32c_intel_init()
104 static int crc32c_intel_update(struct shash_desc *desc, const u8 *data, in crc32c_intel_update()
120 static int crc32c_intel_finup(struct shash_desc *desc, const u8 *data, in crc32c_intel_finup()
126 static int crc32c_intel_final(struct shash_desc *desc, u8 *out) in crc32c_intel_final()
134 static int crc32c_intel_digest(struct shash_desc *desc, const u8 *data, in crc32c_intel_digest()
151 static int crc32c_pcl_intel_update(struct shash_desc *desc, const u8 *data, in crc32c_pcl_intel_update()
182 static int crc32c_pcl_intel_finup(struct shash_desc *desc, const u8 *data, in crc32c_pcl_intel_finup()
188 static int crc32c_pcl_intel_digest(struct shash_desc *desc, const u8 *data, in crc32c_pcl_intel_digest()
Dcrct10dif-pclmul_glue.c43 static int chksum_init(struct shash_desc *desc) in chksum_init()
52 static int chksum_update(struct shash_desc *desc, const u8 *data, in chksum_update()
66 static int chksum_final(struct shash_desc *desc, u8 *out) in chksum_final()
85 static int chksum_finup(struct shash_desc *desc, const u8 *data, in chksum_finup()
93 static int chksum_digest(struct shash_desc *desc, const u8 *data, in chksum_digest()
/kernel/linux/linux-5.10/crypto/
Dhmac.c83 static int hmac_export(struct shash_desc *pdesc, void *out) in hmac_export()
85 struct shash_desc *desc = shash_desc_ctx(pdesc); in hmac_export()
90 static int hmac_import(struct shash_desc *pdesc, const void *in) in hmac_import()
92 struct shash_desc *desc = shash_desc_ctx(pdesc); in hmac_import()
100 static int hmac_init(struct shash_desc *pdesc) in hmac_init()
105 static int hmac_update(struct shash_desc *pdesc, in hmac_update()
108 struct shash_desc *desc = shash_desc_ctx(pdesc); in hmac_update()
113 static int hmac_final(struct shash_desc *pdesc, u8 *out) in hmac_final()
119 struct shash_desc *desc = shash_desc_ctx(pdesc); in hmac_final()
126 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()
74 static int chksum_finup(struct shash_desc *desc, const u8 *data, in chksum_finup()
82 static int chksum_digest(struct shash_desc *desc, const u8 *data, in chksum_digest()
Dsha256_generic.c36 static int crypto_sha256_init(struct shash_desc *desc) in crypto_sha256_init()
42 static int crypto_sha224_init(struct shash_desc *desc) in crypto_sha224_init()
48 int crypto_sha256_update(struct shash_desc *desc, const u8 *data, in crypto_sha256_update()
56 static int crypto_sha256_final(struct shash_desc *desc, u8 *out) in crypto_sha256_final()
65 int crypto_sha256_finup(struct shash_desc *desc, const u8 *data, in crypto_sha256_finup()
Dshash.c91 static int shash_update_unaligned(struct shash_desc *desc, const u8 *data, in shash_update_unaligned()
121 int crypto_shash_update(struct shash_desc *desc, const u8 *data, in crypto_shash_update()
135 static int shash_final_unaligned(struct shash_desc *desc, u8 *out) in shash_final_unaligned()
163 int crypto_shash_final(struct shash_desc *desc, u8 *out) in crypto_shash_final()
176 static int shash_finup_unaligned(struct shash_desc *desc, const u8 *data, in shash_finup_unaligned()
183 int crypto_shash_finup(struct shash_desc *desc, const u8 *data, in crypto_shash_finup()
197 static int shash_digest_unaligned(struct shash_desc *desc, const u8 *data, in shash_digest_unaligned()
204 int crypto_shash_digest(struct shash_desc *desc, const u8 *data, in crypto_shash_digest()
237 static int shash_default_export(struct shash_desc *desc, void *out) in shash_default_export()
243 static int shash_default_import(struct shash_desc *desc, const void *in) in shash_default_import()
[all …]
Dcrc32_generic.c69 static int crc32_init(struct shash_desc *desc) in crc32_init()
79 static int crc32_update(struct shash_desc *desc, const u8 *data, in crc32_update()
96 static int crc32_finup(struct shash_desc *desc, const u8 *data, in crc32_finup()
102 static int crc32_final(struct shash_desc *desc, u8 *out) in crc32_final()
110 static int crc32_digest(struct shash_desc *desc, const u8 *data, in crc32_digest()
Dcrc32c_generic.c57 static int chksum_init(struct shash_desc *desc) in chksum_init()
83 static int chksum_update(struct shash_desc *desc, const u8 *data, in chksum_update()
92 static int chksum_final(struct shash_desc *desc, u8 *out) in chksum_final()
106 static int chksum_finup(struct shash_desc *desc, const u8 *data, in chksum_finup()
114 static int chksum_digest(struct shash_desc *desc, const u8 *data, in chksum_digest()
/kernel/linux/linux-5.10/drivers/crypto/
Dpadlock-sha.c24 struct shash_desc fallback;
31 static int padlock_sha_init(struct shash_desc *desc) in padlock_sha_init()
40 static int padlock_sha_update(struct shash_desc *desc, in padlock_sha_update()
48 static int padlock_sha_export(struct shash_desc *desc, void *out) in padlock_sha_export()
55 static int padlock_sha_import(struct shash_desc *desc, const void *in) in padlock_sha_import()
71 static int padlock_sha1_finup(struct shash_desc *desc, const u8 *in, in padlock_sha1_finup()
125 static int padlock_sha1_final(struct shash_desc *desc, u8 *out) in padlock_sha1_final()
132 static int padlock_sha256_finup(struct shash_desc *desc, const u8 *in, in padlock_sha256_finup()
186 static int padlock_sha256_final(struct shash_desc *desc, u8 *out) in padlock_sha256_final()
268 static int padlock_sha1_init_nano(struct shash_desc *desc) in padlock_sha1_init_nano()
[all …]
/kernel/linux/linux-5.10/arch/powerpc/crypto/
Dsha1.c25 static int powerpc_sha1_init(struct shash_desc *desc) in powerpc_sha1_init()
36 static int powerpc_sha1_update(struct shash_desc *desc, const u8 *data, in powerpc_sha1_update()
71 static int powerpc_sha1_final(struct shash_desc *desc, u8 *out) in powerpc_sha1_final()
99 static int powerpc_sha1_export(struct shash_desc *desc, void *out) in powerpc_sha1_export()
107 static int powerpc_sha1_import(struct shash_desc *desc, const void *in) in powerpc_sha1_import()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/arch/mips/crypto/
Dcrc32-mips.c160 static int chksum_init(struct shash_desc *desc)
186 static int chksum_update(struct shash_desc *desc, const u8 *data,
195 static int chksumc_update(struct shash_desc *desc, const u8 *data,
204 static int chksum_final(struct shash_desc *desc, u8 *out)
212 static int chksumc_final(struct shash_desc *desc, u8 *out)
232 static int chksum_finup(struct shash_desc *desc, const u8 *data,
240 static int chksumc_finup(struct shash_desc *desc, const u8 *data,
248 static int chksum_digest(struct shash_desc *desc, const u8 *data,
256 static int chksumc_digest(struct shash_desc *desc, const u8 *data,
/kernel/linux/linux-5.10/arch/s390/crypto/
Dsha.h29 struct shash_desc;
31 int s390_sha_update(struct shash_desc *desc, const u8 *data, unsigned int len);
32 int s390_sha_final(struct shash_desc *desc, u8 *out);
Dsha3_256_s390.c21 static int sha3_256_init(struct shash_desc *desc) in sha3_256_init()
32 static int sha3_256_export(struct shash_desc *desc, void *out) in sha3_256_export()
44 static int sha3_256_import(struct shash_desc *desc, const void *in) in sha3_256_import()
57 static int sha3_224_import(struct shash_desc *desc, const void *in) in sha3_224_import()
88 static int sha3_224_init(struct shash_desc *desc) in sha3_224_init()
/kernel/linux/linux-5.10/arch/arm64/crypto/
Dsha256-glue.c44 static int crypto_sha256_arm64_update(struct shash_desc *desc, const u8 *data, in crypto_sha256_arm64_update()
51 static int crypto_sha256_arm64_finup(struct shash_desc *desc, const u8 *data, in crypto_sha256_arm64_finup()
62 static int crypto_sha256_arm64_final(struct shash_desc *desc, u8 *out) in crypto_sha256_arm64_final()
93 static int sha256_update_neon(struct shash_desc *desc, const u8 *data, in sha256_update_neon()
124 static int sha256_finup_neon(struct shash_desc *desc, const u8 *data, in sha256_finup_neon()
142 static int sha256_final_neon(struct shash_desc *desc, u8 *out) in sha256_final_neon()
Dsha1-ce-glue.c53 static int sha1_ce_update(struct shash_desc *desc, const u8 *data, in sha1_ce_update()
67 static int sha1_ce_finup(struct shash_desc *desc, const u8 *data, in sha1_ce_finup()
88 static int sha1_ce_final(struct shash_desc *desc, u8 *out) in sha1_ce_final()
100 static int sha1_ce_export(struct shash_desc *desc, void *out) in sha1_ce_export()
108 static int sha1_ce_import(struct shash_desc *desc, const void *in) in sha1_ce_import()

1234567