/kernel/linux/linux-5.10/arch/powerpc/crypto/ |
H A D | sha256-spe-glue.c | 49 static inline void ppc_sha256_clear_context(struct sha256_state *sctx) in ppc_sha256_clear_context() 51 int count = sizeof(struct sha256_state) >> 2; in ppc_sha256_clear_context() 55 BUILD_BUG_ON(sizeof(struct sha256_state) % 4); in ppc_sha256_clear_context() 61 struct sha256_state *sctx = shash_desc_ctx(desc); in ppc_spe_sha256_init() 78 struct sha256_state *sctx = shash_desc_ctx(desc); in ppc_spe_sha224_init() 96 struct sha256_state *sctx = shash_desc_ctx(desc); in ppc_spe_sha256_update() 140 struct sha256_state *sctx = shash_desc_ctx(desc); in ppc_spe_sha256_final() 201 struct sha256_state *sctx = shash_desc_ctx(desc); in ppc_spe_sha256_export() 209 struct sha256_state *sctx = shash_desc_ctx(desc); in ppc_spe_sha256_import() 222 .descsize = sizeof(struct sha256_state), [all...] |
/kernel/linux/linux-6.6/include/crypto/ |
H A D | sha256_base.h | 18 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 D | sha2.h | 67 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);
|
/kernel/linux/linux-5.10/arch/mips/cavium-octeon/crypto/ |
H A D | octeon-sha256.c | 32 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...] |
/kernel/linux/linux-6.6/arch/powerpc/crypto/ |
H A D | sha256-spe-glue.c | 50 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...] |
/kernel/linux/linux-5.10/arch/x86/crypto/ |
H A D | sha256_ssse3_glue.c | 43 asmlinkage void sha256_transform_ssse3(struct sha256_state *state, 49 struct sha256_state *sctx = shash_desc_ctx(desc); in _sha256_update() 56 * Make sure struct sha256_state begins directly with the SHA256 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 *stat [all...] |
/kernel/linux/linux-6.6/arch/x86/crypto/ |
H A D | sha256_ssse3_glue.c | 44 asmlinkage void sha256_transform_ssse3(struct sha256_state *state, 58 struct sha256_state *sctx = shash_desc_ctx(desc); in _sha256_update() 65 * Make sure struct sha256_state begins directly with the SHA256 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), 155 asmlinkage void sha256_transform_avx(struct sha256_state *state, 181 .descsize = sizeof(struct sha256_state), 195 .descsize = sizeof(struct sha256_state), 231 asmlinkage void sha256_transform_rorx(struct sha256_state *stat [all...] |
/kernel/linux/linux-5.10/arch/sparc/crypto/ |
H A D | sha256_glue.c | 31 struct sha256_state *sctx = shash_desc_ctx(desc); in sha224_sparc64_init() 47 struct sha256_state *sctx = shash_desc_ctx(desc); in sha256_sparc64_init() 61 static void __sha256_sparc64_update(struct sha256_state *sctx, const u8 *data, in __sha256_sparc64_update() 85 struct sha256_state *sctx = shash_desc_ctx(desc); in sha256_sparc64_update() 100 struct sha256_state *sctx = shash_desc_ctx(desc); in sha256_sparc64_final() 145 struct sha256_state *sctx = shash_desc_ctx(desc); in sha256_sparc64_export() 153 struct sha256_state *sctx = shash_desc_ctx(desc); in sha256_sparc64_import() 166 .descsize = sizeof(struct sha256_state), 167 .statesize = sizeof(struct sha256_state), 182 .descsize = sizeof(struct sha256_state), [all...] |
/kernel/linux/linux-6.6/arch/mips/cavium-octeon/crypto/ |
H A D | octeon-sha256.c | 33 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), [all...] |
/kernel/linux/linux-5.10/include/crypto/ |
H A D | sha256_base.h | 18 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() 42 struct sha256_state *sctx = shash_desc_ctx(desc); in sha256_base_do_update() 79 struct sha256_state *sctx = shash_desc_ctx(desc); in sha256_base_do_finalize() 101 struct sha256_state *sctx = shash_desc_ctx(desc); in sha256_base_finish() 108 *sctx = (struct sha256_state){}; in sha256_base_finish()
|
H A D | sha.h | 84 struct sha256_state { struct 136 static inline void sha256_init(struct sha256_state *sctx) in sha256_init() 148 void sha256_update(struct sha256_state *sctx, const u8 *data, unsigned int len); 149 void sha256_final(struct sha256_state *sctx, u8 *out); 152 static inline void sha224_init(struct sha256_state *sctx) in sha224_init() 164 void sha224_update(struct sha256_state *sctx, const u8 *data, unsigned int len); 165 void sha224_final(struct sha256_state *sctx, u8 *out);
|
/kernel/linux/linux-6.6/arch/sparc/crypto/ |
H A D | sha256_glue.c | 30 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),
|
/kernel/linux/linux-5.10/arch/arm64/crypto/ |
H A D | sha256-glue.c | 29 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),
|
H A D | sha2-ce-glue.c | 26 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),
|
/kernel/linux/linux-6.6/arch/arm64/crypto/ |
H A D | sha256-glue.c | 30 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),
|
H A D | sha2-ce-glue.c | 26 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),
|
/kernel/linux/linux-6.6/arch/arm/crypto/ |
H A D | sha256_neon_glue.c | 24 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 D | sha256_glue.c | 27 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),
|
H A D | sha2-ce-glue.c | 27 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),
|
/kernel/linux/linux-5.10/arch/s390/crypto/ |
H A D | sha256_s390.c | 41 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),
|
/kernel/linux/linux-5.10/arch/arm/crypto/ |
H A D | sha2-ce-glue.c | 27 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 D | sha256_neon_glue.c | 30 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),
|
/kernel/linux/linux-6.6/arch/s390/crypto/ |
H A D | sha256_s390.c | 41 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),
|
/kernel/linux/linux-5.10/drivers/crypto/nx/ |
H A D | nx-sha256.c | 39 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),
|
/kernel/linux/linux-5.10/drivers/crypto/ |
H A D | padlock-sha.c | 142 struct sha256_state state; in padlock_sha256_finup() 254 .statesize = sizeof(struct sha256_state), 353 struct sha256_state *sctx = shash_desc_ctx(desc); in padlock_sha256_init_nano() 355 *sctx = (struct sha256_state){ in padlock_sha256_init_nano() 366 struct sha256_state *sctx = shash_desc_ctx(desc); in padlock_sha256_update_nano() 414 struct sha256_state *state = in padlock_sha256_final_nano() 415 (struct sha256_state *)shash_desc_ctx(desc); in padlock_sha256_final_nano() 481 .descsize = sizeof(struct sha256_state), 482 .statesize = sizeof(struct sha256_state),
|