PKSigner

Public Key Signer. Use the signMessage() functions for small messages. Use multiple calls update() to process large messages and generate the signature by finally calling signature().

Constructors

this
this(PrivateKey key, string emsa_name, SignatureFormat format, FaultProtection prot)

Construct a PK Signer.

Members

Functions

setOutputFormat
void setOutputFormat(SignatureFormat format)

Set the output format of the signature.

signMessage
Vector!ubyte signMessage(const(ubyte)* msg, size_t length, RandomNumberGenerator rng)

Sign a message.

signMessage
Vector!ubyte signMessage(Vector!(ubyte, ALLOC) input, RandomNumberGenerator rng)

Sign a message.

signMessage
Vector!ubyte signMessage(RefCounted!(Vector!(ubyte, ALLOC), ALLOC) input, RandomNumberGenerator rng)
Undocumented in source. Be warned that the author may not have intended to support it.
signature
Vector!ubyte signature(RandomNumberGenerator rng)

Get the signature of the so far processed message (provided by the calls to update()).

update
void update(ubyte input)

Add a message part (single ubyte).

update
void update(const(ubyte)* input, size_t length)

Add a message part.

update
void update(RefCounted!(Vector!(ubyte, ALLOC), ALLOC) input)

Add a message part.

update
void update(Vector!(ubyte, ALLOC) input)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta