Struct ring::rsa::public_key::PublicKey
source · pub struct PublicKey {
inner: Inner,
serialized: Box<[u8]>,
}
Expand description
An RSA Public Key.
Fields§
§inner: Inner
§serialized: Box<[u8]>
Implementations§
source§impl PublicKey
impl PublicKey
pub(super) fn from_modulus_and_exponent( n: Input<'_>, e: Input<'_>, n_min_bits: BitLength, n_max_bits: BitLength, e_min_value: PublicExponent, cpu_features: Features, ) -> Result<Self, KeyRejected>
sourcepub fn modulus_len(&self) -> usize
pub fn modulus_len(&self) -> usize
The length, in bytes, of the public modulus.
The modulus length is rounded up to a whole number of bytes if its bit length isn’t a multiple of 8.
pub(super) fn inner(&self) -> &Inner
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PublicKey
impl RefUnwindSafe for PublicKey
impl Send for PublicKey
impl Sync for PublicKey
impl Unpin for PublicKey
impl UnwindSafe for PublicKey
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
)