Struct ring::rsa::public_modulus::PublicModulus
source · pub struct PublicModulus {
value: OwnedModulus<N>,
oneRR: One<N, RR>,
}
Expand description
The modulus (n) of an RSA public key.
Fields§
§value: OwnedModulus<N>
§oneRR: One<N, RR>
Implementations§
source§impl PublicModulus
impl PublicModulus
pub(super) fn from_be_bytes( n: Input<'_>, allowed_bit_lengths: RangeInclusive<BitLength>, cpu_features: Features, ) -> Result<Self, KeyRejected>
sourcepub fn be_bytes(&self) -> impl ExactSizeIterator<Item = u8> + Clone + '_
pub fn be_bytes(&self) -> impl ExactSizeIterator<Item = u8> + Clone + '_
The big-endian encoding of the modulus.
There are no leading zeros.
pub(super) fn value(&self, cpu_features: Features) -> Modulus<'_, N>
pub(super) fn oneRR(&self) -> &Elem<N, RR>
Trait Implementations§
source§impl Clone for PublicModulus
impl Clone for PublicModulus
source§fn clone(&self) -> PublicModulus
fn clone(&self) -> PublicModulus
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for PublicModulus
impl RefUnwindSafe for PublicModulus
impl Send for PublicModulus
impl Sync for PublicModulus
impl Unpin for PublicModulus
impl UnwindSafe for PublicModulus
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)