summaryrefslogtreecommitdiff
path: root/lib/crypto/CipherBlowfish.h
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2012-04-28 18:13:19 +0000
committerChris Wilson <chris+github@qwirx.com>2012-04-28 18:13:19 +0000
commit26c898448b0c88c9a9b1cd7609847d0df9ab52bf (patch)
treeeafa7290f1d1c7e6074173e19a351650cbe3e69b /lib/crypto/CipherBlowfish.h
parent3c60fe12ad2b8cb476991a3a7c7822782ce80953 (diff)
Allow ciphers to identify themselves for debugging.
Diffstat (limited to 'lib/crypto/CipherBlowfish.h')
-rw-r--r--lib/crypto/CipherBlowfish.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/crypto/CipherBlowfish.h b/lib/crypto/CipherBlowfish.h
index b3bcf028..152a265c 100644
--- a/lib/crypto/CipherBlowfish.h
+++ b/lib/crypto/CipherBlowfish.h
@@ -38,6 +38,15 @@ public:
// Setup any other parameters
virtual void SetupParameters(EVP_CIPHER_CTX *pCipherContext) const;
+ virtual std::string GetCipherName() const
+ {
+ std::ostringstream out;
+ out << "AES";
+ out << mKeyLength;
+ return out.str();
+ }
+ virtual CipherMode GetCipherMode() const { return mMode; }
+
#ifdef HAVE_OLD_SSL
CipherDescription *Clone() const;
void SetIV(const void *pIV);