Home
last modified time | relevance | path

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

123456

/Linux-v4.19/include/crypto/
Dhash.h147 struct shash_desc { struct
155 char __##shash##_desc[sizeof(struct shash_desc) + \ argument
157 struct shash_desc *shash = (struct shash_desc *)__##shash##_desc
177 int (*init)(struct shash_desc *desc);
178 int (*update)(struct shash_desc *desc, const u8 *data,
180 int (*final)(struct shash_desc *desc, u8 *out);
181 int (*finup)(struct shash_desc *desc, const u8 *data,
183 int (*digest)(struct shash_desc *desc, const u8 *data,
185 int (*export)(struct shash_desc *desc, void *out);
186 int (*import)(struct shash_desc *desc, const void *in);
[all …]
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,
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);
Dpoly1305.h33 int crypto_poly1305_init(struct shash_desc *desc);
36 int crypto_poly1305_update(struct shash_desc *desc,
38 int crypto_poly1305_final(struct shash_desc *desc, u8 *dst);
Dsm3.h33 struct shash_desc;
35 extern int crypto_sm3_update(struct shash_desc *desc, const u8 *data,
38 extern int crypto_sm3_finup(struct shash_desc *desc, const u8 *data,
/Linux-v4.19/arch/x86/crypto/
Dsha1_ssse3_glue.c37 static int sha1_update(struct shash_desc *desc, const u8 *data, in sha1_update()
57 static int sha1_finup(struct shash_desc *desc, const u8 *data, in sha1_finup()
76 static int sha1_ssse3_update(struct shash_desc *desc, const u8 *data, in sha1_ssse3_update()
83 static int sha1_ssse3_finup(struct shash_desc *desc, const u8 *data, in sha1_ssse3_finup()
91 static int sha1_ssse3_final(struct shash_desc *desc, u8 *out) in sha1_ssse3_final()
129 static int sha1_avx_update(struct shash_desc *desc, const u8 *data, in sha1_avx_update()
136 static int sha1_avx_finup(struct shash_desc *desc, const u8 *data, in sha1_avx_finup()
143 static int sha1_avx_final(struct shash_desc *desc, u8 *out) in sha1_avx_final()
220 static int sha1_avx2_update(struct shash_desc *desc, const u8 *data, in sha1_avx2_update()
227 static int sha1_avx2_finup(struct shash_desc *desc, const u8 *data, in sha1_avx2_finup()
[all …]
Dsha256_ssse3_glue.c47 static int sha256_update(struct shash_desc *desc, const u8 *data, in sha256_update()
67 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()
150 static int sha256_avx_update(struct shash_desc *desc, const u8 *data, in sha256_avx_update()
156 static int sha256_avx_finup(struct shash_desc *desc, const u8 *data, in sha256_avx_finup()
162 static int sha256_avx_final(struct shash_desc *desc, u8 *out) in sha256_avx_final()
232 static int sha256_avx2_update(struct shash_desc *desc, const u8 *data, in sha256_avx2_update()
238 static int sha256_avx2_finup(struct shash_desc *desc, const u8 *data, in sha256_avx2_finup()
[all …]
Dsha512_ssse3_glue.c47 static int sha512_update(struct shash_desc *desc, const u8 *data, in sha512_update()
67 static int sha512_finup(struct shash_desc *desc, const u8 *data, in sha512_finup()
83 static int sha512_ssse3_update(struct shash_desc *desc, const u8 *data, in sha512_ssse3_update()
89 static int sha512_ssse3_finup(struct shash_desc *desc, const u8 *data, in sha512_ssse3_finup()
96 static int sha512_ssse3_final(struct shash_desc *desc, u8 *out) in sha512_ssse3_final()
160 static int sha512_avx_update(struct shash_desc *desc, const u8 *data, in sha512_avx_update()
166 static int sha512_avx_finup(struct shash_desc *desc, const u8 *data, in sha512_avx_finup()
173 static int sha512_avx_final(struct shash_desc *desc, u8 *out) in sha512_avx_final()
231 static int sha512_avx2_update(struct shash_desc *desc, const u8 *data, in sha512_avx2_update()
237 static int sha512_avx2_finup(struct shash_desc *desc, const u8 *data, in sha512_avx2_finup()
[all …]
Dcrc32c-intel_glue.c114 static int crc32c_intel_init(struct shash_desc *desc) in crc32c_intel_init()
124 static int crc32c_intel_update(struct shash_desc *desc, const u8 *data, in crc32c_intel_update()
140 static int crc32c_intel_finup(struct shash_desc *desc, const u8 *data, in crc32c_intel_finup()
146 static int crc32c_intel_final(struct shash_desc *desc, u8 *out) in crc32c_intel_final()
154 static int crc32c_intel_digest(struct shash_desc *desc, const u8 *data, in crc32c_intel_digest()
171 static int crc32c_pcl_intel_update(struct shash_desc *desc, const u8 *data, in crc32c_pcl_intel_update()
202 static int crc32c_pcl_intel_finup(struct shash_desc *desc, const u8 *data, in crc32c_pcl_intel_finup()
208 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()
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()
170 struct shash_desc *desc = cryptd_shash_desc(cryptd_req); in ghash_async_init()
191 struct shash_desc *desc = cryptd_shash_desc(cryptd_req); in ghash_async_update()
209 struct shash_desc *desc = cryptd_shash_desc(cryptd_req); in ghash_async_final()
217 struct shash_desc *desc = cryptd_shash_desc(cryptd_req); in ghash_async_import()
229 struct shash_desc *desc = cryptd_shash_desc(cryptd_req); in ghash_async_export()
250 struct shash_desc *desc = cryptd_shash_desc(cryptd_req); in ghash_async_digest()
/Linux-v4.19/crypto/
Dhmac.c90 static int hmac_export(struct shash_desc *pdesc, void *out) in hmac_export()
92 struct shash_desc *desc = shash_desc_ctx(pdesc); in hmac_export()
99 static int hmac_import(struct shash_desc *pdesc, const void *in) in hmac_import()
101 struct shash_desc *desc = shash_desc_ctx(pdesc); in hmac_import()
110 static int hmac_init(struct shash_desc *pdesc) in hmac_init()
115 static int hmac_update(struct shash_desc *pdesc, in hmac_update()
118 struct shash_desc *desc = shash_desc_ctx(pdesc); in hmac_update()
125 static int hmac_final(struct shash_desc *pdesc, u8 *out) in hmac_final()
131 struct shash_desc *desc = shash_desc_ctx(pdesc); in hmac_final()
140 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()
Dshash.c83 static int shash_update_unaligned(struct shash_desc *desc, const u8 *data, in shash_update_unaligned()
107 int crypto_shash_update(struct shash_desc *desc, const u8 *data, in crypto_shash_update()
121 static int shash_final_unaligned(struct shash_desc *desc, u8 *out) in shash_final_unaligned()
143 int crypto_shash_final(struct shash_desc *desc, u8 *out) in crypto_shash_final()
156 static int shash_finup_unaligned(struct shash_desc *desc, const u8 *data, in shash_finup_unaligned()
163 int crypto_shash_finup(struct shash_desc *desc, const u8 *data, in crypto_shash_finup()
177 static int shash_digest_unaligned(struct shash_desc *desc, const u8 *data, in shash_digest_unaligned()
184 int crypto_shash_digest(struct shash_desc *desc, const u8 *data, in crypto_shash_digest()
201 static int shash_default_export(struct shash_desc *desc, void *out) in shash_default_export()
207 static int shash_default_import(struct shash_desc *desc, const void *in) in shash_default_import()
[all …]
Dcrc32_generic.c71 static int crc32_init(struct shash_desc *desc) in crc32_init()
81 static int crc32_update(struct shash_desc *desc, const u8 *data, in crc32_update()
98 static int crc32_finup(struct shash_desc *desc, const u8 *data, in crc32_finup()
104 static int crc32_final(struct shash_desc *desc, u8 *out) in crc32_final()
112 static int crc32_digest(struct shash_desc *desc, const u8 *data, in crc32_digest()
Dcrc32c_generic.c62 static int chksum_init(struct shash_desc *desc) in chksum_init()
90 static int chksum_update(struct shash_desc *desc, const u8 *data, in chksum_update()
99 static int chksum_final(struct shash_desc *desc, u8 *out) in chksum_final()
113 static int chksum_finup(struct shash_desc *desc, const u8 *data, in chksum_finup()
121 static int chksum_digest(struct shash_desc *desc, const u8 *data, in chksum_digest()
/Linux-v4.19/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()
134 static int padlock_sha1_final(struct shash_desc *desc, u8 *out) in padlock_sha1_final()
141 static int padlock_sha256_finup(struct shash_desc *desc, const u8 *in, in padlock_sha256_finup()
196 static int padlock_sha256_final(struct shash_desc *desc, u8 *out) in padlock_sha256_final()
284 static int padlock_sha1_init_nano(struct shash_desc *desc) in padlock_sha1_init_nano()
[all …]
/Linux-v4.19/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()
/Linux-v4.19/arch/s390/crypto/
Dsha.h27 struct shash_desc;
29 int s390_sha_update(struct shash_desc *desc, const u8 *data, unsigned int len);
30 int s390_sha_final(struct shash_desc *desc, u8 *out);
/Linux-v4.19/arch/mips/crypto/
Dcrc32-mips.c160 static int chksum_init(struct shash_desc *desc)
188 static int chksum_update(struct shash_desc *desc, const u8 *data,
197 static int chksumc_update(struct shash_desc *desc, const u8 *data,
206 static int chksum_final(struct shash_desc *desc, u8 *out)
214 static int chksumc_final(struct shash_desc *desc, u8 *out)
234 static int chksum_finup(struct shash_desc *desc, const u8 *data,
242 static int chksumc_finup(struct shash_desc *desc, const u8 *data,
250 static int chksum_digest(struct shash_desc *desc, const u8 *data,
258 static int chksumc_digest(struct shash_desc *desc, const u8 *data,
/Linux-v4.19/arch/arm64/crypto/
Dsha256-glue.c37 static int sha256_update(struct shash_desc *desc, const u8 *data, in sha256_update()
44 static int sha256_finup(struct shash_desc *desc, const u8 *data, in sha256_finup()
56 static int sha256_final(struct shash_desc *desc, u8 *out) in sha256_final()
87 static int sha256_update_neon(struct shash_desc *desc, const u8 *data, in sha256_update_neon()
119 static int sha256_finup_neon(struct shash_desc *desc, const u8 *data, in sha256_finup_neon()
139 static int sha256_final_neon(struct shash_desc *desc, u8 *out) in sha256_final_neon()
Dcrc32-ce-glue.c67 static int crc32_pmull_init(struct shash_desc *desc) in crc32_pmull_init()
76 static int crc32_update(struct shash_desc *desc, const u8 *data, in crc32_update()
85 static int crc32c_update(struct shash_desc *desc, const u8 *data, in crc32c_update()
94 static int crc32_pmull_update(struct shash_desc *desc, const u8 *data, in crc32_pmull_update()
126 static int crc32c_pmull_update(struct shash_desc *desc, const u8 *data, in crc32c_pmull_update()
159 static int crc32_pmull_final(struct shash_desc *desc, u8 *out) in crc32_pmull_final()
167 static int crc32c_pmull_final(struct shash_desc *desc, u8 *out) in crc32c_pmull_final()
/Linux-v4.19/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()
/Linux-v4.19/arch/arm/crypto/
Dghash-ce-glue.c57 static int ghash_init(struct shash_desc *desc) in ghash_init()
65 static int ghash_update(struct shash_desc *desc, const u8 *src, in ghash_update()
100 static int ghash_final(struct shash_desc *desc, u8 *dst) in ghash_final()
168 struct shash_desc *desc = cryptd_shash_desc(cryptd_req); in ghash_async_init()
189 struct shash_desc *desc = cryptd_shash_desc(cryptd_req); in ghash_async_update()
207 struct shash_desc *desc = cryptd_shash_desc(cryptd_req); in ghash_async_final()
225 struct shash_desc *desc = cryptd_shash_desc(cryptd_req); in ghash_async_digest()
239 struct shash_desc *desc = cryptd_shash_desc(cryptd_req); in ghash_async_import()
250 struct shash_desc *desc = cryptd_shash_desc(cryptd_req); in ghash_async_export()
/Linux-v4.19/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()

123456