Home
last modified time | relevance | path

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

1234567

/Linux-v5.4/include/crypto/
Dhash.h142 struct shash_desc { struct
153 #define HASH_MAX_DESCSIZE (sizeof(struct shash_desc) + 360)
158 char __##shash##_desc[sizeof(struct shash_desc) + \
160 struct shash_desc *shash = (struct shash_desc *)__##shash##_desc
180 int (*init)(struct shash_desc *desc);
181 int (*update)(struct shash_desc *desc, const u8 *data,
183 int (*final)(struct shash_desc *desc, u8 *out);
184 int (*finup)(struct shash_desc *desc, const u8 *data,
186 int (*digest)(struct shash_desc *desc, const u8 *data,
188 int (*export)(struct shash_desc *desc, void *out);
[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,
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,
Dsha256_base.h21 static inline int sha224_base_init(struct shash_desc *desc) in sha224_base_init()
28 static inline int sha256_base_init(struct shash_desc *desc) in sha256_base_init()
35 static inline int sha256_base_do_update(struct shash_desc *desc, in sha256_base_do_update()
73 static inline int sha256_base_do_finalize(struct shash_desc *desc, in sha256_base_do_finalize()
96 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);
/Linux-v5.4/arch/x86/crypto/
Dsha1_ssse3_glue.c33 static int sha1_update(struct shash_desc *desc, const u8 *data, in sha1_update()
53 static int sha1_finup(struct shash_desc *desc, const u8 *data, in sha1_finup()
72 static int sha1_ssse3_update(struct shash_desc *desc, const u8 *data, in sha1_ssse3_update()
79 static int sha1_ssse3_finup(struct shash_desc *desc, const u8 *data, in sha1_ssse3_finup()
87 static int sha1_ssse3_final(struct shash_desc *desc, u8 *out) in sha1_ssse3_final()
125 static int sha1_avx_update(struct shash_desc *desc, const u8 *data, in sha1_avx_update()
132 static int sha1_avx_finup(struct shash_desc *desc, const u8 *data, in sha1_avx_finup()
139 static int sha1_avx_final(struct shash_desc *desc, u8 *out) in sha1_avx_final()
216 static int sha1_avx2_update(struct shash_desc *desc, const u8 *data, in sha1_avx2_update()
223 static int sha1_avx2_finup(struct shash_desc *desc, const u8 *data, in sha1_avx2_finup()
[all …]
Dsha256_ssse3_glue.c48 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()
84 static int sha256_ssse3_update(struct shash_desc *desc, const u8 *data, in sha256_ssse3_update()
90 static int sha256_ssse3_finup(struct shash_desc *desc, const u8 *data, in sha256_ssse3_finup()
97 static int sha256_ssse3_final(struct shash_desc *desc, u8 *out) in sha256_ssse3_final()
151 static int sha256_avx_update(struct shash_desc *desc, const u8 *data, in sha256_avx_update()
157 static int sha256_avx_finup(struct shash_desc *desc, const u8 *data, in sha256_avx_finup()
163 static int sha256_avx_final(struct shash_desc *desc, u8 *out) in sha256_avx_final()
233 static int sha256_avx2_update(struct shash_desc *desc, const u8 *data, in sha256_avx2_update()
239 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.c102 static int crc32c_intel_init(struct shash_desc *desc) in crc32c_intel_init()
112 static int crc32c_intel_update(struct shash_desc *desc, const u8 *data, in crc32c_intel_update()
128 static int crc32c_intel_finup(struct shash_desc *desc, const u8 *data, in crc32c_intel_finup()
134 static int crc32c_intel_final(struct shash_desc *desc, u8 *out) in crc32c_intel_final()
142 static int crc32c_intel_digest(struct shash_desc *desc, const u8 *data, in crc32c_intel_digest()
159 static int crc32c_pcl_intel_update(struct shash_desc *desc, const u8 *data, in crc32c_pcl_intel_update()
190 static int crc32c_pcl_intel_finup(struct shash_desc *desc, const u8 *data, in crc32c_pcl_intel_finup()
196 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()
Dghash-clmulni-intel_glue.c44 static int ghash_init(struct shash_desc *desc) in ghash_init()
78 static int ghash_update(struct shash_desc *desc, in ghash_update()
132 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()
188 struct shash_desc *desc = cryptd_shash_desc(cryptd_req); in ghash_async_update()
206 struct shash_desc *desc = cryptd_shash_desc(cryptd_req); in ghash_async_final()
214 struct shash_desc *desc = cryptd_shash_desc(cryptd_req); in ghash_async_import()
226 struct shash_desc *desc = cryptd_shash_desc(cryptd_req); in ghash_async_export()
247 struct shash_desc *desc = cryptd_shash_desc(cryptd_req); in ghash_async_digest()
/Linux-v5.4/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 …]
Dshash.c80 static int shash_update_unaligned(struct shash_desc *desc, const u8 *data, in shash_update_unaligned()
110 int crypto_shash_update(struct shash_desc *desc, const u8 *data, in crypto_shash_update()
124 static int shash_final_unaligned(struct shash_desc *desc, u8 *out) in shash_final_unaligned()
152 int crypto_shash_final(struct shash_desc *desc, u8 *out) in crypto_shash_final()
165 static int shash_finup_unaligned(struct shash_desc *desc, const u8 *data, in shash_finup_unaligned()
172 int crypto_shash_finup(struct shash_desc *desc, const u8 *data, in crypto_shash_finup()
186 static int shash_digest_unaligned(struct shash_desc *desc, const u8 *data, in shash_digest_unaligned()
193 int crypto_shash_digest(struct shash_desc *desc, const u8 *data, in crypto_shash_digest()
210 static int shash_default_export(struct shash_desc *desc, void *out) in shash_default_export()
216 static int shash_default_import(struct shash_desc *desc, const void *in) in shash_default_import()
[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()
41 static int crypto_sha224_init(struct shash_desc *desc) in crypto_sha224_init()
46 int crypto_sha256_update(struct shash_desc *desc, const u8 *data, in crypto_sha256_update()
53 static int crypto_sha256_final(struct shash_desc *desc, u8 *out) in crypto_sha256_final()
61 int crypto_sha256_finup(struct shash_desc *desc, const u8 *data, in crypto_sha256_finup()
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.c57 static int chksum_init(struct shash_desc *desc) in chksum_init()
85 static int chksum_update(struct shash_desc *desc, const u8 *data, in chksum_update()
94 static int chksum_final(struct shash_desc *desc, u8 *out) in chksum_final()
108 static int chksum_finup(struct shash_desc *desc, const u8 *data, in chksum_finup()
116 static int chksum_digest(struct shash_desc *desc, const u8 *data, in chksum_digest()
/Linux-v5.4/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()
274 static int padlock_sha1_init_nano(struct shash_desc *desc) in padlock_sha1_init_nano()
[all …]
/Linux-v5.4/arch/sparc/crypto/
Dsha256_glue.c30 static int sha224_sparc64_init(struct shash_desc *desc) in sha224_sparc64_init()
46 static int sha256_sparc64_init(struct shash_desc *desc) in sha256_sparc64_init()
83 static int sha256_sparc64_update(struct shash_desc *desc, const u8 *data, in sha256_sparc64_update()
99 static int sha256_sparc64_final(struct shash_desc *desc, u8 *out) in sha256_sparc64_final()
132 static int sha224_sparc64_final(struct shash_desc *desc, u8 *hash) in sha224_sparc64_final()
144 static int sha256_sparc64_export(struct shash_desc *desc, void *out) in sha256_sparc64_export()
152 static int sha256_sparc64_import(struct shash_desc *desc, const void *in) in sha256_sparc64_import()
/Linux-v5.4/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-v5.4/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()
/Linux-v5.4/arch/arm64/crypto/
Dsha256-glue.c33 static int crypto_sha256_arm64_update(struct shash_desc *desc, const u8 *data, in crypto_sha256_arm64_update()
40 static int crypto_sha256_arm64_finup(struct shash_desc *desc, const u8 *data, in crypto_sha256_arm64_finup()
52 static int crypto_sha256_arm64_final(struct shash_desc *desc, u8 *out) in crypto_sha256_arm64_final()
83 static int sha256_update_neon(struct shash_desc *desc, const u8 *data, in sha256_update_neon()
115 static int sha256_finup_neon(struct shash_desc *desc, const u8 *data, in sha256_finup_neon()
135 static int sha256_final_neon(struct shash_desc *desc, u8 *out) in sha256_final_neon()
/Linux-v5.4/arch/powerpc/crypto/
Dsha1.c26 static int sha1_init(struct shash_desc *desc) in sha1_init()
37 static int sha1_update(struct shash_desc *desc, const u8 *data, in sha1_update()
74 static int sha1_final(struct shash_desc *desc, u8 *out) in sha1_final()
102 static int sha1_export(struct shash_desc *desc, void *out) in sha1_export()
110 static int sha1_import(struct shash_desc *desc, const void *in) in sha1_import()
Dsha256-spe-glue.c60 static int ppc_spe_sha256_init(struct shash_desc *desc) in ppc_spe_sha256_init()
77 static int ppc_spe_sha224_init(struct shash_desc *desc) in ppc_spe_sha224_init()
94 static int ppc_spe_sha256_update(struct shash_desc *desc, const u8 *data, in ppc_spe_sha256_update()
139 static int ppc_spe_sha256_final(struct shash_desc *desc, u8 *out) in ppc_spe_sha256_final()
179 static int ppc_spe_sha224_final(struct shash_desc *desc, u8 *out) in ppc_spe_sha224_final()
200 static int ppc_spe_sha256_export(struct shash_desc *desc, void *out) in ppc_spe_sha256_export()
208 static int ppc_spe_sha256_import(struct shash_desc *desc, const void *in) in ppc_spe_sha256_import()

1234567