PKVerifier.verifyMessage

Verify a signature.

  1. bool verifyMessage(const(ubyte)* msg, size_t msg_length, const(ubyte)* sig, size_t sig_length)
    struct PKVerifier
    bool
    verifyMessage
    (
    const(ubyte)* msg
    ,
    size_t msg_length
    ,
    const(ubyte)* sig
    ,
    size_t sig_length
    )
  2. bool verifyMessage(Vector!(ubyte, Alloc) msg, Vector!(ubyte, Alloc2) sig)
  3. bool verifyMessage(RefCounted!(Vector!(ubyte, Alloc), Alloc) msg, RefCounted!(Vector!(ubyte, Alloc2), Alloc2) sig)

Parameters

msg const(ubyte)*

the message that the signature belongs to, as a ubyte array

msg_length size_t

the length of the above ubyte array msg

sig const(ubyte)*

the signature as a ubyte array

sig_length size_t

the length of the above ubyte array sig

Return Value

Type: bool

true if the signature is valid

Meta