Skip to content

Commit f51249b

Browse files
committed
clean-up file headers
1 parent f9536dc commit f51249b

File tree

130 files changed

+4
-259
lines changed

Some content is hidden

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

130 files changed

+4
-259
lines changed

bn_error.c

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
*
1212
* The library is free for all purposes without any express
1313
* guarantee it works.
14-
*
15-
* Tom St Denis, tstdenis82@gmail.com, http://libtom.org
1614
*/
1715

1816
static const struct {

bn_fast_mp_invmod.c

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
*
1212
* The library is free for all purposes without any express
1313
* guarantee it works.
14-
*
15-
* Tom St Denis, tstdenis82@gmail.com, http://libtom.org
1614
*/
1715

1816
/* computes the modular inverse via binary extended euclidean algorithm,

bn_fast_mp_montgomery_reduce.c

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
*
1212
* The library is free for all purposes without any express
1313
* guarantee it works.
14-
*
15-
* Tom St Denis, tstdenis82@gmail.com, http://libtom.org
1614
*/
1715

1816
/* computes xR**-1 == x (mod N) via Montgomery Reduction

bn_fast_s_mp_mul_digs.c

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
*
1212
* The library is free for all purposes without any express
1313
* guarantee it works.
14-
*
15-
* Tom St Denis, tstdenis82@gmail.com, http://libtom.org
1614
*/
1715

1816
/* Fast (comba) multiplier

bn_fast_s_mp_mul_high_digs.c

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
*
1212
* The library is free for all purposes without any express
1313
* guarantee it works.
14-
*
15-
* Tom St Denis, tstdenis82@gmail.com, http://libtom.org
1614
*/
1715

1816
/* this is a modified version of fast_s_mul_digs that only produces

bn_fast_s_mp_sqr.c

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
*
1212
* The library is free for all purposes without any express
1313
* guarantee it works.
14-
*
15-
* Tom St Denis, tstdenis82@gmail.com, http://libtom.org
1614
*/
1715

1816
/* the jist of squaring...

bn_mp_2expt.c

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
*
1212
* The library is free for all purposes without any express
1313
* guarantee it works.
14-
*
15-
* Tom St Denis, tstdenis82@gmail.com, http://libtom.org
1614
*/
1715

1816
/* computes a = 2**b

bn_mp_abs.c

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
*
1212
* The library is free for all purposes without any express
1313
* guarantee it works.
14-
*
15-
* Tom St Denis, tstdenis82@gmail.com, http://libtom.org
1614
*/
1715

1816
/* b = |a|

bn_mp_add.c

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
*
1212
* The library is free for all purposes without any express
1313
* guarantee it works.
14-
*
15-
* Tom St Denis, tstdenis82@gmail.com, http://libtom.org
1614
*/
1715

1816
/* high level addition (handles signs) */

bn_mp_add_d.c

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
*
1212
* The library is free for all purposes without any express
1313
* guarantee it works.
14-
*
15-
* Tom St Denis, tstdenis82@gmail.com, http://libtom.org
1614
*/
1715

1816
/* single digit addition */

bn_mp_addmod.c

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
*
1212
* The library is free for all purposes without any express
1313
* guarantee it works.
14-
*
15-
* Tom St Denis, tstdenis82@gmail.com, http://libtom.org
1614
*/
1715

1816
/* d = a + b (mod c) */

bn_mp_and.c

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
*
1212
* The library is free for all purposes without any express
1313
* guarantee it works.
14-
*
15-
* Tom St Denis, tstdenis82@gmail.com, http://libtom.org
1614
*/
1715

1816
/* AND two ints together */

bn_mp_clamp.c

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
*
1212
* The library is free for all purposes without any express
1313
* guarantee it works.
14-
*
15-
* Tom St Denis, tstdenis82@gmail.com, http://libtom.org
1614
*/
1715

1816
/* trim unused digits

bn_mp_clear.c

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
*
1212
* The library is free for all purposes without any express
1313
* guarantee it works.
14-
*
15-
* Tom St Denis, tstdenis82@gmail.com, http://libtom.org
1614
*/
1715

1816
/* clear one (frees) */

bn_mp_clear_multi.c

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
*
1212
* The library is free for all purposes without any express
1313
* guarantee it works.
14-
*
15-
* Tom St Denis, tstdenis82@gmail.com, http://libtom.org
1614
*/
1715

1816
#include <stdarg.h>

bn_mp_cmp.c

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
*
1212
* The library is free for all purposes without any express
1313
* guarantee it works.
14-
*
15-
* Tom St Denis, tstdenis82@gmail.com, http://libtom.org
1614
*/
1715

1816
/* compare two ints (signed)*/

bn_mp_cmp_d.c

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
*
1212
* The library is free for all purposes without any express
1313
* guarantee it works.
14-
*
15-
* Tom St Denis, tstdenis82@gmail.com, http://libtom.org
1614
*/
1715

1816
/* compare a digit */

bn_mp_cmp_mag.c

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
*
1212
* The library is free for all purposes without any express
1313
* guarantee it works.
14-
*
15-
* Tom St Denis, tstdenis82@gmail.com, http://libtom.org
1614
*/
1715

1816
/* compare maginitude of two ints (unsigned) */

bn_mp_cnt_lsb.c

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
*
1212
* The library is free for all purposes without any express
1313
* guarantee it works.
14-
*
15-
* Tom St Denis, tstdenis82@gmail.com, http://libtom.org
1614
*/
1715

1816
static const int lnz[16] = {

bn_mp_copy.c

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
*
1212
* The library is free for all purposes without any express
1313
* guarantee it works.
14-
*
15-
* Tom St Denis, tstdenis82@gmail.com, http://libtom.org
1614
*/
1715

1816
/* copy, b = a */

bn_mp_count_bits.c

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
*
1212
* The library is free for all purposes without any express
1313
* guarantee it works.
14-
*
15-
* Tom St Denis, tstdenis82@gmail.com, http://libtom.org
1614
*/
1715

1816
/* returns the number of bits in an int */

bn_mp_div.c

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
*
1212
* The library is free for all purposes without any express
1313
* guarantee it works.
14-
*
15-
* Tom St Denis, tstdenis82@gmail.com, http://libtom.org
1614
*/
1715

1816
#ifdef BN_MP_DIV_SMALL

bn_mp_div_2.c

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
*
1212
* The library is free for all purposes without any express
1313
* guarantee it works.
14-
*
15-
* Tom St Denis, tstdenis82@gmail.com, http://libtom.org
1614
*/
1715

1816
/* b = a/2 */

bn_mp_div_2d.c

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
*
1212
* The library is free for all purposes without any express
1313
* guarantee it works.
14-
*
15-
* Tom St Denis, tstdenis82@gmail.com, http://libtom.org
1614
*/
1715

1816
/* shift right by a certain bit count (store quotient in c, optional remainder in d) */

bn_mp_div_3.c

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
*
1212
* The library is free for all purposes without any express
1313
* guarantee it works.
14-
*
15-
* Tom St Denis, tstdenis82@gmail.com, http://libtom.org
1614
*/
1715

1816
/* divide by three (based on routine from MPI and the GMP manual) */

bn_mp_div_d.c

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
*
1212
* The library is free for all purposes without any express
1313
* guarantee it works.
14-
*
15-
* Tom St Denis, tstdenis82@gmail.com, http://libtom.org
1614
*/
1715

1816
static int s_is_power_of_two(mp_digit b, int *p)

bn_mp_dr_is_modulus.c

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
*
1212
* The library is free for all purposes without any express
1313
* guarantee it works.
14-
*
15-
* Tom St Denis, tstdenis82@gmail.com, http://libtom.org
1614
*/
1715

1816
/* determines if a number is a valid DR modulus */

bn_mp_dr_reduce.c

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
*
1212
* The library is free for all purposes without any express
1313
* guarantee it works.
14-
*
15-
* Tom St Denis, tstdenis82@gmail.com, http://libtom.org
1614
*/
1715

1816
/* reduce "x" in place modulo "n" using the Diminished Radix algorithm.

bn_mp_dr_setup.c

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
*
1212
* The library is free for all purposes without any express
1313
* guarantee it works.
14-
*
15-
* Tom St Denis, tstdenis82@gmail.com, http://libtom.org
1614
*/
1715

1816
/* determines the setup value */

bn_mp_exch.c

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
*
1212
* The library is free for all purposes without any express
1313
* guarantee it works.
14-
*
15-
* Tom St Denis, tstdenis82@gmail.com, http://libtom.org
1614
*/
1715

1816
/* swap the elements of two integers, for cases where you can't simply swap the

bn_mp_export.c

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
*
1212
* The library is free for all purposes without any express
1313
* guarantee it works.
14-
*
15-
* Tom St Denis, tstdenis82@gmail.com, http://libtom.org
1614
*/
1715

1816
/* based on gmp's mpz_export.

bn_mp_expt_d.c

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
*
1212
* The library is free for all purposes without any express
1313
* guarantee it works.
14-
*
15-
* Tom St Denis, tstdenis82@gmail.com, http://libtom.org
1614
*/
1715

1816
/* wrapper function for mp_expt_d_ex() */

bn_mp_expt_d_ex.c

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
*
1212
* The library is free for all purposes without any express
1313
* guarantee it works.
14-
*
15-
* Tom St Denis, tstdenis82@gmail.com, http://libtom.org
1614
*/
1715

1816
/* calculate c = a**b using a square-multiply algorithm */

bn_mp_exptmod.c

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
*
1212
* The library is free for all purposes without any express
1313
* guarantee it works.
14-
*
15-
* Tom St Denis, tstdenis82@gmail.com, http://libtom.org
1614
*/
1715

1816

bn_mp_exptmod_fast.c

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
*
1212
* The library is free for all purposes without any express
1313
* guarantee it works.
14-
*
15-
* Tom St Denis, tstdenis82@gmail.com, http://libtom.org
1614
*/
1715

1816
/* computes Y == G**X mod P, HAC pp.616, Algorithm 14.85

bn_mp_exteuclid.c

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
*
1212
* The library is free for all purposes without any express
1313
* guarantee it works.
14-
*
15-
* Tom St Denis, tstdenis82@gmail.com, http://libtom.org
1614
*/
1715

1816
/* Extended euclidean algorithm of (a, b) produces

bn_mp_fread.c

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
*
1212
* The library is free for all purposes without any express
1313
* guarantee it works.
14-
*
15-
* Tom St Denis, tstdenis82@gmail.com, http://libtom.org
1614
*/
1715

1816
#ifndef LTM_NO_FILE

bn_mp_fwrite.c

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
*
1212
* The library is free for all purposes without any express
1313
* guarantee it works.
14-
*
15-
* Tom St Denis, tstdenis82@gmail.com, http://libtom.org
1614
*/
1715

1816
#ifndef LTM_NO_FILE

bn_mp_gcd.c

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
*
1212
* The library is free for all purposes without any express
1313
* guarantee it works.
14-
*
15-
* Tom St Denis, tstdenis82@gmail.com, http://libtom.org
1614
*/
1715

1816
/* Greatest Common Divisor using the binary method */

bn_mp_get_int.c

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
*
1212
* The library is free for all purposes without any express
1313
* guarantee it works.
14-
*
15-
* Tom St Denis, tstdenis82@gmail.com, http://libtom.org
1614
*/
1715

1816
/* get the lower 32-bits of an mp_int */

bn_mp_get_long.c

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
*
1212
* The library is free for all purposes without any express
1313
* guarantee it works.
14-
*
15-
* Tom St Denis, tstdenis82@gmail.com, http://libtom.org
1614
*/
1715

1816
/* get the lower unsigned long of an mp_int, platform dependent */

bn_mp_get_long_long.c

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
*
1212
* The library is free for all purposes without any express
1313
* guarantee it works.
14-
*
15-
* Tom St Denis, tstdenis82@gmail.com, http://libtom.org
1614
*/
1715

1816
/* get the lower unsigned long long of an mp_int, platform dependent */

bn_mp_grow.c

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
*
1212
* The library is free for all purposes without any express
1313
* guarantee it works.
14-
*
15-
* Tom St Denis, tstdenis82@gmail.com, http://libtom.org
1614
*/
1715

1816
/* grow as required */

bn_mp_import.c

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
*
1212
* The library is free for all purposes without any express
1313
* guarantee it works.
14-
*
15-
* Tom St Denis, tstdenis82@gmail.com, http://libtom.org
1614
*/
1715

1816
/* based on gmp's mpz_import.

0 commit comments

Comments
 (0)