From b5b92a8a3847e2f3ad5ea2b429c4c6129ed6cb53 Mon Sep 17 00:00:00 2001 From: lloyd Date: Wed, 31 Dec 2014 12:57:47 +0000 Subject: Decruft --- src/lib/stream/chacha/chacha.cpp | 14 -------------- src/lib/stream/chacha/chacha.h | 2 +- 2 files changed, 1 insertion(+), 15 deletions(-) (limited to 'src/lib') diff --git a/src/lib/stream/chacha/chacha.cpp b/src/lib/stream/chacha/chacha.cpp index 419f8f67a..f404b3933 100644 --- a/src/lib/stream/chacha/chacha.cpp +++ b/src/lib/stream/chacha/chacha.cpp @@ -124,9 +124,6 @@ void ChaCha::key_schedule(const byte key[], size_t length) set_iv(ZERO, sizeof(ZERO)); } -/* -* Return the name of this type -*/ void ChaCha::set_iv(const byte iv[], size_t length) { if(!valid_iv_length(length)) @@ -154,17 +151,6 @@ void ChaCha::set_iv(const byte iv[], size_t length) m_position = 0; } -/* -* Return the name of this type -*/ -std::string ChaCha::name() const - { - return "ChaCha"; - } - -/* -* Clear memory of sensitive data -*/ void ChaCha::clear() { zap(m_state); diff --git a/src/lib/stream/chacha/chacha.h b/src/lib/stream/chacha/chacha.h index c7c11771d..635da2af4 100644 --- a/src/lib/stream/chacha/chacha.h +++ b/src/lib/stream/chacha/chacha.h @@ -31,7 +31,7 @@ class BOTAN_DLL ChaCha : public StreamCipher } void clear(); - std::string name() const; + std::string name() const { return "ChaCha"; } StreamCipher* clone() const { return new ChaCha; } protected: -- cgit v1.2.3