summaryrefslogtreecommitdiff
path: root/base32.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2015-11-22 19:11:31 -0500
committerJeffrey Walton <noloader@gmail.com>2015-11-22 19:11:31 -0500
commit62618fda97bbde6d4cc4752101e69839fc4f3b6f (patch)
treebcdacdfed312bb5ac9e4c504ff2a3c293214fe40 /base32.h
parentc45435812225aa68d122c7de246e5f60b509766c (diff)
downloadcryptopp-git-62618fda97bbde6d4cc4752101e69839fc4f3b6f.tar.gz
Revert botched "Crypto++ 5.6.3 check-in". Corruption due to VMware adding garbage to the end of some source files during drag and drop from guest to host.
This reverts commit c45435812225aa68d122c7de246e5f60b509766c.
Diffstat (limited to 'base32.h')
-rw-r--r--base32.h26
1 files changed, 2 insertions, 24 deletions
diff --git a/base32.h b/base32.h
index 6790e59d..ad4da97c 100644
--- a/base32.h
+++ b/base32.h
@@ -18,32 +18,12 @@ NAMESPACE_BEGIN(CryptoPP)
class Base32Encoder : public SimpleProxyFilter
{
public:
- //! \brief Construct a Base32Encoder
- //! \param attachment a BufferedTrasformation to attach to this object
- //! \param uppercase a flag indicating uppercase output
- //! \param groupSize the size of the grouping
- //! \param separator the separator to use between groups
- //! \param terminator the terminator appeand after processing
- //! \details Base32Encoder() constructs a default encoder. The constructor lacks fields for padding and
- //! line breaks. You must use IsolatedInitialize() to change the default padding character or suppress it.
- //! \sa IsolatedInitialize() for an example of modifying a Base32Encoder after construction.
- Base32Encoder(BufferedTransformation *attachment = NULL, bool uppercase = true, int groupSize = 0, const std::string &separator = ":", const std::string &terminator = "")
+ Base32Encoder(BufferedTransformation *attachment = NULL, bool uppercase = true, int outputGroupSize = 0, const std::string &separator = ":", const std::string &terminator = "")
: SimpleProxyFilter(new BaseN_Encoder(new Grouper), attachment)
{
- IsolatedInitialize(MakeParameters(Name::Uppercase(), uppercase)(Name::GroupSize(), groupSize)(Name::Separator(), ConstByteArrayParameter(separator))(Name::Terminator(), ConstByteArrayParameter(terminator)));
+ IsolatedInitialize(MakeParameters(Name::Uppercase(), uppercase)(Name::GroupSize(), outputGroupSize)(Name::Separator(), ConstByteArrayParameter(separator))(Name::Terminator(), ConstByteArrayParameter(terminator)));
}
- //! \brief Initialize or reinitialize this object, without signal propagation
- //! \param parameters a set of NameValuePairs used to initialize this object
- //! \details IsolatedInitialize() is used to initialize or reinitialize an object using a variable
- //! number of arbitrarily typed arguments. IsolatedInitialize() does not call Initialize() on attached
- //! transformations. If initialization should be propagated, then use the Initialize() function.
- //! \details The following code modifies the padding and line break parameters for an encoder:
- //! <pre>
- //! Base32Encoder encoder;
- //! AlgorithmParameters params = MakeParameters(Pad(), false)(InsertLineBreaks(), false);
- //! encoder.IsolatedInitialize(params);
- //! </pre>
void IsolatedInitialize(const NameValuePairs &parameters);
};
@@ -54,8 +34,6 @@ public:
class Base32Decoder : public BaseN_Decoder
{
public:
- //! \brief Construct a Base32Decoder
- //! \param attachment a BufferedTrasformation to attach to this object
Base32Decoder(BufferedTransformation *attachment = NULL)
: BaseN_Decoder(GetDefaultDecodingLookupArray(), 5, attachment) {}