crypto_sign

The crypto_sign() function signs a message 'msg' using the sender's secret key 'sk'. The crypto_sign() function returns the resulting signed message.

  1. void crypto_sign(ubyte[] sm, const(ubyte)[] msg, const(ubyte)[] sk)
    void
    crypto_sign
    ()
    (
    ubyte[] sm
    ,
    const(ubyte)[] msg
    ,
    const(ubyte)[] sk
    )
  2. ubyte[] crypto_sign(const(ubyte)[] msg, const(ubyte)[] sk)

Parameters

sm ubyte[]

buffer to receive signed message, must be of size at least msg.length+64

msg const(ubyte)[]

= message

sk const(ubyte)[]

= secret key, slice size must be at least crypto_sign_SECRETKEYBYTES, extra ignored

Return Value

Type: void

signed message

Meta