source: git/src-cryptopp/argnames.h

Last change on this file was e230cb0, checked in by David Stainton <dstainton415@…>, at 2016-10-12T13:27:29Z

Add cryptopp from tag CRYPTOPP_5_6_5

  • Property mode set to 100644
File size: 5.2 KB
Line 
1// argnames.h - written and placed in the public domain by Wei Dai
2
3//! \file argnames.h
4//! \brief Standard names for retrieving values by name when working with \p NameValuePairs
5
6#ifndef CRYPTOPP_ARGNAMES_H
7#define CRYPTOPP_ARGNAMES_H
8
9#include "cryptlib.h"
10
11NAMESPACE_BEGIN(CryptoPP)
12
13DOCUMENTED_NAMESPACE_BEGIN(Name)
14
15#define CRYPTOPP_DEFINE_NAME_STRING(name)       inline const char *name() {return #name;}
16
17CRYPTOPP_DEFINE_NAME_STRING(ValueNames)                 //!< string, a list of value names with a semicolon (';') after each name
18CRYPTOPP_DEFINE_NAME_STRING(Version)                    //!< int
19CRYPTOPP_DEFINE_NAME_STRING(Seed)                               //!< ConstByteArrayParameter
20CRYPTOPP_DEFINE_NAME_STRING(Key)                                //!< ConstByteArrayParameter
21CRYPTOPP_DEFINE_NAME_STRING(IV)                                 //!< ConstByteArrayParameter, also accepts const byte * for backwards compatibility
22CRYPTOPP_DEFINE_NAME_STRING(StolenIV)                   //!< byte *
23CRYPTOPP_DEFINE_NAME_STRING(Rounds)                             //!< int
24CRYPTOPP_DEFINE_NAME_STRING(FeedbackSize)               //!< int
25CRYPTOPP_DEFINE_NAME_STRING(WordSize)                   //!< int, in bytes
26CRYPTOPP_DEFINE_NAME_STRING(BlockSize)                  //!< int, in bytes
27CRYPTOPP_DEFINE_NAME_STRING(EffectiveKeyLength) //!< int, in bits
28CRYPTOPP_DEFINE_NAME_STRING(KeySize)                    //!< int, in bits
29CRYPTOPP_DEFINE_NAME_STRING(ModulusSize)                //!< int, in bits
30CRYPTOPP_DEFINE_NAME_STRING(SubgroupOrderSize)  //!< int, in bits
31CRYPTOPP_DEFINE_NAME_STRING(PrivateExponentSize)//!< int, in bits
32CRYPTOPP_DEFINE_NAME_STRING(Modulus)                    //!< Integer
33CRYPTOPP_DEFINE_NAME_STRING(PublicExponent)             //!< Integer
34CRYPTOPP_DEFINE_NAME_STRING(PrivateExponent)    //!< Integer
35CRYPTOPP_DEFINE_NAME_STRING(PublicElement)              //!< Integer
36CRYPTOPP_DEFINE_NAME_STRING(SubgroupOrder)              //!< Integer
37CRYPTOPP_DEFINE_NAME_STRING(Cofactor)                   //!< Integer
38CRYPTOPP_DEFINE_NAME_STRING(SubgroupGenerator)  //!< Integer, ECP::Point, or EC2N::Point
39CRYPTOPP_DEFINE_NAME_STRING(Curve)                              //!< ECP or EC2N
40CRYPTOPP_DEFINE_NAME_STRING(GroupOID)                   //!< OID
41CRYPTOPP_DEFINE_NAME_STRING(PointerToPrimeSelector)             //!< const PrimeSelector *
42CRYPTOPP_DEFINE_NAME_STRING(Prime1)                             //!< Integer
43CRYPTOPP_DEFINE_NAME_STRING(Prime2)                             //!< Integer
44CRYPTOPP_DEFINE_NAME_STRING(ModPrime1PrivateExponent)   //!< Integer
45CRYPTOPP_DEFINE_NAME_STRING(ModPrime2PrivateExponent)   //!< Integer
46CRYPTOPP_DEFINE_NAME_STRING(MultiplicativeInverseOfPrime2ModPrime1)     //!< Integer
47CRYPTOPP_DEFINE_NAME_STRING(QuadraticResidueModPrime1)  //!< Integer
48CRYPTOPP_DEFINE_NAME_STRING(QuadraticResidueModPrime2)  //!< Integer
49CRYPTOPP_DEFINE_NAME_STRING(PutMessage)                 //!< bool
50CRYPTOPP_DEFINE_NAME_STRING(TruncatedDigestSize)        //!< int
51CRYPTOPP_DEFINE_NAME_STRING(BlockPaddingScheme) //!< StreamTransformationFilter::BlockPaddingScheme
52CRYPTOPP_DEFINE_NAME_STRING(HashVerificationFilterFlags)                //!< word32
53CRYPTOPP_DEFINE_NAME_STRING(AuthenticatedDecryptionFilterFlags) //!< word32
54CRYPTOPP_DEFINE_NAME_STRING(SignatureVerificationFilterFlags)   //!< word32
55CRYPTOPP_DEFINE_NAME_STRING(InputBuffer)                //!< ConstByteArrayParameter
56CRYPTOPP_DEFINE_NAME_STRING(OutputBuffer)               //!< ByteArrayParameter
57CRYPTOPP_DEFINE_NAME_STRING(InputFileName)              //!< const char *
58CRYPTOPP_DEFINE_NAME_STRING(InputFileNameWide)  //!< const wchar_t *
59CRYPTOPP_DEFINE_NAME_STRING(InputStreamPointer) //!< std::istream *
60CRYPTOPP_DEFINE_NAME_STRING(InputBinaryMode)    //!< bool
61CRYPTOPP_DEFINE_NAME_STRING(OutputFileName)             //!< const char *
62CRYPTOPP_DEFINE_NAME_STRING(OutputFileNameWide) //!< const wchar_t *
63CRYPTOPP_DEFINE_NAME_STRING(OutputStreamPointer)        //!< std::ostream *
64CRYPTOPP_DEFINE_NAME_STRING(OutputBinaryMode)   //!< bool
65CRYPTOPP_DEFINE_NAME_STRING(EncodingParameters) //!< ConstByteArrayParameter
66CRYPTOPP_DEFINE_NAME_STRING(KeyDerivationParameters)    //!< ConstByteArrayParameter
67CRYPTOPP_DEFINE_NAME_STRING(Separator)                  //< ConstByteArrayParameter
68CRYPTOPP_DEFINE_NAME_STRING(Terminator)                 //< ConstByteArrayParameter
69CRYPTOPP_DEFINE_NAME_STRING(Uppercase)                  //< bool
70CRYPTOPP_DEFINE_NAME_STRING(GroupSize)                  //< int
71CRYPTOPP_DEFINE_NAME_STRING(Pad)                                //< bool
72CRYPTOPP_DEFINE_NAME_STRING(PaddingByte)                //< byte
73CRYPTOPP_DEFINE_NAME_STRING(Log2Base)                   //< int
74CRYPTOPP_DEFINE_NAME_STRING(EncodingLookupArray)        //< const byte *
75CRYPTOPP_DEFINE_NAME_STRING(DecodingLookupArray)        //< const byte *
76CRYPTOPP_DEFINE_NAME_STRING(InsertLineBreaks)   //< bool
77CRYPTOPP_DEFINE_NAME_STRING(MaxLineLength)              //< int
78CRYPTOPP_DEFINE_NAME_STRING(DigestSize)                 //!< int, in bytes
79CRYPTOPP_DEFINE_NAME_STRING(L1KeyLength)                //!< int, in bytes
80CRYPTOPP_DEFINE_NAME_STRING(TableSize)                  //!< int, in bytes
81CRYPTOPP_DEFINE_NAME_STRING(Blinding)                   //!< bool, timing attack mitigations, ON by default
82CRYPTOPP_DEFINE_NAME_STRING(DerivedKey)                 //!< ByteArrayParameter, key derivation, derived key
83CRYPTOPP_DEFINE_NAME_STRING(DerivedKeyLength)   //!< int, key derivation, derived key length in bytes
84CRYPTOPP_DEFINE_NAME_STRING(Personalization)    //!< ConstByteArrayParameter
85CRYPTOPP_DEFINE_NAME_STRING(PersonalizationSize)        //!< int, in bytes
86CRYPTOPP_DEFINE_NAME_STRING(Salt)                               //!< ConstByteArrayParameter
87CRYPTOPP_DEFINE_NAME_STRING(Tweak)                              //!< ConstByteArrayParameter
88CRYPTOPP_DEFINE_NAME_STRING(SaltSize)                   //!< int, in bytes
89CRYPTOPP_DEFINE_NAME_STRING(TreeMode)                   //< byte
90DOCUMENTED_NAMESPACE_END
91
92NAMESPACE_END
93
94#endif
Note: See TracBrowser for help on using the repository browser.