Botan

EAC11 general CVC

License
Botan is released under the Simplified BSD License (see LICENSE.md)

class  EAC11genCVC(Derived): EAC11obj!Derived, SignedObject;

This class represents TR03110 (EAC) v1.1 generalized CV Certificates


final const const(PublicKey)  subjectPublicKey();

Get this certificates public key.

Returns
this certificates public key

final const bool  isSelfSigned();

Find out whether this object is self signed.

Returns
true if this object is self signed

final const const(ASN1Chr)  getChr();

Get the CHR of the certificate.

Returns
the CHR of the certificate

const void  encode(Pipe output, X509Encoding encoding);

Put the DER encoded version of this object into a pipe. PEM is not supported.

Parameters
Pipe output the pipe to push the DER encoded version into
X509Encoding encoding the encoding to use. Must be DER.

const const(Vector!ubyte)  tbsData();

Get the to-be-signed (TBS) data of this object.

Returns
the TBS data of this object

Vector!ubyte  buildCertBody(ALLOC)(auto ref const Vector!(ubyte, ALLOC) tbs);

Build the DER encoded certifcate body of an object

Parameters
Vector!(ubyte, ALLOC) tbs the data to be signed
Returns
the correctly encoded body of the object

Vector!ubyte  makeSigned(ALLOC)(ref PKSigner signer, auto ref const Vector!(ubyte, ALLOC) tbs_bits, RandomNumberGenerator rng);

Create a signed generalized CVC object.

Parameters
PKSigner signer the signer used to sign this object
Vector!(ubyte, ALLOC) tbs_bits the body the generalized CVC object to be signed
RandomNumberGenerator rng a random number generator
Returns
the DER encoded signed generalized CVC object