Security Scol plugin
|
Interface for encoding and decoding ASN1 objects. More...
#include <cryptlib.h>
Public Member Functions | |
virtual void | BERDecode (BufferedTransformation &bt)=0 |
Decode this object from a BufferedTransformation. | |
virtual void | DEREncode (BufferedTransformation &bt) const =0 |
Encode this object into a BufferedTransformation. | |
virtual void | BEREncode (BufferedTransformation &bt) const |
Encode this object into a BufferedTransformation. | |
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 3283 of file cryptlib.h.
|
inlinevirtual |
Definition at line 3286 of file cryptlib.h.
|
pure virtual |
Decode this object from a BufferedTransformation.
bt | BufferedTransformation object |
Uses Basic Encoding Rules (BER)
Implemented in X509PublicKey, PKCS8PrivateKey, ESIGNFunction, InvertibleESIGNFunction, DL_GroupParameters_IntegerBased, Integer, InvertibleRSAFunction, x25519, ed25519PrivateKey, and ed25519PublicKey.
|
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 3302 of file cryptlib.h.
|
pure virtual |
Encode this object into a BufferedTransformation.
bt | BufferedTransformation object |
Uses Distinguished Encoding Rules (DER)
Implemented in X509PublicKey, PKCS8PrivateKey, ESIGNFunction, InvertibleESIGNFunction, DL_GroupParameters_IntegerBased, Integer, InvertibleRSAFunction, x25519, ed25519PrivateKey, and ed25519PublicKey.