feat(key): add fn to clear precomputed values on RsaPrivateKey
This commit is contained in:
parent
024a61b6ed
commit
2d68db2e0f
@ -358,6 +358,11 @@ impl RsaPrivateKey {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
/// Clears precomputed values by setting to None
|
||||
pub fn clear_precomputed(&mut self) {
|
||||
self.precomputed = None;
|
||||
}
|
||||
|
||||
/// Returns the private exponent of the key.
|
||||
pub fn d(&self) -> &BigUint {
|
||||
&self.d
|
||||
|
Loading…
x
Reference in New Issue
Block a user