Crypto++
5.6.3
Free C++ class library of cryptographic schemes
|
Classes and functions for working with ANS.1 objects. More...
Go to the source code of this file.
Classes | |
class | UnknownOID |
class | OID |
Object Identifier. More... | |
class | EncodedObjectFilter |
class | BERGeneralDecoder |
BER General Decoder. More... | |
class | DERGeneralEncoder |
DER General Encoder. More... | |
class | BERSequenceDecoder |
BER Sequence Decoder. More... | |
class | DERSequenceEncoder |
DER Sequence Encoder. More... | |
class | BERSetDecoder |
BER Set Decoder. More... | |
class | DERSetEncoder |
DER Set Encoder. More... | |
class | ASNOptional< T > |
class | ASN1CryptoMaterial< BASE > |
_ More... | |
class | X509PublicKey |
encodes/decodes subjectPublicKeyInfo More... | |
class | PKCS8PrivateKey |
encodes/decodes privateKeyInfo More... | |
Functions | |
void | BERDecodeError () |
size_t | DERLengthEncode (BufferedTransformation &out, lword length) |
DER Length. | |
bool | BERLengthDecode (BufferedTransformation &in, size_t &length) |
void | DEREncodeNull (BufferedTransformation &out) |
void | BERDecodeNull (BufferedTransformation &in) |
size_t | DEREncodeOctetString (BufferedTransformation &out, const byte *str, size_t strLen) |
ASN Strings. | |
size_t | DEREncodeOctetString (BufferedTransformation &out, const SecByteBlock &str) |
size_t | BERDecodeOctetString (BufferedTransformation &in, SecByteBlock &str) |
size_t | BERDecodeOctetString (BufferedTransformation &in, BufferedTransformation &str) |
size_t | DEREncodeTextString (BufferedTransformation &out, const std::string &str, byte asnTag) |
size_t | BERDecodeTextString (BufferedTransformation &in, std::string &str, byte asnTag) |
size_t | DEREncodeBitString (BufferedTransformation &out, const byte *str, size_t strLen, unsigned int unusedBits=0) |
ASN BitString. | |
size_t | BERDecodeBitString (BufferedTransformation &in, SecByteBlock &str, unsigned int &unusedBits) |
void | DERReencode (BufferedTransformation &source, BufferedTransformation &dest) |
template<class T > | |
size_t | DEREncodeUnsigned (BufferedTransformation &out, T w, byte asnTag=INTEGER) |
DER Encode Unsigned. More... | |
template<class T > | |
void | BERDecodeUnsigned (BufferedTransformation &in, T &w, byte asnTag=INTEGER, T minValue=0, T maxValue=((std::numeric_limits< T >::max)())) |
BER Decode Unsigned. | |
bool | operator== (const ::::OID &lhs, const ::::OID &rhs) |
bool | operator!= (const ::::OID &lhs, const ::::OID &rhs) |
bool | operator< (const ::::OID &lhs, const ::::OID &rhs) |
inline::::OID | operator+ (const ::::OID &lhs, unsigned long rhs) |
Classes and functions for working with ANS.1 objects.
Definition in file asn.h.
size_t DEREncodeUnsigned | ( | BufferedTransformation & | out, |
T | w, | ||
byte | asnTag = INTEGER |
||
) |
DER Encode Unsigned.
for INTEGER, BOOLEAN, and ENUM
Definition at line 316 of file asn.h.
References DERLengthEncode(), and BufferedTransformation::Put().
Referenced by KDF2_RNG::GenerateBlock(), and PolynomialMod2::IsIrreducible().