Home
last modified time | relevance | path

Searched refs:sha256_state (Results 1 – 25 of 26) sorted by relevance

12

/Linux-v5.4/arch/powerpc/crypto/
Dsha256-spe-glue.c50 static inline void ppc_sha256_clear_context(struct sha256_state *sctx) in ppc_sha256_clear_context()
52 int count = sizeof(struct sha256_state) >> 2; in ppc_sha256_clear_context()
56 BUILD_BUG_ON(sizeof(struct sha256_state) % 4); in ppc_sha256_clear_context()
62 struct sha256_state *sctx = shash_desc_ctx(desc); in ppc_spe_sha256_init()
79 struct sha256_state *sctx = shash_desc_ctx(desc); in ppc_spe_sha224_init()
97 struct sha256_state *sctx = shash_desc_ctx(desc); in ppc_spe_sha256_update()
141 struct sha256_state *sctx = shash_desc_ctx(desc); in ppc_spe_sha256_final()
202 struct sha256_state *sctx = shash_desc_ctx(desc); in ppc_spe_sha256_export()
210 struct sha256_state *sctx = shash_desc_ctx(desc); in ppc_spe_sha256_import()
223 .descsize = sizeof(struct sha256_state),
[all …]
/Linux-v5.4/arch/mips/cavium-octeon/crypto/
Docteon-sha256.c32 static void octeon_sha256_store_hash(struct sha256_state *sctx) in octeon_sha256_store_hash()
42 static void octeon_sha256_read_hash(struct sha256_state *sctx) in octeon_sha256_read_hash()
68 struct sha256_state *sctx = shash_desc_ctx(desc); in octeon_sha224_init()
85 struct sha256_state *sctx = shash_desc_ctx(desc); in octeon_sha256_init()
100 static void __octeon_sha256_update(struct sha256_state *sctx, const u8 *data, in __octeon_sha256_update()
134 struct sha256_state *sctx = shash_desc_ctx(desc); in octeon_sha256_update()
159 struct sha256_state *sctx = shash_desc_ctx(desc); in octeon_sha256_final()
211 struct sha256_state *sctx = shash_desc_ctx(desc); in octeon_sha256_export()
219 struct sha256_state *sctx = shash_desc_ctx(desc); in octeon_sha256_import()
232 .descsize = sizeof(struct sha256_state),
[all …]
/Linux-v5.4/include/crypto/
Dsha256_base.h18 typedef void (sha256_block_fn)(struct sha256_state *sst, u8 const *src,
23 struct sha256_state *sctx = shash_desc_ctx(desc); in sha224_base_init()
30 struct sha256_state *sctx = shash_desc_ctx(desc); in sha256_base_init()
40 struct sha256_state *sctx = shash_desc_ctx(desc); in sha256_base_do_update()
77 struct sha256_state *sctx = shash_desc_ctx(desc); in sha256_base_do_finalize()
99 struct sha256_state *sctx = shash_desc_ctx(desc); in sha256_base_finish()
106 *sctx = (struct sha256_state){}; in sha256_base_finish()
Dsha.h84 struct sha256_state { struct
126 static inline int sha256_init(struct sha256_state *sctx) in sha256_init()
140 extern int sha256_update(struct sha256_state *sctx, const u8 *input,
142 extern int sha256_final(struct sha256_state *sctx, u8 *hash);
144 static inline int sha224_init(struct sha256_state *sctx) in sha224_init()
158 extern int sha224_update(struct sha256_state *sctx, const u8 *input,
160 extern int sha224_final(struct sha256_state *sctx, u8 *hash);
/Linux-v5.4/arch/sparc/crypto/
Dsha256_glue.c32 struct sha256_state *sctx = shash_desc_ctx(desc); in sha224_sparc64_init()
48 struct sha256_state *sctx = shash_desc_ctx(desc); in sha256_sparc64_init()
62 static void __sha256_sparc64_update(struct sha256_state *sctx, const u8 *data, in __sha256_sparc64_update()
86 struct sha256_state *sctx = shash_desc_ctx(desc); in sha256_sparc64_update()
101 struct sha256_state *sctx = shash_desc_ctx(desc); in sha256_sparc64_final()
146 struct sha256_state *sctx = shash_desc_ctx(desc); in sha256_sparc64_export()
154 struct sha256_state *sctx = shash_desc_ctx(desc); in sha256_sparc64_import()
167 .descsize = sizeof(struct sha256_state),
168 .statesize = sizeof(struct sha256_state),
183 .descsize = sizeof(struct sha256_state),
/Linux-v5.4/arch/x86/crypto/
Dsha256_ssse3_glue.c51 struct sha256_state *sctx = shash_desc_ctx(desc); in _sha256_update()
58 BUILD_BUG_ON(offsetof(struct sha256_state, state) != 0); in _sha256_update()
108 .descsize = sizeof(struct sha256_state),
122 .descsize = sizeof(struct sha256_state),
174 .descsize = sizeof(struct sha256_state),
188 .descsize = sizeof(struct sha256_state),
256 .descsize = sizeof(struct sha256_state),
270 .descsize = sizeof(struct sha256_state),
336 .descsize = sizeof(struct sha256_state),
350 .descsize = sizeof(struct sha256_state),
/Linux-v5.4/arch/arm/crypto/
Dsha2-ce-glue.c27 asmlinkage void sha2_ce_transform(struct sha256_state *sst, u8 const *src,
33 struct sha256_state *sctx = shash_desc_ctx(desc); in sha2_ce_update()
73 .descsize = sizeof(struct sha256_state),
87 .descsize = sizeof(struct sha256_state),
Dsha256_neon_glue.c31 struct sha256_state *sctx = shash_desc_ctx(desc); in crypto_sha256_neon_update()
73 .descsize = sizeof(struct sha256_state),
87 .descsize = sizeof(struct sha256_state),
Dsha256_glue.c35 BUILD_BUG_ON(offsetof(struct sha256_state, state) != 0); in crypto_sha256_arm_update()
64 .descsize = sizeof(struct sha256_state),
78 .descsize = sizeof(struct sha256_state),
/Linux-v5.4/arch/arm64/crypto/
Dsha256-glue.c63 .descsize = sizeof(struct sha256_state),
75 .descsize = sizeof(struct sha256_state),
86 struct sha256_state *sctx = shash_desc_ctx(desc); in sha256_update_neon()
146 .descsize = sizeof(struct sha256_state),
158 .descsize = sizeof(struct sha256_state),
Dsha2-ce-glue.c24 struct sha256_state sst;
/Linux-v5.4/drivers/crypto/nx/
Dnx-sha256.c39 struct sha256_state *sctx = shash_desc_ctx(desc); in nx_sha256_init()
59 struct sha256_state *sctx = shash_desc_ctx(desc); in nx_sha256_update()
178 struct sha256_state *sctx = shash_desc_ctx(desc); in nx_sha256_final()
248 struct sha256_state *sctx = shash_desc_ctx(desc); in nx_sha256_export()
257 struct sha256_state *sctx = shash_desc_ctx(desc); in nx_sha256_import()
271 .descsize = sizeof(struct sha256_state),
272 .statesize = sizeof(struct sha256_state),
/Linux-v5.4/arch/s390/crypto/
Dsha256_s390.c41 struct sha256_state *octx = out; in sha256_export()
52 const struct sha256_state *ictx = in; in sha256_import()
69 .statesize = sizeof(struct sha256_state),
105 .statesize = sizeof(struct sha256_state),
/Linux-v5.4/drivers/crypto/
Dpadlock-sha.c142 struct sha256_state state; in padlock_sha256_finup()
258 .statesize = sizeof(struct sha256_state),
359 struct sha256_state *sctx = shash_desc_ctx(desc); in padlock_sha256_init_nano()
361 *sctx = (struct sha256_state){ in padlock_sha256_init_nano()
372 struct sha256_state *sctx = shash_desc_ctx(desc); in padlock_sha256_update_nano()
420 struct sha256_state *state = in padlock_sha256_final_nano()
421 (struct sha256_state *)shash_desc_ctx(desc); in padlock_sha256_final_nano()
487 .descsize = sizeof(struct sha256_state),
488 .statesize = sizeof(struct sha256_state),
Dimg-hash.c817 .statesize = sizeof(struct sha256_state),
843 .statesize = sizeof(struct sha256_state),
Dn2_core.c303 struct sha256_state sha256;
/Linux-v5.4/crypto/
Dsha256_generic.c75 .descsize = sizeof(struct sha256_state),
89 .descsize = sizeof(struct sha256_state),
/Linux-v5.4/arch/s390/purgatory/
Dpurgatory.c19 struct sha256_state sctx; in verify_sha256_digest()
/Linux-v5.4/arch/x86/purgatory/
Dpurgatory.c43 struct sha256_state sctx; in verify_sha256_digest()
/Linux-v5.4/drivers/crypto/qce/
Dsha.c156 struct sha256_state *out_state = out; in qce_ahash_export()
217 const struct sha256_state *state = in; in qce_ahash_import()
446 .statesize = sizeof(struct sha256_state),
464 .statesize = sizeof(struct sha256_state),
/Linux-v5.4/lib/crypto/
Dsha256.c209 int sha256_update(struct sha256_state *sctx, const u8 *data, unsigned int len) in sha256_update()
240 int sha224_update(struct sha256_state *sctx, const u8 *data, unsigned int len) in sha224_update()
246 static int __sha256_final(struct sha256_state *sctx, u8 *out, int digest_words) in __sha256_final()
275 int sha256_final(struct sha256_state *sctx, u8 *out) in sha256_final()
281 int sha224_final(struct sha256_state *sctx, u8 *out) in sha224_final()
/Linux-v5.4/drivers/crypto/marvell/
Dhash.c1031 struct sha256_state *out_state = out; in mv_cesa_sha256_export()
1039 const struct sha256_state *in_state = in; in mv_cesa_sha256_import()
1055 .statesize = sizeof(struct sha256_state),
1378 struct sha256_state istate, ostate; in mv_cesa_ahmac_sha256_setkey()
1429 .statesize = sizeof(struct sha256_state),
/Linux-v5.4/drivers/staging/rtl8723bs/include/
Drtw_security.h204 struct sha256_state { struct
/Linux-v5.4/drivers/crypto/rockchip/
Drk3288_crypto_ahash.c356 .statesize = sizeof(struct sha256_state),
/Linux-v5.4/drivers/crypto/qat/qat_common/
Dqat_algs.c118 struct sha256_state sha256;

12