Home
last modified time | relevance | path

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

12

/linux-6.1.9/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()
63 struct sha256_state *sctx = shash_desc_ctx(desc); in ppc_spe_sha256_update()
107 struct sha256_state *sctx = shash_desc_ctx(desc); in ppc_spe_sha256_final()
168 struct sha256_state *sctx = shash_desc_ctx(desc); in ppc_spe_sha256_export()
176 struct sha256_state *sctx = shash_desc_ctx(desc); in ppc_spe_sha256_import()
189 .descsize = sizeof(struct sha256_state),
190 .statesize = sizeof(struct sha256_state),
205 .descsize = sizeof(struct sha256_state),
[all …]
/linux-6.1.9/arch/x86/crypto/
Dsha256_ssse3_glue.c43 asmlinkage void sha256_transform_ssse3(struct sha256_state *state,
49 struct sha256_state *sctx = shash_desc_ctx(desc); in _sha256_update()
59 BUILD_BUG_ON(offsetof(struct sha256_state, state) != 0); in _sha256_update()
107 .descsize = sizeof(struct sha256_state),
121 .descsize = sizeof(struct sha256_state),
146 asmlinkage void sha256_transform_avx(struct sha256_state *state,
172 .descsize = sizeof(struct sha256_state),
186 .descsize = sizeof(struct sha256_state),
222 asmlinkage void sha256_transform_rorx(struct sha256_state *state,
248 .descsize = sizeof(struct sha256_state),
[all …]
Dsha256-ssse3-asm.S351 ## void sha256_transform_ssse3(struct sha256_state *state, const u8 *data,
354 ## (struct sha256_state is assumed to begin with u32 state[8])
/linux-6.1.9/arch/mips/cavium-octeon/crypto/
Docteon-sha256.c33 static void octeon_sha256_store_hash(struct sha256_state *sctx) in octeon_sha256_store_hash()
43 static void octeon_sha256_read_hash(struct sha256_state *sctx) in octeon_sha256_read_hash()
67 static void __octeon_sha256_update(struct sha256_state *sctx, const u8 *data, in __octeon_sha256_update()
101 struct sha256_state *sctx = shash_desc_ctx(desc); in octeon_sha256_update()
126 struct sha256_state *sctx = shash_desc_ctx(desc); in octeon_sha256_final()
178 struct sha256_state *sctx = shash_desc_ctx(desc); in octeon_sha256_export()
186 struct sha256_state *sctx = shash_desc_ctx(desc); in octeon_sha256_import()
199 .descsize = sizeof(struct sha256_state),
200 .statesize = sizeof(struct sha256_state),
213 .descsize = sizeof(struct sha256_state),
/linux-6.1.9/include/crypto/
Dsha2.h67 struct sha256_state { struct
103 static inline void sha256_init(struct sha256_state *sctx) in sha256_init()
115 void sha256_update(struct sha256_state *sctx, const u8 *data, unsigned int len);
116 void sha256_final(struct sha256_state *sctx, u8 *out);
119 static inline void sha224_init(struct sha256_state *sctx) in sha224_init()
131 void sha224_update(struct sha256_state *sctx, const u8 *data, unsigned int len);
132 void sha224_final(struct sha256_state *sctx, u8 *out);
Dsha256_base.h19 typedef void (sha256_block_fn)(struct sha256_state *sst, u8 const *src,
24 struct sha256_state *sctx = shash_desc_ctx(desc); in sha224_base_init()
32 struct sha256_state *sctx = shash_desc_ctx(desc); in sha256_base_init()
43 struct sha256_state *sctx = shash_desc_ctx(desc); in sha256_base_do_update()
80 struct sha256_state *sctx = shash_desc_ctx(desc); in sha256_base_do_finalize()
102 struct sha256_state *sctx = shash_desc_ctx(desc); in sha256_base_finish()
/linux-6.1.9/arch/sparc/crypto/
Dsha256_glue.c30 static void __sha256_sparc64_update(struct sha256_state *sctx, const u8 *data, in __sha256_sparc64_update()
54 struct sha256_state *sctx = shash_desc_ctx(desc); in sha256_sparc64_update()
69 struct sha256_state *sctx = shash_desc_ctx(desc); in sha256_sparc64_final()
114 struct sha256_state *sctx = shash_desc_ctx(desc); in sha256_sparc64_export()
122 struct sha256_state *sctx = shash_desc_ctx(desc); in sha256_sparc64_import()
135 .descsize = sizeof(struct sha256_state),
136 .statesize = sizeof(struct sha256_state),
151 .descsize = sizeof(struct sha256_state),
/linux-6.1.9/arch/arm64/crypto/
Dsha2-ce-glue.c26 struct sha256_state sst;
36 static void __sha2_ce_transform(struct sha256_state *sst, u8 const *src, in __sha2_ce_transform()
58 static void __sha256_block_data_order(struct sha256_state *sst, u8 const *src, in __sha256_block_data_order()
123 memcpy(out, &sctx->sst, sizeof(struct sha256_state)); in sha256_ce_export()
131 memcpy(&sctx->sst, in, sizeof(struct sha256_state)); in sha256_ce_import()
144 .statesize = sizeof(struct sha256_state),
161 .statesize = sizeof(struct sha256_state),
Dsha256-glue.c29 static void __sha256_block_data_order(struct sha256_state *sst, u8 const *src, in __sha256_block_data_order()
38 static void __sha256_block_neon(struct sha256_state *sst, u8 const *src, in __sha256_block_neon()
73 .descsize = sizeof(struct sha256_state),
85 .descsize = sizeof(struct sha256_state),
96 struct sha256_state *sctx = shash_desc_ctx(desc); in sha256_update_neon()
153 .descsize = sizeof(struct sha256_state),
165 .descsize = sizeof(struct sha256_state),
/linux-6.1.9/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.c30 struct sha256_state *sctx = shash_desc_ctx(desc); in crypto_sha256_neon_update()
72 .descsize = sizeof(struct sha256_state),
86 .descsize = sizeof(struct sha256_state),
Dsha256_glue.c34 BUILD_BUG_ON(offsetof(struct sha256_state, state) != 0); in crypto_sha256_arm_update()
63 .descsize = sizeof(struct sha256_state),
77 .descsize = sizeof(struct sha256_state),
/linux-6.1.9/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-6.1.9/lib/crypto/
Dsha256.c122 void sha256_update(struct sha256_state *sctx, const u8 *data, unsigned int len) in sha256_update()
154 void sha224_update(struct sha256_state *sctx, const u8 *data, unsigned int len) in sha224_update()
160 static void __sha256_final(struct sha256_state *sctx, u8 *out, int digest_words) in __sha256_final()
187 void sha256_final(struct sha256_state *sctx, u8 *out) in sha256_final()
193 void sha224_final(struct sha256_state *sctx, u8 *out) in sha224_final()
201 struct sha256_state sctx; in sha256()
/linux-6.1.9/drivers/crypto/
Dpadlock-sha.c143 struct sha256_state state; in padlock_sha256_finup()
255 .statesize = sizeof(struct sha256_state),
354 struct sha256_state *sctx = shash_desc_ctx(desc); in padlock_sha256_init_nano()
356 *sctx = (struct sha256_state){ in padlock_sha256_init_nano()
367 struct sha256_state *sctx = shash_desc_ctx(desc); in padlock_sha256_update_nano()
415 struct sha256_state *state = in padlock_sha256_final_nano()
416 (struct sha256_state *)shash_desc_ctx(desc); in padlock_sha256_final_nano()
482 .descsize = sizeof(struct sha256_state),
483 .statesize = sizeof(struct sha256_state),
Dimg-hash.c818 .statesize = sizeof(struct sha256_state),
844 .statesize = sizeof(struct sha256_state),
Dn2_core.c305 struct sha256_state sha256;
1282 .statesize = sizeof(struct sha256_state),
1291 .statesize = sizeof(struct sha256_state),
/linux-6.1.9/crypto/
Dsha256_generic.c67 .descsize = sizeof(struct sha256_state),
81 .descsize = sizeof(struct sha256_state),
/linux-6.1.9/arch/s390/purgatory/
Dpurgatory.c19 struct sha256_state sctx; in verify_sha256_digest()
/linux-6.1.9/arch/riscv/purgatory/
Dpurgatory.c23 struct sha256_state ss; in verify_sha256_digest()
/linux-6.1.9/arch/x86/purgatory/
Dpurgatory.c27 struct sha256_state sctx; in verify_sha256_digest()
/linux-6.1.9/drivers/crypto/marvell/cesa/
Dhash.c1067 struct sha256_state *out_state = out; in mv_cesa_sha256_export()
1075 const struct sha256_state *in_state = in; in mv_cesa_sha256_import()
1091 .statesize = sizeof(struct sha256_state),
1417 struct sha256_state istate, ostate; in mv_cesa_ahmac_sha256_setkey()
1468 .statesize = sizeof(struct sha256_state),
/linux-6.1.9/drivers/crypto/allwinner/sun8i-ss/
Dsun8i-ss-core.c364 .statesize = sizeof(struct sha256_state),
394 .statesize = sizeof(struct sha256_state),
/linux-6.1.9/drivers/crypto/rockchip/
Drk3288_crypto_ahash.c396 .statesize = sizeof(struct sha256_state),
/linux-6.1.9/drivers/crypto/allwinner/sun8i-ce/
Dsun8i-ce-core.c454 .statesize = sizeof(struct sha256_state),
484 .statesize = sizeof(struct sha256_state),

12