Trait kernel::hil::public_key_crypto::keys::RsaPrivKey
source · [−]pub trait RsaPrivKey: PubPrivKey + RsaKey {
fn map_exponent(&self, closure: &dyn Fn(&[u8])) -> Option<()>;
fn take_exponent(&self) -> Option<&'static [u8]>;
}
Required Methods
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
.
fn take_exponent(&self) -> Option<&'static [u8]>
fn take_exponent(&self) -> Option<&'static [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.