Struct ring::rsa::public_exponent::PublicExponent
source · pub struct PublicExponent(NonZeroU64);
Expand description
The exponent e
of an RSA public key.
Tuple Fields§
§0: NonZeroU64
Implementations§
source§impl PublicExponent
impl PublicExponent
pub(super) const _3: Self = _
pub(super) const _65537: Self = _
const MAX: Self = _
pub(super) fn from_be_bytes( input: Input<'_>, min_value: Self, ) -> 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 exponent.
There are no leading zeros.
pub(super) fn value(self) -> NonZeroU64
Trait Implementations§
source§impl Clone for PublicExponent
impl Clone for PublicExponent
source§fn clone(&self) -> PublicExponent
fn clone(&self) -> PublicExponent
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 moreimpl Copy for PublicExponent
Auto Trait Implementations§
impl Freeze for PublicExponent
impl RefUnwindSafe for PublicExponent
impl Send for PublicExponent
impl Sync for PublicExponent
impl Unpin for PublicExponent
impl UnwindSafe for PublicExponent
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