[][src]Function ring::signature::sign

pub fn sign(
    key_pair: &KeyPair,
    rng: &dyn SecureRandom,
    msg: Input
) -> Result<Signature, Unspecified>

Returns a signature of the given data using the given key. The signing may or may not use rng, depending on the `key_pair's algorithm.