Skip to main content

PublicKeyParts

Trait 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.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§