Trait rsa::PublicKeyParts [−][src]
pub trait PublicKeyParts { fn n(&self) -> &BigUint; fn e(&self) -> &BigUint; fn size(&self) -> usize { ... } }
Required methods
fn n(&self) -> &BigUint
[src]
Expand description
Returns the modulus of the key.
fn e(&self) -> &BigUint
[src]
Expand description
Returns the public exponent of the key.
Provided methods
fn size(&self) -> usize
[src]
Expand description
Returns the modulus size in bytes. Raw signatures and ciphertexts for or by this public key will have the same size.
Implementors
impl PublicKeyParts for RSAPrivateKey
[src]
impl PublicKeyParts for RSAPrivateKey
[src]impl PublicKeyParts for RSAPublicKey
[src]
impl PublicKeyParts for RSAPublicKey
[src]impl<'a> PublicKeyParts for &'a RSAPrivateKey
[src]
impl<'a> PublicKeyParts for &'a RSAPrivateKey
[src]impl<'a> PublicKeyParts for &'a RSAPublicKey
[src]
impl<'a> PublicKeyParts for &'a RSAPublicKey
[src]