Security Scol plugin
|
Encode and decode ASN.1 objects with additional information. More...
#include <asn.h>
Public Member Functions | |
void | Save (BufferedTransformation &bt) const |
DER encode ASN.1 object. | |
void | Load (BufferedTransformation &bt) |
BER decode ASN.1 object. | |
Public Member Functions inherited from ASN1Object | |
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. | |
Encode and decode ASN.1 objects with additional information.
BASE | base class or type |
Encodes and decodes public keys, private keys and group parameters with OID identifying the algorithm or scheme.
|
inline |
BER decode ASN.1 object.
bt | BufferedTransformation object |
Reimplemented in InvertibleESIGNFunction, InvertibleRSAFunction, x25519, ed25519PrivateKey, and ed25519PublicKey.
|
inline |
DER encode ASN.1 object.
bt | BufferedTransformation object |
Save() will write the OID associated with algorithm or scheme. In the case of public and private keys, this function writes the subjectPublicKeyInfo and privateKeyInfo parts.
Reimplemented in InvertibleESIGNFunction, InvertibleRSAFunction, x25519, ed25519PrivateKey, and ed25519PublicKey.