aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/modes/aead/chacha20poly1305/chacha20poly1305.h
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-11-10 22:06:52 -0500
committerJack Lloyd <[email protected]>2016-11-10 22:06:52 -0500
commit618f890fd7ede74c728612ca8bc590c72ee353f1 (patch)
tree3ac9016fe603525f04c194e8be9aa6152a049c40 /src/lib/modes/aead/chacha20poly1305/chacha20poly1305.h
parentb7ae8043e963467eb222a44f48d66a1df36d9371 (diff)
parent06b44d8ed339b3a467f10a326fd209b0b9496060 (diff)
Merge GH #552 Add Cipher_Mode::reset, better AEAD tests
Diffstat (limited to 'src/lib/modes/aead/chacha20poly1305/chacha20poly1305.h')
-rw-r--r--src/lib/modes/aead/chacha20poly1305/chacha20poly1305.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/modes/aead/chacha20poly1305/chacha20poly1305.h b/src/lib/modes/aead/chacha20poly1305/chacha20poly1305.h
index 553508854..f58bd48ac 100644
--- a/src/lib/modes/aead/chacha20poly1305/chacha20poly1305.h
+++ b/src/lib/modes/aead/chacha20poly1305/chacha20poly1305.h
@@ -1,6 +1,7 @@
/*
* ChaCha20Poly1305 AEAD
* (C) 2014 Jack Lloyd
+* (C) 2016 Daniel Neus, Rohde & Schwarz Cybersecurity
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
@@ -37,6 +38,9 @@ class BOTAN_DLL ChaCha20Poly1305_Mode : public AEAD_Mode
size_t tag_size() const override { return 16; }
void clear() override;
+
+ void reset() override;
+
protected:
std::unique_ptr<StreamCipher> m_chacha;
std::unique_ptr<MessageAuthenticationCode> m_poly1305;