aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/stream/rc4
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-08-08 13:12:50 -0400
committerJack Lloyd <[email protected]>2018-08-08 13:12:50 -0400
commit5111c4c3aa0b51efb85284c2b3e6e664101dbc94 (patch)
tree659d8748c25b56f3b954071948fc42ea5ad86faf /src/lib/stream/rc4
parent9eb10b06036840822c03aec900a1e64f90e77181 (diff)
De-inline functions from stream cipher headers
Diffstat (limited to 'src/lib/stream/rc4')
-rw-r--r--src/lib/stream/rc4/rc4.cpp10
-rw-r--r--src/lib/stream/rc4/rc4.h7
2 files changed, 12 insertions, 5 deletions
diff --git a/src/lib/stream/rc4/rc4.cpp b/src/lib/stream/rc4/rc4.cpp
index 9f0a44d6e..e427c0288 100644
--- a/src/lib/stream/rc4/rc4.cpp
+++ b/src/lib/stream/rc4/rc4.cpp
@@ -29,6 +29,16 @@ void RC4::cipher(const uint8_t in[], uint8_t out[], size_t length)
m_position += length;
}
+StreamCipher* RC4::clone() const
+ {
+ return new RC4(m_SKIP);
+ }
+
+Key_Length_Specification RC4::key_spec() const
+ {
+ return Key_Length_Specification(1, 256);
+ }
+
void RC4::set_iv(const uint8_t*, size_t length)
{
if(length > 0)
diff --git a/src/lib/stream/rc4/rc4.h b/src/lib/stream/rc4/rc4.h
index 796e8d9f9..d59ce01f0 100644
--- a/src/lib/stream/rc4/rc4.h
+++ b/src/lib/stream/rc4/rc4.h
@@ -26,12 +26,9 @@ class BOTAN_PUBLIC_API(2,0) RC4 final : public StreamCipher
void clear() override;
std::string name() const override;
- StreamCipher* clone() const override { return new RC4(m_SKIP); }
+ StreamCipher* clone() const override;
- Key_Length_Specification key_spec() const override
- {
- return Key_Length_Specification(1, 256);
- }
+ Key_Length_Specification key_spec() const override;
/**
* @param skip skip this many initial bytes in the keystream