aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-03-05 15:19:03 +0000
committerlloyd <[email protected]>2010-03-05 15:19:03 +0000
commit93873731f73e905d8714556f1ebe23acb32de0e1 (patch)
tree64245bf82639c8cdee0a598f471a4b81cbc1e97e
parentaf96b73070182dacbfee77659c282852c7e4d507 (diff)
Make the modulus visible in Modular_Reducer
-rw-r--r--src/math/numbertheory/reducer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/math/numbertheory/reducer.h b/src/math/numbertheory/reducer.h
index 80c0f27e1..c121f1499 100644
--- a/src/math/numbertheory/reducer.h
+++ b/src/math/numbertheory/reducer.h
@@ -18,6 +18,8 @@ namespace Botan {
class BOTAN_DLL Modular_Reducer
{
public:
+ const BigInt& get_modulus() const { return modulus; }
+
BigInt reduce(const BigInt& x) const;
/**