Home
last modified time | relevance | path

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

12

/openbmc/linux/include/crypto/
H A 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()
31 struct sha256_state *sctx = shash_desc_ctx(desc); in sha256_base_init()
37 static inline int lib_sha256_base_do_update(struct sha256_state *sctx, in lib_sha256_base_do_update()
79 struct sha256_state *sctx = shash_desc_ctx(desc); in sha256_base_do_update()
84 static inline int lib_sha256_base_do_finalize(struct sha256_state *sctx, in lib_sha256_base_do_finalize()
109 struct sha256_state *sctx = shash_desc_ctx(desc); in sha256_base_do_finalize()
114 static inline int lib_sha256_base_finish(struct sha256_state *sctx, u8 *out, in lib_sha256_base_finish()
130 struct sha256_state *sctx = shash_desc_ctx(desc); in sha256_base_finish()
H A 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()
132 void sha224_final(struct sha256_state *sctx, u8 *out);
/openbmc/linux/arch/powerpc/crypto/
H A 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 …]
/openbmc/linux/arch/x86/crypto/
H A Dsha256_ssse3_glue.c44 asmlinkage void sha256_transform_ssse3(struct sha256_state *state,
58 struct sha256_state *sctx = shash_desc_ctx(desc); in _sha256_update()
68 BUILD_BUG_ON(offsetof(struct sha256_state, state) != 0); in _sha256_update()
116 .descsize = sizeof(struct sha256_state),
130 .descsize = sizeof(struct sha256_state),
181 .descsize = sizeof(struct sha256_state),
195 .descsize = sizeof(struct sha256_state),
257 .descsize = sizeof(struct sha256_state),
271 .descsize = sizeof(struct sha256_state),
332 .descsize = sizeof(struct sha256_state),
[all …]
H A 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])
/openbmc/linux/arch/mips/cavium-octeon/crypto/
H A 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),
/openbmc/linux/arch/sparc/crypto/
H A 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),
/openbmc/linux/arch/arm64/crypto/
H A 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),
H A Dsha256-glue.c30 static void __sha256_block_data_order(struct sha256_state *sst, u8 const *src, in __sha256_block_data_order()
39 static void __sha256_block_neon(struct sha256_state *sst, u8 const *src, in __sha256_block_neon()
74 .descsize = sizeof(struct sha256_state),
86 .descsize = sizeof(struct sha256_state),
97 struct sha256_state *sctx = shash_desc_ctx(desc); in sha256_update_neon()
154 .descsize = sizeof(struct sha256_state),
166 .descsize = sizeof(struct sha256_state),
/openbmc/linux/arch/arm/crypto/
H A Dsha256_neon_glue.c24 asmlinkage void sha256_block_data_order_neon(struct sha256_state *digest,
30 struct sha256_state *sctx = shash_desc_ctx(desc); in crypto_sha256_neon_update()
70 .descsize = sizeof(struct sha256_state),
84 .descsize = sizeof(struct sha256_state),
H A 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),
H A Dsha256_glue.c27 asmlinkage void sha256_block_data_order(struct sha256_state *state,
34 BUILD_BUG_ON(offsetof(struct sha256_state, state) != 0); in crypto_sha256_arm_update()
60 .descsize = sizeof(struct sha256_state),
74 .descsize = sizeof(struct sha256_state),
/openbmc/linux/lib/crypto/
H A Dsha256.c121 static void sha256_transform_blocks(struct sha256_state *sctx, in sha256_transform_blocks()
134 void sha256_update(struct sha256_state *sctx, const u8 *data, unsigned int len) in sha256_update()
140 static void __sha256_final(struct sha256_state *sctx, u8 *out, int digest_size) in __sha256_final()
146 void sha256_final(struct sha256_state *sctx, u8 *out) in sha256_final()
152 void sha224_final(struct sha256_state *sctx, u8 *out) in sha224_final()
160 struct sha256_state sctx; in sha256()
/openbmc/linux/arch/s390/crypto/
H A 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),
/openbmc/linux/drivers/crypto/
H A 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),
H A Dimg-hash.c818 .statesize = sizeof(struct sha256_state),
844 .statesize = sizeof(struct sha256_state),
/openbmc/linux/crypto/
H A Dsha256_generic.c67 .descsize = sizeof(struct sha256_state),
81 .descsize = sizeof(struct sha256_state),
/openbmc/linux/arch/s390/purgatory/
H A Dpurgatory.c19 struct sha256_state sctx; in verify_sha256_digest()
/openbmc/linux/arch/riscv/purgatory/
H A Dpurgatory.c23 struct sha256_state ss; in verify_sha256_digest()
/openbmc/linux/arch/x86/purgatory/
H A Dpurgatory.c28 struct sha256_state sctx; in verify_sha256_digest()
/openbmc/linux/drivers/crypto/starfive/
H A Djh7110-hash.c621 .statesize = sizeof(struct sha256_state),
651 .statesize = sizeof(struct sha256_state),
680 .statesize = sizeof(struct sha256_state),
710 .statesize = sizeof(struct sha256_state),
/openbmc/linux/drivers/crypto/marvell/cesa/
H A 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),
1392 struct sha256_state istate, ostate; in mv_cesa_ahmac_sha256_setkey()
1443 .statesize = sizeof(struct sha256_state),
/openbmc/linux/drivers/crypto/allwinner/sun8i-ss/
H A Dsun8i-ss-core.c386 .statesize = sizeof(struct sha256_state),
419 .statesize = sizeof(struct sha256_state),
/openbmc/linux/drivers/crypto/rockchip/
H A Drk3288_crypto_ahash.c420 .statesize = sizeof(struct sha256_state),
/openbmc/linux/drivers/crypto/allwinner/sun8i-ce/
H A Dsun8i-ce-core.c479 .statesize = sizeof(struct sha256_state),
512 .statesize = sizeof(struct sha256_state),

12