Fabcoin Core
0.16.2
P2P Digital Currency
|
Interface for encoding and decoding ASN1 objects. More...
#include <cryptlib.h>
Public Member Functions | |
virtual | ~ASN1Object () |
virtual void | BERDecode (BufferedTransformation &bt)=0 |
Decode this object from a BufferedTransformation. More... | |
virtual void | DEREncode (BufferedTransformation &bt) const =0 |
Encode this object into a BufferedTransformation. More... | |
virtual void | BEREncode (BufferedTransformation &bt) const |
Encode this object into a BufferedTransformation. More... | |
Interface for encoding and decoding ASN1 objects.
Each class that derives from ASN1Object should provide a serialization format that controls subobject layout. Most of the time the serialization format is taken from a standard, like P1363 or an RFC.
Definition at line 2942 of file cryptlib.h.
|
inlinevirtual |
Definition at line 2945 of file cryptlib.h.
|
pure virtual |
Decode this object from a BufferedTransformation.
bt | BufferedTransformation object |
Uses Basic Encoding Rules (BER)
Implemented in PKCS8PrivateKey, X509PublicKey, Integer, InvertibleRSAFunction, InvertibleESIGNFunction, DL_GroupParameters_IntegerBased, and ESIGNFunction.
|
inlinevirtual |
Encode this object into a BufferedTransformation.
bt | BufferedTransformation object |
Uses Basic Encoding Rules (BER).
This may be useful if DEREncode() would be too inefficient.
Definition at line 2961 of file cryptlib.h.
|
pure virtual |
Encode this object into a BufferedTransformation.
bt | BufferedTransformation object |
Uses Distinguished Encoding Rules (DER)
Implemented in PKCS8PrivateKey, X509PublicKey, Integer, InvertibleRSAFunction, InvertibleESIGNFunction, DL_GroupParameters_IntegerBased, and ESIGNFunction.