Function dryoc::classic::crypto_sign::crypto_sign
source · pub fn crypto_sign(
signed_message: &mut [u8],
message: &[u8],
secret_key: &SecretKey
) -> Result<(), Error>
Expand description
Signs message
, placing the result into signed_message
. The length of
signed_message
should be the length of the message plus
CRYPTO_SIGN_BYTES
.
This function is compatible with libsodiums
crypto_sign, however the
ED25519_NONDETERMINISTIC` feature is not supported.