diff options
author | Jack Lloyd <[email protected]> | 2016-08-31 17:09:23 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2016-09-01 13:20:05 -0400 |
commit | 858e3be10396e082901b612ee8c5e18cd3e47286 (patch) | |
tree | 6df7679900e75f1fee8c44340ac29fc742a92831 /src/lib/stream/chacha/chacha.h | |
parent | e4656be6a8e601b64c759906bacf543388b3cf22 (diff) |
SSE2 ChaCha
Diffstat (limited to 'src/lib/stream/chacha/chacha.h')
-rw-r--r-- | src/lib/stream/chacha/chacha.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/stream/chacha/chacha.h b/src/lib/stream/chacha/chacha.h index f8f42e41d..ab28f9563 100644 --- a/src/lib/stream/chacha/chacha.h +++ b/src/lib/stream/chacha/chacha.h @@ -47,6 +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); + +#if defined(BOTAN_TARGET_SUPPORTS_SSE2) + void chacha_sse2(byte output[64], const u32bit input[16], size_t rounds); +#endif + size_t m_rounds; secure_vector<u32bit> m_state; secure_vector<byte> m_buffer; |