From 26c898448b0c88c9a9b1cd7609847d0df9ab52bf Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sat, 28 Apr 2012 18:13:19 +0000 Subject: Allow ciphers to identify themselves for debugging. --- lib/crypto/CipherBlowfish.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'lib/crypto/CipherBlowfish.h') 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); -- cgit v1.2.3