aboutsummaryrefslogtreecommitdiff
path: root/src/libmp/port/mpinvert.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libmp/port/mpinvert.c')
-rw-r--r--src/libmp/port/mpinvert.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libmp/port/mpinvert.c b/src/libmp/port/mpinvert.c
index ee263070..451b40f1 100644
--- a/src/libmp/port/mpinvert.c
+++ b/src/libmp/port/mpinvert.c
@@ -3,12 +3,12 @@
#define iseven(a) (((a)->p[0] & 1) == 0)
-// use extended gcd to find the multiplicative inverse
-// res = b**-1 mod m
+/* use extended gcd to find the multiplicative inverse */
+/* res = b**-1 mod m */
void
mpinvert(mpint *b, mpint *m, mpint *res)
{
- mpint *dc1, *dc2; // don't care
+ mpint *dc1, *dc2; /* don't care */
dc1 = mpnew(0);
dc2 = mpnew(0);