sign

actual fun sign(message: UByteArray, secretKey: UByteArray): UByteArray

The sodiumJna.crypto_sign() function prepends a signature to a message m whose length is mlen bytes, using the secret key sk. The signed message, which includes the signature + a plain copy of the message, is put into sm, and is sodiumJna.crypto_sign_BYTES + mlen bytes long.

expect fun sign(message: UByteArray, secretKey: UByteArray): UByteArray

The crypto_sign() function prepends a signature to a message m whose length is mlen bytes, using the secret key sk. The signed message, which includes the signature + a plain copy of the message, is put into sm, and is crypto_sign_BYTES + mlen bytes long.

actual fun sign(message: UByteArray, secretKey: UByteArray): UByteArray

The sodiumJna.crypto_sign() function prepends a signature to a message m whose length is mlen bytes, using the secret key sk. The signed message, which includes the signature + a plain copy of the message, is put into sm, and is sodiumJna.crypto_sign_BYTES + mlen bytes long.

actual fun sign(message: UByteArray, secretKey: UByteArray): UByteArray

The crypto_sign() function prepends a signature to a message m whose length is mlen bytes, using the secret key sk. The signed message, which includes the signature + a plain copy of the message, is put into sm, and is crypto_sign_BYTES + mlen bytes long.