diff options
author | Jeffrey Walton <noloader@gmail.com> | 2018-03-25 00:43:21 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-25 00:43:21 -0400 |
commit | ff82b5a886d379899f8a4eb142c4fefb057e19c0 (patch) | |
tree | 1f55b81b448c44dc48140a41a4ce8fc3a30bee16 /integer.h | |
parent | b0f71705955698cf1e0d1101dbe6430566b70b63 (diff) | |
download | cryptopp-git-ff82b5a886d379899f8a4eb142c4fefb057e19c0.tar.gz |
Fix incorrect InverseMod (GH #602) (#603)
Diffstat (limited to 'integer.h')
-rw-r--r-- | integer.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -630,6 +630,11 @@ public: CRYPTOPP_DLL friend Integer CRYPTOPP_API a_exp_b_mod_c(const Integer &x, const Integer& e, const Integer& m);
#endif
+protected:
+
+ // https://github.com/weidai11/cryptopp/issues/602
+ Integer InverseModNext(const Integer &n) const;
+
private:
Integer(word value, size_t length);
|