Lines Matching +full:256 +full:b
3 * sha2-ce-core.S - core SHA-224/SHA-256 transform using v8 Crypto Extensions
30 mov dg2v.16b, dg0v.16b
51 * The SHA-256 round constants
97 CPU_LE( rev32 v16.16b, v16.16b )
98 CPU_LE( rev32 v17.16b, v17.16b )
99 CPU_LE( rev32 v18.16b, v18.16b )
100 CPU_LE( rev32 v19.16b, v19.16b )
103 mov dg0v.16b, dgav.16b
104 mov dg1v.16b, dgbv.16b
134 cbnz x2, 0b
169 // v0-v15 are used to cache the SHA-256 round constants.
193 // Do 4 rounds of SHA-256 for each of two messages (interleaved). m0_a
216 mov t1_a.16b, state0_a.16b
217 mov t1_b.16b, state0_b.16b
237 // This function computes the SHA-256 digests of two messages |data1| and
241 // The instructions for the two SHA-256 operations are interleaved. On many
243 // to taking better advantage of the CPU's SHA-256 and SIMD throughput.
266 ld1 {v16.16b-v19.16b}, [x9]
267 st1 {v16.16b-v19.16b}, [sp]
269 ld1 {v16.16b-v19.16b}, [data1], #64
271 st1 {v16.16b-v19.16b}, [x9]
274 ld1 {v20.16b-v23.16b}, [data2], #64
275 st1 {v20.16b-v23.16b}, [x9]
282 mov state0_b.16b, state0_a.16b
283 mov state1_b.16b, state1_a.16b
284 b .Lfinup2x_loop_have_data
288 mov state0_b.16b, state0_a.16b
289 mov state1_b.16b, state1_a.16b
296 CPU_LE( rev32 v16.16b, v16.16b )
297 CPU_LE( rev32 v17.16b, v17.16b )
298 CPU_LE( rev32 v18.16b, v18.16b )
299 CPU_LE( rev32 v19.16b, v19.16b )
300 CPU_LE( rev32 v20.16b, v20.16b )
301 CPU_LE( rev32 v21.16b, v21.16b )
302 CPU_LE( rev32 v22.16b, v22.16b )
303 CPU_LE( rev32 v23.16b, v23.16b )
309 // Do the SHA-256 rounds on each block.
345 CPU_BE( movi v16.16b, #0 )
348 movi v17.16b, #0
353 b.ge 1f // will count spill into its own block?
358 b 2f
362 ld1 {v16.16b-v19.16b}, [data1]
363 st1 {v16.16b-v19.16b}, [sp]
365 ld1 {v20.16b-v23.16b}, [data2]
366 st1 {v20.16b-v23.16b}, [sp]
368 b .Lfinup2x_loop_have_data
381 b 1f
391 mov v20.16b, v16.16b
394 mov v23.16b, v19.16b
396 b .Lfinup2x_loop_have_bswapped_data
400 CPU_LE( rev32 state0_a.16b, state0_a.16b )
401 CPU_LE( rev32 state1_a.16b, state1_a.16b )
402 CPU_LE( rev32 state0_b.16b, state0_b.16b )
403 CPU_LE( rev32 state1_b.16b, state1_b.16b )