feat(key): add fn to clear precomputed values on RsaPrivateKey

This commit is contained in:
Trevor Arjeski 2022-01-06 01:00:23 +03:00 committed by GitHub
parent 024a61b6ed
commit 2d68db2e0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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