Trait rsa::PublicKeyParts

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

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

Components of an RSA 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