Skip to content

Commit 7f42ce0

Browse files
authored
Merge pull request #211 from libtom/remove-footers
remove footers & headers
2 parents 4f8c353 + ff56140 commit 7f42ce0

File tree

162 files changed

+302
-2314
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

162 files changed

+302
-2314
lines changed

bn_error.c

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,7 @@
11
#include "tommath_private.h"
22
#ifdef BN_ERROR_C
3-
/* LibTomMath, multiple-precision integer library -- Tom St Denis
4-
*
5-
* LibTomMath is a library that provides multiple-precision
6-
* integer arithmetic as well as number theoretic functionality.
7-
*
8-
* The library was designed directly after the MPI library by
9-
* Michael Fromberger but has been written from scratch with
10-
* additional optimizations in place.
11-
*
12-
* SPDX-License-Identifier: Unlicense
13-
*/
3+
/* LibTomMath, multiple-precision integer library -- Tom St Denis */
4+
/* SPDX-License-Identifier: Unlicense */
145

156
static const struct {
167
int code;
@@ -38,7 +29,3 @@ const char *mp_error_to_string(int code)
3829
}
3930

4031
#endif
41-
42-
/* ref: $Format:%D$ */
43-
/* git commit: $Format:%H$ */
44-
/* commit time: $Format:%ai$ */

bn_fast_mp_invmod.c

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,7 @@
11
#include "tommath_private.h"
22
#ifdef BN_FAST_MP_INVMOD_C
3-
/* LibTomMath, multiple-precision integer library -- Tom St Denis
4-
*
5-
* LibTomMath is a library that provides multiple-precision
6-
* integer arithmetic as well as number theoretic functionality.
7-
*
8-
* The library was designed directly after the MPI library by
9-
* Michael Fromberger but has been written from scratch with
10-
* additional optimizations in place.
11-
*
12-
* SPDX-License-Identifier: Unlicense
13-
*/
3+
/* LibTomMath, multiple-precision integer library -- Tom St Denis */
4+
/* SPDX-License-Identifier: Unlicense */
145

156
/* computes the modular inverse via binary extended euclidean algorithm,
167
* that is c = 1/a mod b
@@ -154,7 +145,3 @@ int fast_mp_invmod(const mp_int *a, const mp_int *b, mp_int *c)
154145
return res;
155146
}
156147
#endif
157-
158-
/* ref: $Format:%D$ */
159-
/* git commit: $Format:%H$ */
160-
/* commit time: $Format:%ai$ */

bn_fast_mp_montgomery_reduce.c

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,7 @@
11
#include "tommath_private.h"
22
#ifdef BN_FAST_MP_MONTGOMERY_REDUCE_C
3-
/* LibTomMath, multiple-precision integer library -- Tom St Denis
4-
*
5-
* LibTomMath is a library that provides multiple-precision
6-
* integer arithmetic as well as number theoretic functionality.
7-
*
8-
* The library was designed directly after the MPI library by
9-
* Michael Fromberger but has been written from scratch with
10-
* additional optimizations in place.
11-
*
12-
* SPDX-License-Identifier: Unlicense
13-
*/
3+
/* LibTomMath, multiple-precision integer library -- Tom St Denis */
4+
/* SPDX-License-Identifier: Unlicense */
145

156
/* computes xR**-1 == x (mod N) via Montgomery Reduction
167
*
@@ -167,7 +158,3 @@ int fast_mp_montgomery_reduce(mp_int *x, const mp_int *n, mp_digit rho)
167158
return MP_OKAY;
168159
}
169160
#endif
170-
171-
/* ref: $Format:%D$ */
172-
/* git commit: $Format:%H$ */
173-
/* commit time: $Format:%ai$ */

