PKVerifier

Public Key Verifier. Use the verifyMessage() functions for small messages. Use multiple calls update() to process large messages and verify the signature by finally calling checkSignature().

Constructors

this
this(PublicKey key, string emsa_name, SignatureFormat format)

Construct a PK Verifier.

Members

Functions

checkSignature
bool checkSignature(const(ubyte)* sig, size_t length)

Check the signature of the buffered message, i.e. the one build by successive calls to update.

checkSignature
bool checkSignature(Vector!(ubyte, Alloc) sig)

Check the signature of the buffered message, i.e. the one build by successive calls to update.

setInputFormat
void setInputFormat(SignatureFormat format)

Set the format of the signatures fed to this verifier.

update
void update(ubyte input)

Add a message part (single ubyte) of the message corresponding to the signature to be verified.

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

Add a message part of the message corresponding to the signature to be verified.

update
void update(Vector!ubyte input)

Add a message part of the message corresponding to the signature to be verified.

verifyMessage
bool verifyMessage(const(ubyte)* msg, size_t msg_length, const(ubyte)* sig, size_t sig_length)

Verify a signature.

verifyMessage
bool verifyMessage(Vector!(ubyte, Alloc) msg, Vector!(ubyte, Alloc2) sig)
bool verifyMessage(RefCounted!(Vector!(ubyte, Alloc), Alloc) msg, RefCounted!(Vector!(ubyte, Alloc2), Alloc2) sig)

Verify a signature.

Meta