pub trait PublicKeyParts { fn n(&self) -> &BigUint; fn e(&self) -> &BigUint; fn size(&self) -> usize { ... } }
fn n(&self) -> &BigUint
Returns the modulus of the key.
fn e(&self) -> &BigUint
Returns the public exponent of the key.
fn size(&self) -> usize
Returns the modulus size in bytes. Raw signatures and ciphertexts for or by this public key will have the same size.
impl PublicKeyParts for RSAPrivateKey
impl PublicKeyParts for RSAPublicKey
impl<'a> PublicKeyParts for &'a RSAPrivateKey
impl<'a> PublicKeyParts for &'a RSAPublicKey