summaryrefslogtreecommitdiff
path: root/lib/crypto/CipherAES.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/crypto/CipherAES.h')
-rw-r--r--lib/crypto/CipherAES.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/crypto/CipherAES.h b/lib/crypto/CipherAES.h
index 50b96dc3..d2c9ed65 100644
--- a/lib/crypto/CipherAES.h
+++ b/lib/crypto/CipherAES.h
@@ -37,6 +37,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; }
+
private:
CipherDescription::CipherMode mMode;
const void *mpKey;