Commit 0493739d2baf9f002b10980f40b19518caa61351

Karel Miko 2018-12-02T13:10:09

add missing comments

diff --git a/bn_mp_get_long.c b/bn_mp_get_long.c
index bb9bd75..7a455df 100644
--- a/bn_mp_get_long.c
+++ b/bn_mp_get_long.c
@@ -37,3 +37,7 @@ unsigned long mp_get_long(const mp_int *a)
    return res;
 }
 #endif
+
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */
diff --git a/bn_mp_get_long_long.c b/bn_mp_get_long_long.c
index a7a18cd..04bde20 100644
--- a/bn_mp_get_long_long.c
+++ b/bn_mp_get_long_long.c
@@ -37,3 +37,7 @@ unsigned long long mp_get_long_long(const mp_int *a)
    return res;
 }
 #endif
+
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */
diff --git a/bn_mp_sqrtmod_prime.c b/bn_mp_sqrtmod_prime.c
index f7647b9..6502f78 100644
--- a/bn_mp_sqrtmod_prime.c
+++ b/bn_mp_sqrtmod_prime.c
@@ -5,6 +5,10 @@
  * LibTomMath is a library that provides multiple-precision
  * integer arithmetic as well as number theoretic functionality.
  *
+ * The library was designed directly after the MPI library by
+ * Michael Fromberger but has been written from scratch with
+ * additional optimizations in place.
+ *
  * The library is free for all purposes without any express
  * guarantee it works.
  */
@@ -122,3 +126,7 @@ cleanup:
 }
 
 #endif
+
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */
diff --git a/tommath_class.h b/tommath_class.h
index 6885e23..234d4da 100644
--- a/tommath_class.h
+++ b/tommath_class.h
@@ -1,3 +1,15 @@
+/* LibTomMath, multiple-precision integer library -- Tom St Denis
+ *
+ * LibTomMath is a library that provides multiple-precision
+ * integer arithmetic as well as number theoretic functionality.
+ *
+ * The library was designed directly after the MPI library by
+ * Michael Fromberger but has been written from scratch with
+ * additional optimizations in place.
+ *
+ * The library is free for all purposes without any express
+ * guarantee it works.
+ */
 #if !(defined(LTM1) && defined(LTM2) && defined(LTM3))
 #if defined(LTM2)
 #   define LTM3
@@ -1126,3 +1138,7 @@
 #else
 #   define LTM_LAST
 #endif
+
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */
diff --git a/tommath_superclass.h b/tommath_superclass.h
index da53793..718c75d 100644
--- a/tommath_superclass.h
+++ b/tommath_superclass.h
@@ -1,3 +1,16 @@
+/* LibTomMath, multiple-precision integer library -- Tom St Denis
+ *
+ * LibTomMath is a library that provides multiple-precision
+ * integer arithmetic as well as number theoretic functionality.
+ *
+ * The library was designed directly after the MPI library by
+ * Michael Fromberger but has been written from scratch with
+ * additional optimizations in place.
+ *
+ * The library is free for all purposes without any express
+ * guarantee it works.
+ */
+
 /* super class file for PK algos */
 
 /* default ... include all MPI */