summaryrefslogtreecommitdiff
path: root/default.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2017-05-06 09:07:24 -0400
committerJeffrey Walton <noloader@gmail.com>2017-05-06 09:07:24 -0400
commit3ea8e0655fb3318d2a58b66fd33bbfb4b5dee445 (patch)
tree422208b8a051099170e92e9ccee34c0df1c5059e /default.h
parent6ad999ef2f1970837718c7cc52992f3895615da5 (diff)
downloadcryptopp-git-3ea8e0655fb3318d2a58b66fd33bbfb4b5dee445.tar.gz
Add constants to default encryptor classes
Diffstat (limited to 'default.h')
-rw-r--r--default.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/default.h b/default.h
index 691cbbb3..56f54c98 100644
--- a/default.h
+++ b/default.h
@@ -180,6 +180,12 @@ template <class BC, class H, class MAC, class Info>
class DataEncryptorWithMAC : public ProxyFilter
{
public:
+ CRYPTOPP_CONSTANT(BLOCKSIZE = Info::BLOCKSIZE)
+ CRYPTOPP_CONSTANT(KEYLENGTH = Info::KEYLENGTH)
+ CRYPTOPP_CONSTANT(SALTLENGTH = Info::SALTLENGTH)
+ CRYPTOPP_CONSTANT(DIGESTSIZE = Info::DIGESTSIZE)
+ CRYPTOPP_CONSTANT(ITERATIONS = Info::ITERATIONS)
+
//! \brief Constructs a DataEncryptorWithMAC
//! \param passphrase a C-String password
//! \param attachment a BufferedTransformation to attach to this object
@@ -220,6 +226,12 @@ template <class BC, class H, class MAC, class Info>
class DataDecryptorWithMAC : public ProxyFilter
{
public:
+ CRYPTOPP_CONSTANT(BLOCKSIZE = Info::BLOCKSIZE)
+ CRYPTOPP_CONSTANT(KEYLENGTH = Info::KEYLENGTH)
+ CRYPTOPP_CONSTANT(SALTLENGTH = Info::SALTLENGTH)
+ CRYPTOPP_CONSTANT(DIGESTSIZE = Info::DIGESTSIZE)
+ CRYPTOPP_CONSTANT(ITERATIONS = Info::ITERATIONS)
+
//! \brief Constructs a DataDecryptor
//! \param passphrase a C-String password
//! \param attachment a BufferedTransformation to attach to this object