pub trait PublicKeyParts {
// Required methods
fn n(&self) -> &NonZero<BoxedUint>;
fn e(&self) -> &BoxedUint;
fn n_params(&self) -> &BoxedMontyParams;
// Provided methods
fn size(&self) -> usize { ... }
fn n_bits_precision(&self) -> u32 { ... }
fn n_bytes(&self) -> Box<[u8]> { ... }
fn e_bytes(&self) -> Box<[u8]> { ... }
}Expand description
Components of an RSA public key.
Required Methods§
Sourcefn n_params(&self) -> &BoxedMontyParams
fn n_params(&self) -> &BoxedMontyParams
Returns the parameters for montgomery operations.
Provided Methods§
Sourcefn size(&self) -> usize
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.
Sourcefn n_bits_precision(&self) -> u32
fn n_bits_precision(&self) -> u32
Returns precision (in bits) of n.