crypto_sign_open

The crypto_sign_open() function verifies the signature in 'sm' using the receiver's public key 'pk'.

  1. bool crypto_sign_open(ubyte[] msg, const(ubyte)[] sm, const(ubyte)[] pk)
    bool
    crypto_sign_open
    ()
    (
    ubyte[] msg
    ,
    const(ubyte)[] sm
    ,
    const(ubyte)[] pk
    )
  2. ubyte[] crypto_sign_open(const(ubyte)[] sm, const(ubyte)[] pk)

Parameters

msg ubyte[]

decrypted message, last 64 bytes are useless zeroes, must be of size at least sm.length

sm const(ubyte)[]

= signed message

pk const(ubyte)[]

= public key, slice size must be at least crypto_sign_PUBLICKEYBYTES, extra ignored

Return Value

Type: bool

success flag

Meta