[][src]Function nettle::rsa::sign_pkcs1

pub fn sign_pkcs1<H: Hash + Pkcs1Hash, R: Random>(
    public: &PublicKey,
    private: &PrivateKey,
    hash: &mut H,
    random: &mut R,
    signature: &mut [u8]
) -> Result<()>

Signs the message hashed with hash using public/private, producing signature. The signature buffer is expected to be of the size of the modulo of public.

The function signs the digest produced by hash after padding the digest using EMSA-PKCS1-v1_5.