diff options
author | Chris Wilson <chris+github@qwirx.com> | 2018-02-27 22:38:29 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2018-02-27 22:38:29 +0000 |
commit | d3da41380064015add8ffc16c91dbfa57cbd954b (patch) | |
tree | fe86bde5e04f7fd66acd3de142e455e54bac7129 /lib | |
parent | bc48bec97b65534966da74a07ed3edb3f13f6263 (diff) |
Add a test that we can setup Blowfish encryption properly
Diffstat (limited to 'lib')
-rw-r--r-- | lib/common/Guards.h | 5 | ||||
-rw-r--r-- | lib/crypto/CipherBlowfish.h | 2 |
2 files changed, 6 insertions, 1 deletions
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(); } |