aboutsummaryrefslogtreecommitdiff
path: root/src/bn
diff options
context:
space:
mode:
Diffstat (limited to 'src/bn')
-rw-r--r--src/bn/mod.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/bn/mod.rs b/src/bn/mod.rs
index 2536f8a5..3944fdcd 100644
--- a/src/bn/mod.rs
+++ b/src/bn/mod.rs
@@ -145,6 +145,14 @@ impl BigNum {
}
}
+/*XXX
+ pub fn mod_word(&self, w: c_ulong) -> c_ulong {
+ unsafe {
+ BN_mod_word(self.raw(), w)
+ }
+ }
+*/
+
pub fn checked_gcd(&self, a: &BigNum) -> Result<BigNum, SslError> {
unsafe {
with_bn_in_ctx!(r, ctx, { ffi::BN_gcd(r.raw(), self.raw(), a.raw(), ctx) == 1 })