pub struct RSA4096KeysMut(/* private fields */);
Implementations§
Source§impl RSA4096KeysMut
impl RSA4096KeysMut
pub const fn new() -> RSA4096KeysMut
Trait Implementations§
Source§impl PubKeyMut for RSA4096KeysMut
impl PubKeyMut for RSA4096KeysMut
Source§impl PubPrivKeyMut for RSA4096KeysMut
impl PubPrivKeyMut for RSA4096KeysMut
Source§impl RsaKeyMut for RSA4096KeysMut
impl RsaKeyMut for RSA4096KeysMut
Source§fn map_modulus(&self, closure: &dyn Fn(&mut [u8])) -> Option<()>
fn map_modulus(&self, closure: &dyn Fn(&mut [u8])) -> Option<()>
Run the specified closure over the modulus, if it exists
The modulus is returned MSB (big endian)
Returns
Some()
if the key exists and the closure was called,
otherwise returns None
.Source§fn take_modulus(&self) -> Option<&'static mut [u8]>
fn take_modulus(&self) -> Option<&'static mut [u8]>
The the modulus if it exists.
The modulus is returned MSB (big endian)
Returns
Some()
if the key exists otherwise returns None
.
The modulus can be returned by calling import_public_key()
with
the output of this function.Source§fn public_exponent(&self) -> Option<u32>
fn public_exponent(&self) -> Option<u32>
Returns the public exponent of the key pair if it exists
Source§impl RsaPrivKeyMut for RSA4096KeysMut
impl RsaPrivKeyMut for RSA4096KeysMut
Source§fn map_exponent(&self, closure: &dyn Fn(&mut [u8])) -> Option<()>
fn map_exponent(&self, closure: &dyn Fn(&mut [u8])) -> Option<()>
Returns the specified closure over the private exponent, if it exists
The exponent is returned MSB (big endian)
Returns
Some()
if the key exists and the closure was called,
otherwise returns None
.Source§fn take_exponent(&self) -> Option<&'static mut [u8]>
fn take_exponent(&self) -> Option<&'static mut [u8]>
The the private exponent if it exists.
The exponent is returned MSB (big endian)
Returns
Some()
if the key exists otherwise returns None
.
The exponent can be returned by calling import_private_key()
with
the output of this function.Auto Trait Implementations§
impl !Freeze for RSA4096KeysMut
impl !RefUnwindSafe for RSA4096KeysMut
impl Send for RSA4096KeysMut
impl !Sync for RSA4096KeysMut
impl Unpin for RSA4096KeysMut
impl !UnwindSafe for RSA4096KeysMut
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