pub struct RsaPublicKey { /* private fields */ }
Expand description
An RSA public key. Contains the modulus (n) and the public exponent(e).
Implementations§
Source§impl RsaPublicKey
impl RsaPublicKey
pub fn from_params( modulus: &[u8], public_exponent: &[u8], ) -> Result<Self, RsaError>
Sourcepub fn get_modulus_size(&self) -> usize
pub fn get_modulus_size(&self) -> usize
Get the modulus (n) size in bytes.
Trait Implementations§
Source§impl Debug for RsaPublicKey
impl Debug for RsaPublicKey
Source§impl FromDer for RsaPublicKey
impl FromDer for RsaPublicKey
Source§impl FromPem for RsaPublicKey
impl FromPem for RsaPublicKey
Source§impl ToDer for RsaPublicKey
impl ToDer for RsaPublicKey
Auto Trait Implementations§
impl Freeze for RsaPublicKey
impl RefUnwindSafe for RsaPublicKey
impl Send for RsaPublicKey
impl Sync for RsaPublicKey
impl Unpin for RsaPublicKey
impl UnwindSafe for RsaPublicKey
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