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.

Loading content...

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.

Loading content...

Implementors

impl PublicKeyParts for RSAPrivateKey[src]

fn n(&self) -> &BigUint[src]

fn e(&self) -> &BigUint[src]

impl PublicKeyParts for RSAPublicKey[src]

fn n(&self) -> &BigUint[src]

fn e(&self) -> &BigUint[src]

impl<'a> PublicKeyParts for &'a RSAPrivateKey[src]

fn n(&self) -> &BigUint[src]

fn e(&self) -> &BigUint[src]

impl<'a> PublicKeyParts for &'a RSAPublicKey[src]

fn n(&self) -> &BigUint[src]

Returns the modulus of the key.

fn e(&self) -> &BigUint[src]

Returns the public exponent of the key.

Loading content...