pub struct PublicKey { /* private fields */ }
Expand description
A serialized RSA public key.
Implementations§
Source§impl PublicKey
impl PublicKey
Sourcepub fn modulus(&self) -> Positive<'_>
Available on crate feature ring-io
only.
pub fn modulus(&self) -> Positive<'_>
ring-io
only.The public modulus (n).
Sourcepub fn exponent(&self) -> Positive<'_>
Available on crate feature ring-io
only.
pub fn exponent(&self) -> Positive<'_>
ring-io
only.The public exponent (e).
Sourcepub fn modulus_len(&self) -> usize
Available on crate feature ring-io
only.
pub fn modulus_len(&self) -> usize
ring-io
only.Returns the length in bytes of the public modulus.
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