48 std::span<const uint8_t> input8,
54 const uint32_t* input32 =
reinterpret_cast<const uint32_t*
>(input8.data());
57 const auto s0_save = s0;
58 const auto s1_save = s1;
65 for(
size_t r = 0; r != 48; r += 16) {
66 aarch64_sha256_update(s0, s1, w0, &
SHA256_K[r]);
67 w0 = aarch64_sha256_expand_w(w0, w1, w2, w3);
69 aarch64_sha256_update(s0, s1, w1, &
SHA256_K[r + 4 * 1]);
70 w1 = aarch64_sha256_expand_w(w1, w2, w3, w0);
72 aarch64_sha256_update(s0, s1, w2, &
SHA256_K[r + 4 * 2]);
73 w2 = aarch64_sha256_expand_w(w2, w3, w0, w1);
75 aarch64_sha256_update(s0, s1, w3, &
SHA256_K[r + 4 * 3]);
76 w3 = aarch64_sha256_expand_w(w3, w0, w1, w2);
79 aarch64_sha256_update(s0, s1, w0, &
SHA256_K[4 * 12]);
80 aarch64_sha256_update(s0, s1, w1, &
SHA256_K[4 * 13]);
81 aarch64_sha256_update(s0, s1, w2, &
SHA256_K[4 * 14]);
82 aarch64_sha256_update(s0, s1, w3, &
SHA256_K[4 * 15]);