bn_fast_s_mp_mul_digs.c

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,7 @@
11
#include "tommath_private.h"
22
#ifdef BN_FAST_S_MP_MUL_DIGS_C
3-
/* LibTomMath, multiple-precision integer library -- Tom St Denis
4-
*
5-
* LibTomMath is a library that provides multiple-precision
6-
* integer arithmetic as well as number theoretic functionality.
7-
*
8-
* The library was designed directly after the MPI library by
9-
* Michael Fromberger but has been written from scratch with
10-
* additional optimizations in place.
11-
*
12-
* SPDX-License-Identifier: Unlicense
13-
*/
3+
/* LibTomMath, multiple-precision integer library -- Tom St Denis */
4+
/* SPDX-License-Identifier: Unlicense */
145

156
/* Fast (comba) multiplier
167
*
@@ -98,7 +89,3 @@ int fast_s_mp_mul_digs(const mp_int *a, const mp_int *b, mp_int *c, int digs)
9889
return MP_OKAY;
9990
}
10091
#endif
101-
102-
/* ref: $Format:%D$ */
103-
/* git commit: $Format:%H$ */
104-
/* commit time: $Format:%ai$ */

bn_fast_s_mp_mul_high_digs.c

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,7 @@
11
#include "tommath_private.h"
22
#ifdef BN_FAST_S_MP_MUL_HIGH_DIGS_C
3-
/* LibTomMath, multiple-precision integer library -- Tom St Denis
4-
*
5-
* LibTomMath is a library that provides multiple-precision
6-
* integer arithmetic as well as number theoretic functionality.
7-
*
8-
* The library was designed directly after the MPI library by
9-
* Michael Fromberger but has been written from scratch with
10-
* additional optimizations in place.
11-
*
12-
* SPDX-License-Identifier: Unlicense
13-
*/
3+
/* LibTomMath, multiple-precision integer library -- Tom St Denis */
4+
/* SPDX-License-Identifier: Unlicense */
145

156
/* this is a modified version of fast_s_mul_digs that only produces
167
* output digits *above* digs. See the comments for fast_s_mul_digs
@@ -89,7 +80,3 @@ int fast_s_mp_mul_high_digs(const mp_int *a, const mp_int *b, mp_int *c, int dig
8980
return MP_OKAY;
9081
}
9182
#endif
92-
93-
/* ref: $Format:%D$ */
94-
/* git commit: $Format:%H$ */
95-
/* commit time: $Format:%ai$ */

bn_fast_s_mp_sqr.c

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,7 @@
11
#include "tommath_private.h"
22
#ifdef BN_FAST_S_MP_SQR_C
3-
/* LibTomMath, multiple-precision integer library -- Tom St Denis
4-
*
5-
* LibTomMath is a library that provides multiple-precision
6-
* integer arithmetic as well as number theoretic functionality.
7-
*
8-
* The library was designed directly after the MPI library by
9-
* Michael Fromberger but has been written from scratch with
10-
* additional optimizations in place.
11-
*
12-
* SPDX-License-Identifier: Unlicense
13-
*/
3+
/* LibTomMath, multiple-precision integer library -- Tom St Denis */
4+
/* SPDX-License-Identifier: Unlicense */
145

156
/* the jist of squaring...
167
* you do like mult except the offset of the tmpx [one that
@@ -105,7 +96,3 @@ int fast_s_mp_sqr(const mp_int *a, mp_int *b)
10596
return MP_OKAY;
10697
}
10798
#endif
108-
109-
/* ref: $Format:%D$ */
110-
/* git commit: $Format:%H$ */
111-
/* commit time: $Format:%ai$ */

bn_mp_2expt.c

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,7 @@
11
#include "tommath_private.h"
22
#ifdef BN_MP_2EXPT_C
3-
/* LibTomMath, multiple-precision integer library -- Tom St Denis
4-
*
5-
* LibTomMath is a library that provides multiple-precision
6-
* integer arithmetic as well as number theoretic functionality.
7-
*
8-
* The library was designed directly after the MPI library by
9-
* Michael Fromberger but has been written from scratch with
10-
* additional optimizations in place.
11-
*
12-
* SPDX-License-Identifier: Unlicense
13-
*/
3+
/* LibTomMath, multiple-precision integer library -- Tom St Denis */
4+
/* SPDX-License-Identifier: Unlicense */
145

