aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/math/bigint/divide.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/math/bigint/divide.h')
-rw-r--r--src/lib/math/bigint/divide.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/lib/math/bigint/divide.h b/src/lib/math/bigint/divide.h
index cd98ca3eb..26468bda1 100644
--- a/src/lib/math/bigint/divide.h
+++ b/src/lib/math/bigint/divide.h
@@ -26,6 +26,19 @@ void vartime_divide(const BigInt& x,
BigInt& r);
/**
+* BigInt/word Division
+* @param x an integer
+* @param y a non-zero integer
+* @param q will be set to x / y
+* @param r will be set to x % y
+*/
+BOTAN_TEST_API
+void vartime_divide_word(const BigInt& x,
+ word y,
+ BigInt& q,
+ BigInt& r);
+
+/**
* BigInt division, const time variant
*
* This runs with control flow independent of the values of x/y.