aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/stream/chacha/chacha.h
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-09-01 12:56:43 -0400
committerJack Lloyd <[email protected]>2016-09-01 13:20:05 -0400
commite358acf9e3fd74e7dc307a203977652ca3a9a3c9 (patch)
treeef184fb090053582fa3eb4abaee264ae4a17849f /src/lib/stream/chacha/chacha.h
parent858e3be10396e082901b612ee8c5e18cd3e47286 (diff)
ChaCha 4 ways
Diffstat (limited to 'src/lib/stream/chacha/chacha.h')
-rw-r--r--src/lib/stream/chacha/chacha.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/stream/chacha/chacha.h b/src/lib/stream/chacha/chacha.h
index ab28f9563..34b8bbb87 100644
--- a/src/lib/stream/chacha/chacha.h
+++ b/src/lib/stream/chacha/chacha.h
@@ -47,10 +47,12 @@ class BOTAN_DLL ChaCha final : public StreamCipher
private:
void key_schedule(const byte key[], size_t key_len) override;
- void chacha(byte output[64], const u32bit input[16], size_t rounds);
+ void incr_state_counter(size_t howmany);
+
+ void chacha_x4(byte output[64*4], u32bit state[16], size_t rounds);
#if defined(BOTAN_TARGET_SUPPORTS_SSE2)
- void chacha_sse2(byte output[64], const u32bit input[16], size_t rounds);
+ void chacha_sse2_x4(byte output[64*4], u32bit state[16], size_t rounds);
#endif
size_t m_rounds;