156
/* computes a = 2**b
167
*
@@ -38,7 +29,3 @@ int mp_2expt(mp_int *a, int b)
3829
return MP_OKAY;
3930
}
4031
#endif
41-
42-
/* ref: $Format:%D$ */
43-
/* git commit: $Format:%H$ */
44-
/* commit time: $Format:%ai$ */

bn_mp_abs.c

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,7 @@
11
#include "tommath_private.h"
22
#ifdef BN_MP_ABS_C
3-
/* LibTomMath, multiple-precision integer library -- Tom St Denis
4-
*
5-
* LibTomMath is a library that provides multiple-precision
6-
* integer arithmetic as well as number theoretic functionality.
7-
*
8-
* The library was designed directly after the MPI library by
9-
* Michael Fromberger but has been written from scratch with
10-
* additional optimizations in place.
11-
*
12-
* SPDX-License-Identifier: Unlicense
13-
*/
3+
/* LibTomMath, multiple-precision integer library -- Tom St Denis */
4+
/* SPDX-License-Identifier: Unlicense */
145

156
/* b = |a|
167
*
@@ -33,7 +24,3 @@ int mp_abs(const mp_int *a, mp_int *b)
3324
return MP_OKAY;
3425
}
3526
#endif
36-
37-
/* ref: $Format:%D$ */
38-
/* git commit: $Format:%H$ */
39-
/* commit time: $Format:%ai$ */

bn_mp_add.c

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,7 @@
11
#include "tommath_private.h"
22
#ifdef BN_MP_ADD_C
3-
/* LibTomMath, multiple-precision integer library -- Tom St Denis
4-
*
5-
* LibTomMath is a library that provides multiple-precision
6-
* integer arithmetic as well as number theoretic functionality.
7-
*
8-
* The library was designed directly after the MPI library by
9-
* Michael Fromberger but has been written from scratch with
10-
* additional optimizations in place.
11-
*
12-
* SPDX-License-Identifier: Unlicense
13-
*/
3+
/* LibTomMath, multiple-precision integer library -- Tom St Denis */
4+
/* SPDX-License-Identifier: Unlicense */
145

156
/* high level addition (handles signs) */
167
int mp_add(const mp_int *a, const mp_int *b, mp_int *c)
@@ -44,7 +35,3 @@ int mp_add(const mp_int *a, const mp_int *b, mp_int *c)
4435
}
4536

4637
#endif
47-
48-
/* ref: $Format:%D$ */
49-
/* git commit: $Format:%H$ */
50-
/* commit time: $Format:%ai$ */

bn_mp_add_d.c

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,7 @@
11
#include "tommath_private.h"
22
#ifdef BN_MP_ADD_D_C
3-
/* LibTomMath, multiple-precision integer library -- Tom St Denis
4-
*
5-
* LibTomMath is a library that provides multiple-precision
6-
* integer arithmetic as well as number theoretic functionality.
7-
*
8-
* The library was designed directly after the MPI library by
9-
* Michael Fromberger but has been written from scratch with
10-
* additional optimizations in place.
11-
*
12-
* SPDX-License-Identifier: Unlicense
13-
*/
3+
/* LibTomMath, multiple-precision integer library -- Tom St Denis */
4+
/* SPDX-License-Identifier: Unlicense */
145

156
/* single digit addition */
167
int mp_add_d(const mp_int *a, mp_digit b, mp_int *c)
@@ -103,7 +94,3 @@ int mp_add_d(const mp_int *a, mp_digit b, mp_int *c)
10394
}
10495

10596
#endif
106-
107-
/* ref: $Format:%D$ */
108-
/* git commit: $Format:%H$ */
109-
/* commit time: $Format:%ai$ */

bn_mp_addmod.c

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,7 @@
11
#include "tommath_private.h"
22
#ifdef BN_MP_ADDMOD_C
3-
/* LibTomMath, multiple-precision integer library -- Tom St Denis
4-
*
5-
* LibTomMath is a library that provides multiple-precision
6-
* integer arithmetic as well as number theoretic functionality.
7-
*
8-
* The library was designed directly after the MPI library by
9-
* Michael Fromberger but has been written from scratch with
10-
* additional optimizations in place.
11-
*
12-
* SPDX-License-Identifier: Unlicense
13-
*/
3+
/* LibTomMath, multiple-precision integer library -- Tom St Denis */
4+
/* SPDX-License-Identifier: Unlicense */
145

