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.

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.

Implementors