From d3da41380064015add8ffc16c91dbfa57cbd954b Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Tue, 27 Feb 2018 22:38:29 +0000 Subject: Add a test that we can setup Blowfish encryption properly --- lib/common/Guards.h | 5 +++++ lib/crypto/CipherBlowfish.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/common/Guards.h b/lib/common/Guards.h index 46b6d2bd..3637b261 100644 --- a/lib/common/Guards.h +++ b/lib/common/Guards.h @@ -110,6 +110,11 @@ public: return (type)mpBlock; } + int GetSize() const + { + return mBlockSize; + } + void Resize(int NewSize) { void *ptrn = ::realloc(mpBlock, NewSize); diff --git a/lib/crypto/CipherBlowfish.h b/lib/crypto/CipherBlowfish.h index 152a265c..1894e2ac 100644 --- a/lib/crypto/CipherBlowfish.h +++ b/lib/crypto/CipherBlowfish.h @@ -41,7 +41,7 @@ public: virtual std::string GetCipherName() const { std::ostringstream out; - out << "AES"; + out << "Blowfish"; out << mKeyLength; return out.str(); } -- cgit v1.2.3