diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-04-05 03:30:37 -0400 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-04-05 03:30:46 -0400 |
commit | da597e51ab0c5c040e71674775c1b9f695255043 (patch) | |
tree | efc822035eaf0cef219b9f362d21cabeac37058e /src/selftest | |
parent | 6866582d10b8f4e61b794c07b9ea6b9f3dc04f69 (diff) |
chacha20poly1305: put magic constant behind macro
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/selftest')
-rw-r--r-- | src/selftest/chacha20poly1305.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/selftest/chacha20poly1305.h b/src/selftest/chacha20poly1305.h index 294eeea..a6a5598 100644 --- a/src/selftest/chacha20poly1305.h +++ b/src/selftest/chacha20poly1305.h @@ -1279,7 +1279,7 @@ static inline void chacha20poly1305_selftest_encrypt_bignonce(u8 *dst, const u8 __le64 len; struct poly1305_ctx poly1305_state; struct chacha20_ctx chacha20_state = {{ - 0x61707865, 0x3320646e, 0x79622d32, 0x6b206574, + EXPAND_32_BYTE_K, le32_to_cpuvp(key + 0), le32_to_cpuvp(key + 4), le32_to_cpuvp(key + 8), le32_to_cpuvp(key + 12), le32_to_cpuvp(key + 16), le32_to_cpuvp(key + 20), le32_to_cpuvp(key + 24), le32_to_cpuvp(key + 28), 0, le32_to_cpuvp(nonce + 0), le32_to_cpuvp(nonce + 4), le32_to_cpuvp(nonce + 8) |