Trait rsa::PublicKeyParts

source ·
pub trait PublicKeyParts {
    // Required methods
    fn n(&self) -> &BigUint;
    fn e(&self) -> &BigUint;

    // Provided method
    fn size(&self) -> usize { ... }
}
Expand description

Components of an RSA public key.

Required Methods§

source

fn n(&self) -> &BigUint

Returns the modulus of the key.

source

fn e(&self) -> &BigUint

Returns the public exponent of the key.

Provided Methods§

source

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.

Implementors§