pub trait RsaPrivKey: PubPrivKey + RsaKey {
    // Required methods
    fn map_exponent(&self, closure: &dyn Fn(&[u8])) -> Option<()>;
    fn take_exponent(&self) -> Option<&'static [u8]>;
}

Required Methods§

source

fn map_exponent(&self, closure: &dyn Fn(&[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 [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.

Implementors§