summaryrefslogtreecommitdiffhomepage
path: root/src/crypto/zinc/selftest/chacha20poly1305.h
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-09-17 03:58:17 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-09-17 04:36:24 +0200
commitcda3dc51520680d52df56fd22f42db4e64c84600 (patch)
tree9747b58b87f90374a4d3d6fa5adc8aecd0bd7b7e /src/crypto/zinc/selftest/chacha20poly1305.h
parentbf7d9c0523269ed7f99f58e8e67d4fb37ba51209 (diff)
poly1305: do not require simd context for arch
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/crypto/zinc/selftest/chacha20poly1305.h')
-rw-r--r--src/crypto/zinc/selftest/chacha20poly1305.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypto/zinc/selftest/chacha20poly1305.h b/src/crypto/zinc/selftest/chacha20poly1305.h
index f0ad51c..e5e8de5 100644
--- a/src/crypto/zinc/selftest/chacha20poly1305.h
+++ b/src/crypto/zinc/selftest/chacha20poly1305.h
@@ -7649,7 +7649,7 @@ chacha20poly1305_selftest_encrypt_bignonce(u8 *dst, const u8 *src,
chacha20_state.counter[3] = get_unaligned_le32(nonce + 8);
chacha20(&chacha20_state, b.block0, b.block0, sizeof(b.block0),
simd_context);
- poly1305_init(&poly1305_state, b.block0, simd_context);
+ poly1305_init(&poly1305_state, b.block0);
poly1305_update(&poly1305_state, ad, ad_len, simd_context);
poly1305_update(&poly1305_state, pad0, (0x10 - ad_len) & 0xf,
simd_context);