[][src]Function rsa_fdh::sign

pub fn sign<H: Digest + Clone, R: Rng>(
    rng: &mut R,
    priv_key: &RSAPrivateKey,
    message: &[u8]
) -> Result<Vec<u8>, Error> where
    H::OutputSize: Clone

Sign a message.

Generally the message should be hashed by the requester before being sent to the signer. The signer will apply RSA-FDH padding before singing the message. The resulting signature is not a blind signature.