summaryrefslogtreecommitdiff
path: root/basecode.h
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2003-07-18 04:35:30 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2003-07-18 04:35:30 +0000
commita89df27c0f7ded0a673dc84ce0b0e24c6d05e0d0 (patch)
treea25c153b42dc3f510a7981a031bd04dfa0a7a712 /basecode.h
parent656db5504c8c656d3981fed232da44b2f28b1feb (diff)
downloadcryptopp-a89df27c0f7ded0a673dc84ce0b0e24c6d05e0d0.tar.gz
misc changes
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@103 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'basecode.h')
-rw-r--r--basecode.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/basecode.h b/basecode.h
index b2e53b6..d1fa3b5 100644
--- a/basecode.h
+++ b/basecode.h
@@ -3,6 +3,7 @@
#include "filters.h"
#include "algparam.h"
+#include "argnames.h"
NAMESPACE_BEGIN(CryptoPP)
@@ -15,10 +16,10 @@ public:
BaseN_Encoder(const byte *alphabet, int log2base, BufferedTransformation *attachment=NULL, int padding=-1)
: Unflushable<Filter>(attachment)
{
- IsolatedInitialize(MakeParameters("EncodingLookupArray", alphabet)
- ("Log2Base", log2base)
- ("Pad", padding != -1)
- ("PaddingByte", byte(padding)));
+ IsolatedInitialize(MakeParameters(Name::EncodingLookupArray(), alphabet)
+ (Name::Log2Base(), log2base)
+ (Name::Pad(), padding != -1)
+ (Name::PaddingByte(), byte(padding)));
}
void IsolatedInitialize(const NameValuePairs &parameters);
@@ -40,13 +41,13 @@ public:
BaseN_Decoder(const int *lookup, int log2base, BufferedTransformation *attachment=NULL)
: Unflushable<Filter>(attachment)
{
- IsolatedInitialize(MakeParameters("DecodingLookupArray", lookup)("Log2Base", log2base));
+ IsolatedInitialize(MakeParameters(Name::DecodingLookupArray(), lookup)(Name::Log2Base(), log2base));
}
void IsolatedInitialize(const NameValuePairs &parameters);
unsigned int Put2(const byte *begin, unsigned int length, int messageEnd, bool blocking);
- static void InitializeDecodingLookupArray(int *lookup, const byte *alphabet, unsigned int log2base, bool caseInsensitive);
+ static void InitializeDecodingLookupArray(int *lookup, const byte *alphabet, unsigned int base, bool caseInsensitive);
private:
const int *m_lookup;
@@ -64,9 +65,9 @@ public:
Grouper(int groupSize, const std::string &separator, const std::string &terminator, BufferedTransformation *attachment=NULL)
: Bufferless<Filter>(attachment)
{
- IsolatedInitialize(MakeParameters("GroupSize", groupSize)
- ("Separator", ConstByteArrayParameter(separator))
- ("Terminator", ConstByteArrayParameter(terminator)));
+ IsolatedInitialize(MakeParameters(Name::GroupSize(), groupSize)
+ (Name::Separator(), ConstByteArrayParameter(separator))
+ (Name::Terminator(), ConstByteArrayParameter(terminator)));
}
void IsolatedInitialize(const NameValuePairs &parameters);