From a89df27c0f7ded0a673dc84ce0b0e24c6d05e0d0 Mon Sep 17 00:00:00 2001 From: weidai Date: Fri, 18 Jul 2003 04:35:30 +0000 Subject: misc changes git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@103 57ff6487-cd31-0410-9ec3-f628ee90f5f0 --- basecode.h | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'basecode.h') 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(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 ¶meters); @@ -40,13 +41,13 @@ public: BaseN_Decoder(const int *lookup, int log2base, BufferedTransformation *attachment=NULL) : Unflushable(attachment) { - IsolatedInitialize(MakeParameters("DecodingLookupArray", lookup)("Log2Base", log2base)); + IsolatedInitialize(MakeParameters(Name::DecodingLookupArray(), lookup)(Name::Log2Base(), log2base)); } void IsolatedInitialize(const NameValuePairs ¶meters); 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(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 ¶meters); -- cgit v1.2.1