pub fn new_with_signhash(
        n: BigNum,
        e: BigNum,
        sig_hash: RsaSignature,
    ) -> Result<RsaPublicKey, Error> {
        let rsa = Rsa::from_public_components(n, e)?;
        Ok(RsaPublicKey {
            rsa,
            signhash: sig_hash,
        })
    }
/// Create the RSA public key from public components and set the signature hash
Create the RSA public key from public components and set the signature hash
Create the RSA public key from public components and set the signature hash
pub fn new_with_signhash(
        n: BigNum,
        e: BigNum,
        sig_hash: RsaSignature,
    ) -> Result<RsaPublicKey, Error> {
        let rsa = Rsa::from_public_components(n, e)?;
        Ok(RsaPublicKey {
            rsa,
            signhash: sig_hash,
        })
    }
pub fn new_with_signhash ( n : BigNum , e : BigNum , sig_hash : RsaSignature , ) -> Result < RsaPublicKey , Error > { let rsa = Rsa :: from_public_components ( n , e ) ? ; Ok ( RsaPublicKey { rsa , signhash : sig_hash , } ) }
Create the RSA public key from public components and set the signature hash
Create the RSA public key from public components and set the signature hash
n
BigNum
e
BigNum
sig_hash
RsaSignature
n
BigNum
e
BigNum
sig_hash
RsaSignature