PKVerifier.verifyMessage

Verify a signature.

  1. 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)
    struct PKVerifier
    public
    bool
    verifyMessage
    (
    Alloc
    Alloc2
    )
    (
    auto const ref RefCounted!(Vector!(ubyte, Alloc), Alloc) msg
    ,
    auto const ref RefCounted!(Vector!(ubyte, Alloc2), Alloc2) sig
    )

Parameters

msg RefCounted!(Vector!(ubyte, Alloc), Alloc)

the message that the signature belongs to

sig RefCounted!(Vector!(ubyte, Alloc2), Alloc2)

the signature

Return Value

Type: bool

true if the signature is valid

Meta