Skip to main content

crypto_sign_detached

Function crypto_sign_detached 

Source
pub fn crypto_sign_detached(
    signature: &mut Signature,
    message: &[u8],
    secret_key: &SecretKey,
) -> Result<(), Error>
Expand description

Signs message, placing the signature into signature upon success. Detached variant of crypto_sign_open.

This function is compatible with libsodium’s crypto_sign_detached; the ED25519_NONDETERMINISTIC feature is not supported.

§Errors

The fixed-size signature and secret-key types satisfy the current implementation’s requirements, so this function does not return an error in normal use. The Result is retained for API compatibility.