156
/* d = a + b (mod c) */
167
int mp_addmod(const mp_int *a, const mp_int *b, const mp_int *c, mp_int *d)
@@ -31,7 +22,3 @@ int mp_addmod(const mp_int *a, const mp_int *b, const mp_int *c, mp_int *d)
3122
return res;
3223
}
3324
#endif
34-
35-
/* ref: $Format:%D$ */
36-
/* git commit: $Format:%H$ */
37-
/* commit time: $Format:%ai$ */

bn_mp_and.c

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,7 @@
11
#include "tommath_private.h"
22
#ifdef BN_MP_AND_C
3-
/* LibTomMath, multiple-precision integer library -- Tom St Denis
4-
*
5-
* LibTomMath is a library that provides multiple-precision
6-
* integer arithmetic as well as number theoretic functionality.
7-
*
8-
* The library was designed directly after the MPI library by
9-
* Michael Fromberger but has been written from scratch with
10-
* additional optimizations in place.
11-
*
12-
* SPDX-License-Identifier: Unlicense
13-
*/
3+
/* LibTomMath, multiple-precision integer library -- Tom St Denis */
4+
/* SPDX-License-Identifier: Unlicense */
145

156
/* AND two ints together */
167
int mp_and(const mp_int *a, const mp_int *b, mp_int *c)
@@ -48,7 +39,3 @@ int mp_and(const mp_int *a, const mp_int *b, mp_int *c)
4839
return MP_OKAY;
4940
}
5041
#endif
51-
52-
/* ref: $Format:%D$ */
53-
/* git commit: $Format:%H$ */
54-
/* commit time: $Format:%ai$ */

bn_mp_clamp.c

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,7 @@
11
#include "tommath_private.h"
22
#ifdef BN_MP_CLAMP_C
3-
/* LibTomMath, multiple-precision integer library -- Tom St Denis
4-
*
5-
* LibTomMath is a library that provides multiple-precision
6-
* integer arithmetic as well as number theoretic functionality.
7-
*
8-
* The library was designed directly after the MPI library by
9-
* Michael Fromberger but has been written from scratch with
10-
* additional optimizations in place.
11-
*
12-
* SPDX-License-Identifier: Unlicense
13-
*/
3+
/* LibTomMath, multiple-precision integer library -- Tom St Denis */
4+
/* SPDX-License-Identifier: Unlicense */
145

156
/* trim unused digits
167
*
@@ -34,7 +25,3 @@ void mp_clamp(mp_int *a)
3425
}
3526
}
3627
#endif
37-
38-
/* ref: $Format:%D$ */
39-
/* git commit: $Format:%H$ */
40-
/* commit time: $Format:%ai$ */

bn_mp_clear.c

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,7 @@
11
#include "tommath_private.h"
22
#ifdef BN_MP_CLEAR_C
3-
/* LibTomMath, multiple-precision integer library -- Tom St Denis
4-
*
5-
* LibTomMath is a library that provides multiple-precision
6-
* integer arithmetic as well as number theoretic functionality.
7-
*
8-
* The library was designed directly after the MPI library by
9-
* Michael Fromberger but has been written from scratch with
10-
* additional optimizations in place.
11-
*
12-
* SPDX-License-Identifier: Unlicense
13-
*/
3+
/* LibTomMath, multiple-precision integer library -- Tom St Denis */
4+
/* SPDX-License-Identifier: Unlicense */
145

156
/* clear one (frees) */
167
void mp_clear(mp_int *a)
@@ -34,7 +25,3 @@ void mp_clear(mp_int *a)
3425
}
3526
}
3627
#endif
37-
38-
/* ref: $Format:%D$ */
39-
/* git commit: $Format:%H$ */
40-
/* commit time: $Format:%ai$ */

0 commit comments

Comments
 (0)