Trait rsa::PublicKey

source ·
pub trait PublicKey {
    fn n(&self) -> &BigUint;
    fn e(&self) -> &BigUint;

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

Generic trait for operations on a public key.

Required Methods§

Returns the modulus of the key.

Returns the public exponent of the key.

Provided Methods§

Returns the modulus size in bytes. Raw signatures and ciphertexts for or by this public key will have the same size.

Implementors§