Struct RsaInfo
pub struct RsaInfo<'a> { /* private fields */ }Expand description
Structure that wraps an RSA key
Implementations§
§impl<'a> RsaInfo<'a>
impl<'a> RsaInfo<'a>
pub fn N(&self) -> BigUint
pub fn N(&self) -> BigUint
RSA public modulus
pub fn E(&self) -> BigUint
pub fn E(&self) -> BigUint
RSA public exponent
pub fn D(&self) -> BigUint
pub fn D(&self) -> BigUint
RSA private exponent
pub fn P(&self) -> BigUint
pub fn P(&self) -> BigUint
First prime factor
pub fn Q(&self) -> BigUint
pub fn Q(&self) -> BigUint
Second prime factor
pub fn has_public_key(&self) -> bool
pub fn has_public_key(&self) -> bool
True if it embeds a public key
pub fn has_private_key(&self) -> bool
pub fn has_private_key(&self) -> bool
True if it embeds a private key
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for RsaInfo<'a>
impl<'a> RefUnwindSafe for RsaInfo<'a>
impl<'a> !Send for RsaInfo<'a>
impl<'a> !Sync for RsaInfo<'a>
impl<'a> Unpin for RsaInfo<'a>
impl<'a> UnwindSafe for RsaInfo<'a>
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