From a251347c50165d564f5a9a798e1d3f8b86ef1bb1 Mon Sep 17 00:00:00 2001 From: Steffen Jaeckel Date: Mon, 23 Sep 2019 16:35:41 +0200 Subject: [PATCH] clean-up file headers & footers --- demo/rsa.c | 4 ---- demo/stest.c | 5 ----- demo/test.c | 6 ------ mtest/mtest.c | 4 ---- src/addsub/fp_add.c | 15 ++------------- src/addsub/fp_add_d.c | 15 ++------------- src/addsub/fp_addmod.c | 15 ++------------- src/addsub/fp_cmp.c | 15 ++------------- src/addsub/fp_cmp_d.c | 15 ++------------- src/addsub/fp_cmp_mag.c | 16 ++-------------- src/addsub/fp_sub.c | 16 ++-------------- src/addsub/fp_sub_d.c | 15 ++------------- src/addsub/fp_submod.c | 16 ++-------------- src/addsub/s_fp_add.c | 15 ++------------- src/addsub/s_fp_sub.c | 15 ++------------- src/bin/fp_radix_size.c | 15 ++------------- src/bin/fp_read_radix.c | 15 ++------------- src/bin/fp_read_signed_bin.c | 15 ++------------- src/bin/fp_read_unsigned_bin.c | 15 ++------------- src/bin/fp_reverse.c | 15 ++------------- src/bin/fp_s_rmap.c | 15 ++------------- src/bin/fp_signed_bin_size.c | 15 ++------------- src/bin/fp_to_signed_bin.c | 15 ++------------- src/bin/fp_to_unsigned_bin.c | 15 ++------------- src/bin/fp_toradix.c | 15 ++------------- src/bin/fp_toradix_n.c | 15 ++------------- src/bin/fp_unsigned_bin_size.c | 15 ++------------- src/bit/fp_cnt_lsb.c | 16 ++-------------- src/bit/fp_count_bits.c | 15 ++------------- src/bit/fp_div_2.c | 15 ++------------- src/bit/fp_div_2d.c | 15 ++------------- src/bit/fp_lshd.c | 15 ++------------- src/bit/fp_mod_2d.c | 15 ++------------- src/bit/fp_rshd.c | 16 ++-------------- src/divide/fp_div.c | 15 ++------------- src/divide/fp_div_d.c | 16 ++-------------- src/divide/fp_mod.c | 17 ++--------------- src/divide/fp_mod_d.c | 15 ++------------- src/exptmod/fp_2expt.c | 16 ++-------------- src/exptmod/fp_exptmod.c | 15 ++------------- src/generators/comba_mult_gen.c | 20 +++----------------- src/generators/comba_mult_smallgen.c | 9 +-------- src/generators/comba_sqr_gen.c | 20 +++----------------- src/generators/comba_sqr_smallgen.c | 20 +++----------------- src/misc/fp_ident.c | 16 ++-------------- src/misc/fp_rand.c | 15 ++------------- src/misc/fp_set.c | 15 ++------------- src/mont/fp_montgomery_calc_normalization.c | 16 ++-------------- src/mont/fp_montgomery_reduce.c | 16 ++-------------- src/mont/fp_montgomery_setup.c | 16 ++-------------- src/mul/fp_mul.c | 11 ++--------- src/mul/fp_mul_2.c | 16 ++-------------- src/mul/fp_mul_2d.c | 16 ++-------------- src/mul/fp_mul_comba.c | 16 ++-------------- src/mul/fp_mul_comba_12.c | 5 ----- src/mul/fp_mul_comba_17.c | 5 ----- src/mul/fp_mul_comba_20.c | 5 ----- src/mul/fp_mul_comba_24.c | 5 ----- src/mul/fp_mul_comba_28.c | 5 ----- src/mul/fp_mul_comba_3.c | 5 ----- src/mul/fp_mul_comba_32.c | 5 ----- src/mul/fp_mul_comba_4.c | 5 ----- src/mul/fp_mul_comba_48.c | 5 ----- src/mul/fp_mul_comba_6.c | 5 ----- src/mul/fp_mul_comba_64.c | 5 ----- src/mul/fp_mul_comba_7.c | 5 ----- src/mul/fp_mul_comba_8.c | 5 ----- src/mul/fp_mul_comba_9.c | 5 ----- src/mul/fp_mul_comba_small_set.c | 5 ----- src/mul/fp_mul_d.c | 16 ++-------------- src/mul/fp_mulmod.c | 15 ++------------- src/numtheory/fp_gcd.c | 15 ++------------- src/numtheory/fp_invmod.c | 15 ++------------- src/numtheory/fp_isprime.c | 15 ++------------- src/numtheory/fp_isprime_ex.c | 15 ++------------- src/numtheory/fp_lcm.c | 15 ++------------- src/numtheory/fp_prime_miller_rabin.c | 15 ++------------- src/numtheory/fp_prime_random_ex.c | 15 ++------------- src/sqr/fp_sqr.c | 11 ++--------- src/sqr/fp_sqr_comba.c | 15 ++------------- src/sqr/fp_sqr_comba_12.c | 5 ----- src/sqr/fp_sqr_comba_17.c | 5 ----- src/sqr/fp_sqr_comba_20.c | 5 ----- src/sqr/fp_sqr_comba_24.c | 5 ----- src/sqr/fp_sqr_comba_28.c | 5 ----- src/sqr/fp_sqr_comba_3.c | 5 ----- src/sqr/fp_sqr_comba_32.c | 5 ----- src/sqr/fp_sqr_comba_4.c | 5 ----- src/sqr/fp_sqr_comba_48.c | 5 ----- src/sqr/fp_sqr_comba_6.c | 5 ----- src/sqr/fp_sqr_comba_64.c | 5 ----- src/sqr/fp_sqr_comba_7.c | 5 ----- src/sqr/fp_sqr_comba_8.c | 5 ----- src/sqr/fp_sqr_comba_9.c | 5 ----- src/sqr/fp_sqr_comba_generic.c | 15 ++------------- src/sqr/fp_sqr_comba_small_set.c | 4 ---- src/sqr/fp_sqrmod.c | 15 ++------------- 97 files changed, 128 insertions(+), 1003 deletions(-) diff --git a/demo/rsa.c b/demo/rsa.c index d62c174..e9f1309 100644 --- a/demo/rsa.c +++ b/demo/rsa.c @@ -77,7 +77,3 @@ int main(void) return 0; } - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/demo/stest.c b/demo/stest.c index 747ed89..07daf0c 100644 --- a/demo/stest.c +++ b/demo/stest.c @@ -180,8 +180,3 @@ int main(void) return 0; } - - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/demo/test.c b/demo/test.c index f9bff08..14cd6ed 100644 --- a/demo/test.c +++ b/demo/test.c @@ -435,9 +435,3 @@ draw(&a);draw(&b);draw(&c);draw(&d); } #endif } - - - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/mtest/mtest.c b/mtest/mtest.c index 91f4a5c..bca368e 100644 --- a/mtest/mtest.c +++ b/mtest/mtest.c @@ -386,7 +386,3 @@ int main(int argc, char *argv[]) #endif return 0; } - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/addsub/fp_add.c b/src/addsub/fp_add.c index 9d1cf45..fd14a56 100644 --- a/src/addsub/fp_add.c +++ b/src/addsub/fp_add.c @@ -1,12 +1,5 @@ -/* TomsFastMath, a fast ISO C bignum library. - * - * This project is meant to fill in where LibTomMath - * falls short. That is speed ;-) - * - * This project is public domain and free for all purposes. - * - * Tom St Denis, tomstdenis@gmail.com - */ +/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */ +/* SPDX-License-Identifier: Unlicense */ #include void fp_add(fp_int *a, fp_int *b, fp_int *c) @@ -37,7 +30,3 @@ void fp_add(fp_int *a, fp_int *b, fp_int *c) } } } - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/addsub/fp_add_d.c b/src/addsub/fp_add_d.c index 4b990fb..84fc8ce 100644 --- a/src/addsub/fp_add_d.c +++ b/src/addsub/fp_add_d.c @@ -1,12 +1,5 @@ -/* TomsFastMath, a fast ISO C bignum library. - * - * This project is meant to fill in where LibTomMath - * falls short. That is speed ;-) - * - * This project is public domain and free for all purposes. - * - * Tom St Denis, tomstdenis@gmail.com - */ +/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */ +/* SPDX-License-Identifier: Unlicense */ #include /* c = a + b */ @@ -16,7 +9,3 @@ void fp_add_d(fp_int *a, fp_digit b, fp_int *c) fp_set(&tmp, b); fp_add(a,&tmp,c); } - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/addsub/fp_addmod.c b/src/addsub/fp_addmod.c index 40191e7..fb52a57 100644 --- a/src/addsub/fp_addmod.c +++ b/src/addsub/fp_addmod.c @@ -1,12 +1,5 @@ -/* TomsFastMath, a fast ISO C bignum library. - * - * This project is meant to fill in where LibTomMath - * falls short. That is speed ;-) - * - * This project is public domain and free for all purposes. - * - * Tom St Denis, tomstdenis@gmail.com - */ +/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */ +/* SPDX-License-Identifier: Unlicense */ #include /* d = a + b (mod c) */ @@ -17,7 +10,3 @@ int fp_addmod(fp_int *a, fp_int *b, fp_int *c, fp_int *d) fp_add(a, b, &tmp); return fp_mod(&tmp, c, d); } - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/addsub/fp_cmp.c b/src/addsub/fp_cmp.c index 23f27e8..590b6ef 100644 --- a/src/addsub/fp_cmp.c +++ b/src/addsub/fp_cmp.c @@ -1,12 +1,5 @@ -/* TomsFastMath, a fast ISO C bignum library. - * - * This project is meant to fill in where LibTomMath - * falls short. That is speed ;-) - * - * This project is public domain and free for all purposes. - * - * Tom St Denis, tomstdenis@gmail.com - */ +/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */ +/* SPDX-License-Identifier: Unlicense */ #include int fp_cmp(fp_int *a, fp_int *b) @@ -25,7 +18,3 @@ int fp_cmp(fp_int *a, fp_int *b) } } } - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/addsub/fp_cmp_d.c b/src/addsub/fp_cmp_d.c index c2fb2ec..172cca1 100644 --- a/src/addsub/fp_cmp_d.c +++ b/src/addsub/fp_cmp_d.c @@ -1,12 +1,5 @@ -/* TomsFastMath, a fast ISO C bignum library. - * - * This project is meant to fill in where LibTomMath - * falls short. That is speed ;-) - * - * This project is public domain and free for all purposes. - * - * Tom St Denis, tomstdenis@gmail.com - */ +/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */ +/* SPDX-License-Identifier: Unlicense */ #include /* compare against a single digit */ @@ -32,7 +25,3 @@ int fp_cmp_d(fp_int *a, fp_digit b) } } - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/addsub/fp_cmp_mag.c b/src/addsub/fp_cmp_mag.c index bdce60b..a5fc54d 100644 --- a/src/addsub/fp_cmp_mag.c +++ b/src/addsub/fp_cmp_mag.c @@ -1,12 +1,5 @@ -/* TomsFastMath, a fast ISO C bignum library. - * - * This project is meant to fill in where LibTomMath - * falls short. That is speed ;-) - * - * This project is public domain and free for all purposes. - * - * Tom St Denis, tomstdenis@gmail.com - */ +/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */ +/* SPDX-License-Identifier: Unlicense */ #include int fp_cmp_mag(fp_int *a, fp_int *b) @@ -28,8 +21,3 @@ int fp_cmp_mag(fp_int *a, fp_int *b) } return FP_EQ; } - - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/addsub/fp_sub.c b/src/addsub/fp_sub.c index c482a6a..2592739 100644 --- a/src/addsub/fp_sub.c +++ b/src/addsub/fp_sub.c @@ -1,12 +1,5 @@ -/* TomsFastMath, a fast ISO C bignum library. - * - * This project is meant to fill in where LibTomMath - * falls short. That is speed ;-) - * - * This project is public domain and free for all purposes. - * - * Tom St Denis, tomstdenis@gmail.com - */ +/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */ +/* SPDX-License-Identifier: Unlicense */ #include /* c = a - b */ @@ -43,8 +36,3 @@ void fp_sub(fp_int *a, fp_int *b, fp_int *c) } } } - - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/addsub/fp_sub_d.c b/src/addsub/fp_sub_d.c index ba63a17..0cef413 100644 --- a/src/addsub/fp_sub_d.c +++ b/src/addsub/fp_sub_d.c @@ -1,12 +1,5 @@ -/* TomsFastMath, a fast ISO C bignum library. - * - * This project is meant to fill in where LibTomMath - * falls short. That is speed ;-) - * - * This project is public domain and free for all purposes. - * - * Tom St Denis, tomstdenis@gmail.com - */ +/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */ +/* SPDX-License-Identifier: Unlicense */ #include /* c = a - b */ @@ -16,7 +9,3 @@ void fp_sub_d(fp_int *a, fp_digit b, fp_int *c) fp_set(&tmp, b); fp_sub(a, &tmp, c); } - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/addsub/fp_submod.c b/src/addsub/fp_submod.c index 7e1ad48..f23403c 100644 --- a/src/addsub/fp_submod.c +++ b/src/addsub/fp_submod.c @@ -1,12 +1,5 @@ -/* TomsFastMath, a fast ISO C bignum library. - * - * This project is meant to fill in where LibTomMath - * falls short. That is speed ;-) - * - * This project is public domain and free for all purposes. - * - * Tom St Denis, tomstdenis@gmail.com - */ +/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */ +/* SPDX-License-Identifier: Unlicense */ #include /* d = a - b (mod c) */ @@ -17,8 +10,3 @@ int fp_submod(fp_int *a, fp_int *b, fp_int *c, fp_int *d) fp_sub(a, b, &tmp); return fp_mod(&tmp, c, d); } - - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/addsub/s_fp_add.c b/src/addsub/s_fp_add.c index 0633242..28ff25c 100644 --- a/src/addsub/s_fp_add.c +++ b/src/addsub/s_fp_add.c @@ -1,12 +1,5 @@ -/* TomsFastMath, a fast ISO C bignum library. - * - * This project is meant to fill in where LibTomMath - * falls short. That is speed ;-) - * - * This project is public domain and free for all purposes. - * - * Tom St Denis, tomstdenis@gmail.com - */ +/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */ +/* SPDX-License-Identifier: Unlicense */ #include /* unsigned addition */ @@ -36,7 +29,3 @@ void s_fp_add(fp_int *a, fp_int *b, fp_int *c) } fp_clamp(c); } - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/addsub/s_fp_sub.c b/src/addsub/s_fp_sub.c index dc03f0a..b87e2dd 100644 --- a/src/addsub/s_fp_sub.c +++ b/src/addsub/s_fp_sub.c @@ -1,12 +1,5 @@ -/* TomsFastMath, a fast ISO C bignum library. - * - * This project is meant to fill in where LibTomMath - * falls short. That is speed ;-) - * - * This project is public domain and free for all purposes. - * - * Tom St Denis, tomstdenis@gmail.com - */ +/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */ +/* SPDX-License-Identifier: Unlicense */ #include /* unsigned subtraction ||a|| >= ||b|| ALWAYS! */ @@ -34,7 +27,3 @@ void s_fp_sub(fp_int *a, fp_int *b, fp_int *c) } fp_clamp(c); } - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/bin/fp_radix_size.c b/src/bin/fp_radix_size.c index 8fc1da1..f32955f 100644 --- a/src/bin/fp_radix_size.c +++ b/src/bin/fp_radix_size.c @@ -1,12 +1,5 @@ -/* TomsFastMath, a fast ISO C bignum library. - * - * This project is meant to fill in where LibTomMath - * falls short. That is speed ;-) - * - * This project is public domain and free for all purposes. - * - * Tom St Denis, tomstdenis@gmail.com - */ +/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */ +/* SPDX-License-Identifier: Unlicense */ #include int fp_radix_size(fp_int *a, int radix, int *size) @@ -45,7 +38,3 @@ int fp_radix_size(fp_int *a, int radix, int *size) return FP_OKAY; } - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/bin/fp_read_radix.c b/src/bin/fp_read_radix.c index 431afa0..06525ab 100644 --- a/src/bin/fp_read_radix.c +++ b/src/bin/fp_read_radix.c @@ -1,12 +1,5 @@ -/* TomsFastMath, a fast ISO C bignum library. - * - * This project is meant to fill in where LibTomMath - * falls short. That is speed ;-) - * - * This project is public domain and free for all purposes. - * - * Tom St Denis, tomstdenis@gmail.com - */ +/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */ +/* SPDX-License-Identifier: Unlicense */ #include int fp_read_radix(fp_int *a, const char *str, int radix) @@ -64,7 +57,3 @@ int fp_read_radix(fp_int *a, const char *str, int radix) } return FP_OKAY; } - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/bin/fp_read_signed_bin.c b/src/bin/fp_read_signed_bin.c index 6467d19..91be982 100644 --- a/src/bin/fp_read_signed_bin.c +++ b/src/bin/fp_read_signed_bin.c @@ -1,12 +1,5 @@ -/* TomsFastMath, a fast ISO C bignum library. - * - * This project is meant to fill in where LibTomMath - * falls short. That is speed ;-) - * - * This project is public domain and free for all purposes. - * - * Tom St Denis, tomstdenis@gmail.com - */ +/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */ +/* SPDX-License-Identifier: Unlicense */ #include void fp_read_signed_bin(fp_int *a, const unsigned char *b, int c) @@ -21,7 +14,3 @@ void fp_read_signed_bin(fp_int *a, const unsigned char *b, int c) a->sign = FP_NEG; } } - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/bin/fp_read_unsigned_bin.c b/src/bin/fp_read_unsigned_bin.c index 975fe8a..34494a5 100644 --- a/src/bin/fp_read_unsigned_bin.c +++ b/src/bin/fp_read_unsigned_bin.c @@ -1,12 +1,5 @@ -/* TomsFastMath, a fast ISO C bignum library. - * - * This project is meant to fill in where LibTomMath - * falls short. That is speed ;-) - * - * This project is public domain and free for all purposes. - * - * Tom St Denis, tomstdenis@gmail.com - */ +/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */ +/* SPDX-License-Identifier: Unlicense */ #include void fp_read_unsigned_bin(fp_int *a, const unsigned char *b, int c) @@ -64,7 +57,3 @@ void fp_read_unsigned_bin(fp_int *a, const unsigned char *b, int c) #endif fp_clamp (a); } - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/bin/fp_reverse.c b/src/bin/fp_reverse.c index ece1d4a..95f59c5 100644 --- a/src/bin/fp_reverse.c +++ b/src/bin/fp_reverse.c @@ -1,12 +1,5 @@ -/* TomsFastMath, a fast ISO C bignum library. - * - * This project is meant to fill in where LibTomMath - * falls short. That is speed ;-) - * - * This project is public domain and free for all purposes. - * - * Tom St Denis, tomstdenis@gmail.com - */ +/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */ +/* SPDX-License-Identifier: Unlicense */ #include /* reverse an array, used for radix code */ @@ -25,7 +18,3 @@ void fp_reverse (unsigned char *s, int len) --iy; } } - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/bin/fp_s_rmap.c b/src/bin/fp_s_rmap.c index 832fc7b..9266990 100644 --- a/src/bin/fp_s_rmap.c +++ b/src/bin/fp_s_rmap.c @@ -1,17 +1,6 @@ -/* TomsFastMath, a fast ISO C bignum library. - * - * This project is meant to fill in where LibTomMath - * falls short. That is speed ;-) - * - * This project is public domain and free for all purposes. - * - * Tom St Denis, tomstdenis@gmail.com - */ +/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */ +/* SPDX-License-Identifier: Unlicense */ #include /* chars used in radix conversions */ const char *fp_s_rmap = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz+/"; - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/bin/fp_signed_bin_size.c b/src/bin/fp_signed_bin_size.c index 9db4baf..30b3e62 100644 --- a/src/bin/fp_signed_bin_size.c +++ b/src/bin/fp_signed_bin_size.c @@ -1,19 +1,8 @@ -/* TomsFastMath, a fast ISO C bignum library. - * - * This project is meant to fill in where LibTomMath - * falls short. That is speed ;-) - * - * This project is public domain and free for all purposes. - * - * Tom St Denis, tomstdenis@gmail.com - */ +/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */ +/* SPDX-License-Identifier: Unlicense */ #include int fp_signed_bin_size(fp_int *a) { return 1 + fp_unsigned_bin_size (a); } - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/bin/fp_to_signed_bin.c b/src/bin/fp_to_signed_bin.c index ab2a83f..0df450f 100644 --- a/src/bin/fp_to_signed_bin.c +++ b/src/bin/fp_to_signed_bin.c @@ -1,12 +1,5 @@ -/* TomsFastMath, a fast ISO C bignum library. - * - * This project is meant to fill in where LibTomMath - * falls short. That is speed ;-) - * - * This project is public domain and free for all purposes. - * - * Tom St Denis, tomstdenis@gmail.com - */ +/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */ +/* SPDX-License-Identifier: Unlicense */ #include void fp_to_signed_bin(fp_int *a, unsigned char *b) @@ -14,7 +7,3 @@ void fp_to_signed_bin(fp_int *a, unsigned char *b) fp_to_unsigned_bin (a, b + 1); b[0] = (unsigned char) ((a->sign == FP_ZPOS) ? 0 : 1); } - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/bin/fp_to_unsigned_bin.c b/src/bin/fp_to_unsigned_bin.c index f0eeb56..68eb42a 100644 --- a/src/bin/fp_to_unsigned_bin.c +++ b/src/bin/fp_to_unsigned_bin.c @@ -1,12 +1,5 @@ -/* TomsFastMath, a fast ISO C bignum library. - * - * This project is meant to fill in where LibTomMath - * falls short. That is speed ;-) - * - * This project is public domain and free for all purposes. - * - * Tom St Denis, tomstdenis@gmail.com - */ +/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */ +/* SPDX-License-Identifier: Unlicense */ #include void fp_to_unsigned_bin(fp_int *a, unsigned char *b) @@ -23,7 +16,3 @@ void fp_to_unsigned_bin(fp_int *a, unsigned char *b) } fp_reverse (b, x); } - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/bin/fp_toradix.c b/src/bin/fp_toradix.c index d16b065..f951f29 100644 --- a/src/bin/fp_toradix.c +++ b/src/bin/fp_toradix.c @@ -1,12 +1,5 @@ -/* TomsFastMath, a fast ISO C bignum library. - * - * This project is meant to fill in where LibTomMath - * falls short. That is speed ;-) - * - * This project is public domain and free for all purposes. - * - * Tom St Denis, tomstdenis@gmail.com - */ +/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */ +/* SPDX-License-Identifier: Unlicense */ #include /** @@ -25,7 +18,3 @@ int fp_toradix(fp_int *a, char *str, int radix) { return fp_toradix_n(a, str, radix, INT_MAX); } - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/bin/fp_toradix_n.c b/src/bin/fp_toradix_n.c index c26a02b..cabf028 100644 --- a/src/bin/fp_toradix_n.c +++ b/src/bin/fp_toradix_n.c @@ -1,12 +1,5 @@ -/* TomsFastMath, a fast ISO C bignum library. - * - * This project is meant to fill in where LibTomMath - * falls short. That is speed ;-) - * - * This project is public domain and free for all purposes. - * - * Tom St Denis, tomstdenis@gmail.com - */ +/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */ +/* SPDX-License-Identifier: Unlicense */ #include int fp_toradix_n(fp_int *a, char *str, int radix, int maxlen) @@ -65,7 +58,3 @@ int fp_toradix_n(fp_int *a, char *str, int radix, int maxlen) return FP_VAL; return FP_OKAY; } - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/bin/fp_unsigned_bin_size.c b/src/bin/fp_unsigned_bin_size.c index 120a1a7..2ed55fd 100644 --- a/src/bin/fp_unsigned_bin_size.c +++ b/src/bin/fp_unsigned_bin_size.c @@ -1,12 +1,5 @@ -/* TomsFastMath, a fast ISO C bignum library. - * - * This project is meant to fill in where LibTomMath - * falls short. That is speed ;-) - * - * This project is public domain and free for all purposes. - * - * Tom St Denis, tomstdenis@gmail.com - */ +/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */ +/* SPDX-License-Identifier: Unlicense */ #include int fp_unsigned_bin_size(fp_int *a) @@ -14,7 +7,3 @@ int fp_unsigned_bin_size(fp_int *a) int size = fp_count_bits (a); return (size / 8 + ((size & 7) != 0 ? 1 : 0)); } - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/bit/fp_cnt_lsb.c b/src/bit/fp_cnt_lsb.c index 5dfd0f7..858a592 100644 --- a/src/bit/fp_cnt_lsb.c +++ b/src/bit/fp_cnt_lsb.c @@ -1,12 +1,5 @@ -/* TomsFastMath, a fast ISO C bignum library. - * - * This project is meant to fill in where LibTomMath - * falls short. That is speed ;-) - * - * This project is public domain and free for all purposes. - * - * Tom St Denis, tomstdenis@gmail.com - */ +/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */ +/* SPDX-License-Identifier: Unlicense */ #include static const int lnz[16] = { @@ -39,8 +32,3 @@ int fp_cnt_lsb(fp_int *a) } return x; } - - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/bit/fp_count_bits.c b/src/bit/fp_count_bits.c index 4968a0f..6118d84 100644 --- a/src/bit/fp_count_bits.c +++ b/src/bit/fp_count_bits.c @@ -1,12 +1,5 @@ -/* TomsFastMath, a fast ISO C bignum library. - * - * This project is meant to fill in where LibTomMath - * falls short. That is speed ;-) - * - * This project is public domain and free for all purposes. - * - * Tom St Denis, tomstdenis@gmail.com - */ +/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */ +/* SPDX-License-Identifier: Unlicense */ #include int fp_count_bits (fp_int * a) @@ -30,7 +23,3 @@ int fp_count_bits (fp_int * a) } return r; } - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/bit/fp_div_2.c b/src/bit/fp_div_2.c index 4ddc4b5..b66623f 100644 --- a/src/bit/fp_div_2.c +++ b/src/bit/fp_div_2.c @@ -1,12 +1,5 @@ -/* TomsFastMath, a fast ISO C bignum library. - * - * This project is meant to fill in where LibTomMath - * falls short. That is speed ;-) - * - * This project is public domain and free for all purposes. - * - * Tom St Denis, tomstdenis@gmail.com - */ +/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */ +/* SPDX-License-Identifier: Unlicense */ #include /* b = a/2 */ @@ -47,7 +40,3 @@ void fp_div_2(fp_int * a, fp_int * b) b->sign = a->sign; fp_clamp (b); } - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/bit/fp_div_2d.c b/src/bit/fp_div_2d.c index e4a3edd..28732e0 100644 --- a/src/bit/fp_div_2d.c +++ b/src/bit/fp_div_2d.c @@ -1,12 +1,5 @@ -/* TomsFastMath, a fast ISO C bignum library. - * - * This project is meant to fill in where LibTomMath - * falls short. That is speed ;-) - * - * This project is public domain and free for all purposes. - * - * Tom St Denis, tomstdenis@gmail.com - */ +/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */ +/* SPDX-License-Identifier: Unlicense */ #include /* c = a / 2**b */ @@ -73,7 +66,3 @@ void fp_div_2d(fp_int *a, int b, fp_int *c, fp_int *d) fp_copy (&t, d); } } - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/bit/fp_lshd.c b/src/bit/fp_lshd.c index 0933655..07c9e13 100644 --- a/src/bit/fp_lshd.c +++ b/src/bit/fp_lshd.c @@ -1,12 +1,5 @@ -/* TomsFastMath, a fast ISO C bignum library. - * - * This project is meant to fill in where LibTomMath - * falls short. That is speed ;-) - * - * This project is public domain and free for all purposes. - * - * Tom St Denis, tomstdenis@gmail.com - */ +/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */ +/* SPDX-License-Identifier: Unlicense */ #include void fp_lshd(fp_int *a, int x) @@ -32,7 +25,3 @@ void fp_lshd(fp_int *a, int x) /* clamp digits */ fp_clamp(a); } - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/bit/fp_mod_2d.c b/src/bit/fp_mod_2d.c index d2818f0..f01b49a 100644 --- a/src/bit/fp_mod_2d.c +++ b/src/bit/fp_mod_2d.c @@ -1,12 +1,5 @@ -/* TomsFastMath, a fast ISO C bignum library. - * - * This project is meant to fill in where LibTomMath - * falls short. That is speed ;-) - * - * This project is public domain and free for all purposes. - * - * Tom St Denis, tomstdenis@gmail.com - */ +/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */ +/* SPDX-License-Identifier: Unlicense */ #include /* c = a mod 2**d */ @@ -36,7 +29,3 @@ void fp_mod_2d(fp_int *a, int b, fp_int *c) c->dp[b / DIGIT_BIT] &= ~((fp_digit)0) >> (DIGIT_BIT - b); fp_clamp (c); } - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/bit/fp_rshd.c b/src/bit/fp_rshd.c index 6dc3589..b58de93 100644 --- a/src/bit/fp_rshd.c +++ b/src/bit/fp_rshd.c @@ -1,12 +1,5 @@ -/* TomsFastMath, a fast ISO C bignum library. - * - * This project is meant to fill in where LibTomMath - * falls short. That is speed ;-) - * - * This project is public domain and free for all purposes. - * - * Tom St Denis, tomstdenis@gmail.com - */ +/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */ +/* SPDX-License-Identifier: Unlicense */ #include void fp_rshd(fp_int *a, int x) @@ -33,8 +26,3 @@ void fp_rshd(fp_int *a, int x) a->used -= x; fp_clamp(a); } - - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/divide/fp_div.c b/src/divide/fp_div.c index 4f6dd47..87d8b6a 100644 --- a/src/divide/fp_div.c +++ b/src/divide/fp_div.c @@ -1,12 +1,5 @@ -/* TomsFastMath, a fast ISO C bignum library. - * - * This project is meant to fill in where LibTomMath - * falls short. That is speed ;-) - * - * This project is public domain and free for all purposes. - * - * Tom St Denis, tomstdenis@gmail.com - */ +/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */ +/* SPDX-License-Identifier: Unlicense */ #include /* a/b => cb + d == a */ @@ -151,7 +144,3 @@ int fp_div(fp_int *a, fp_int *b, fp_int *c, fp_int *d) return FP_OKAY; } - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/divide/fp_div_d.c b/src/divide/fp_div_d.c index 982008d..20eb364 100644 --- a/src/divide/fp_div_d.c +++ b/src/divide/fp_div_d.c @@ -1,12 +1,5 @@ -/* TomsFastMath, a fast ISO C bignum library. - * - * This project is meant to fill in where LibTomMath - * falls short. That is speed ;-) - * - * This project is public domain and free for all purposes. - * - * Tom St Denis, tomstdenis@gmail.com - */ +/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */ +/* SPDX-License-Identifier: Unlicense */ #include static int s_is_power_of_two(fp_digit b, int *p) @@ -91,8 +84,3 @@ int fp_div_d(fp_int *a, fp_digit b, fp_int *c, fp_digit *d) return FP_OKAY; } - - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/divide/fp_mod.c b/src/divide/fp_mod.c index 147c0d7..76dc51e 100644 --- a/src/divide/fp_mod.c +++ b/src/divide/fp_mod.c @@ -1,12 +1,5 @@ -/* TomsFastMath, a fast ISO C bignum library. - * - * This project is meant to fill in where LibTomMath - * falls short. That is speed ;-) - * - * This project is public domain and free for all purposes. - * - * Tom St Denis, tomstdenis@gmail.com - */ +/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */ +/* SPDX-License-Identifier: Unlicense */ #include /* c = a mod b, 0 <= c < b */ @@ -26,9 +19,3 @@ int fp_mod(fp_int *a, fp_int *b, fp_int *c) } return FP_OKAY; } - - - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/divide/fp_mod_d.c b/src/divide/fp_mod_d.c index be31fbe..c2c6cfb 100644 --- a/src/divide/fp_mod_d.c +++ b/src/divide/fp_mod_d.c @@ -1,12 +1,5 @@ -/* TomsFastMath, a fast ISO C bignum library. - * - * This project is meant to fill in where LibTomMath - * falls short. That is speed ;-) - * - * This project is public domain and free for all purposes. - * - * Tom St Denis, tomstdenis@gmail.com - */ +/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */ +/* SPDX-License-Identifier: Unlicense */ #include /* c = a mod b, 0 <= c < b */ @@ -14,7 +7,3 @@ int fp_mod_d(fp_int *a, fp_digit b, fp_digit *c) { return fp_div_d(a, b, NULL, c); } - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/exptmod/fp_2expt.c b/src/exptmod/fp_2expt.c index a6ed603..34a2d32 100644 --- a/src/exptmod/fp_2expt.c +++ b/src/exptmod/fp_2expt.c @@ -1,12 +1,5 @@ -/* TomsFastMath, a fast ISO C bignum library. - * - * This project is meant to fill in where LibTomMath - * falls short. That is speed ;-) - * - * This project is public domain and free for all purposes. - * - * Tom St Denis, tomstdenis@gmail.com - */ +/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */ +/* SPDX-License-Identifier: Unlicense */ #include /* computes a = 2**b */ @@ -32,8 +25,3 @@ void fp_2expt(fp_int *a, int b) /* put the single bit in its place */ a->dp[z] = ((fp_digit)1) << (b % DIGIT_BIT); } - - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/exptmod/fp_exptmod.c b/src/exptmod/fp_exptmod.c index 418a931..93c2d9e 100644 --- a/src/exptmod/fp_exptmod.c +++ b/src/exptmod/fp_exptmod.c @@ -1,12 +1,5 @@ -/* TomsFastMath, a fast ISO C bignum library. - * - * This project is meant to fill in where LibTomMath - * falls short. That is speed ;-) - * - * This project is public domain and free for all purposes. - * - * Tom St Denis, tomstdenis@gmail.com - */ +/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */ +/* SPDX-License-Identifier: Unlicense */ #include #ifdef TFM_TIMING_RESISTANT @@ -270,7 +263,3 @@ int fp_exptmod(fp_int * G, fp_int * X, fp_int * P, fp_int * Y) return _fp_exptmod(G, X, P, Y); } } - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/generators/comba_mult_gen.c b/src/generators/comba_mult_gen.c index f33ca0c..64ad9a8 100644 --- a/src/generators/comba_mult_gen.c +++ b/src/generators/comba_mult_gen.c @@ -1,12 +1,5 @@ -/* TomsFastMath, a fast ISO C bignum library. - * - * This project is meant to fill in where LibTomMath - * falls short. That is speed ;-) - * - * This project is public domain and free for all purposes. - * - * Tom St Denis, tomstdenis@gmail.com - */ +/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */ +/* SPDX-License-Identifier: Unlicense */ /* program emits a NxN comba multiplier */ #include @@ -77,15 +70,8 @@ printf( " C->sign = A->sign ^ B->sign;\n" " fp_clamp(C);\n" " COMBA_FINI;\n" -"}\n#endif\n\n\n" -"/* $Source$ */\n" -"/* $Revision$ */\n" -"/* $Date$ */\n" +"}\n#endif\n" , N+N-1, N+N); return 0; } - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/generators/comba_mult_smallgen.c b/src/generators/comba_mult_smallgen.c index 4153516..fefb2ee 100644 --- a/src/generators/comba_mult_smallgen.c +++ b/src/generators/comba_mult_smallgen.c @@ -57,14 +57,7 @@ printf( " COMBA_FINI;\n" " break;\n", N+N-1, N+N); } -printf(" }\n}\n\n#endif\n\n\n" -"/* $Source$ */\n" -"/* $Revision$ */\n" -"/* $Date$ */\n"); +printf(" }\n}\n\n#endif\n"); return 0; } - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/generators/comba_sqr_gen.c b/src/generators/comba_sqr_gen.c index ab2dca0..32a468a 100644 --- a/src/generators/comba_sqr_gen.c +++ b/src/generators/comba_sqr_gen.c @@ -1,12 +1,5 @@ -/* TomsFastMath, a fast ISO C bignum library. - * - * This project is meant to fill in where LibTomMath - * falls short. That is speed ;-) - * - * This project is public domain and free for all purposes. - * - * Tom St Denis, tomstdenis@gmail.com - */ +/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */ +/* SPDX-License-Identifier: Unlicense */ #include #include @@ -100,15 +93,8 @@ printf( " B->sign = FP_ZPOS;\n" " memcpy(B->dp, b, %d * sizeof(fp_digit));\n" " fp_clamp(B);\n" -"}\n#endif\n\n\n" -"/* $Source$ */\n" -"/* $Revision$ */\n" -"/* $Date$ */\n" +"}\n#endif\n" , N+N, N+N); return 0; } - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/generators/comba_sqr_smallgen.c b/src/generators/comba_sqr_smallgen.c index 9c9e02f..b7b0408 100644 --- a/src/generators/comba_sqr_smallgen.c +++ b/src/generators/comba_sqr_smallgen.c @@ -1,12 +1,5 @@ -/* TomsFastMath, a fast ISO C bignum library. - * - * This project is meant to fill in where LibTomMath - * falls short. That is speed ;-) - * - * This project is public domain and free for all purposes. - * - * Tom St Denis, tomstdenis@gmail.com - */ +/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */ +/* SPDX-License-Identifier: Unlicense */ /* Generates squaring comba code... it learns it knows our secrets! */ #include @@ -108,15 +101,8 @@ printf( " break;\n\n", N+N, N+N); } -printf("}\n}\n\n#endif /* TFM_SMALL_SET */\n\n" -"/* $Source$ */\n" -"/* $Revision$ */\n" -"/* $Date$ */\n" +printf("}\n}\n\n#endif /* TFM_SMALL_SET */\n" ); return 0; } - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/misc/fp_ident.c b/src/misc/fp_ident.c index ea11561..5ab533f 100644 --- a/src/misc/fp_ident.c +++ b/src/misc/fp_ident.c @@ -1,12 +1,5 @@ -/* TomsFastMath, a fast ISO C bignum library. - * - * This project is meant to fill in where LibTomMath - * falls short. That is speed ;-) - * - * This project is public domain and free for all purposes. - * - * Tom St Denis, tomstdenis@gmail.com - */ +/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */ +/* SPDX-License-Identifier: Unlicense */ #include #ifndef GIT_VERSION @@ -95,8 +88,3 @@ int main(void) } #endif - - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/misc/fp_rand.c b/src/misc/fp_rand.c index 01198c5..d5e8b81 100644 --- a/src/misc/fp_rand.c +++ b/src/misc/fp_rand.c @@ -1,12 +1,5 @@ -/* TomsFastMath, a fast ISO C bignum library. - * - * This project is meant to fill in where LibTomMath - * falls short. That is speed ;-) - * - * This project is public domain and free for all purposes. - * - * Tom St Denis, tomstdenis@gmail.com - */ +/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */ +/* SPDX-License-Identifier: Unlicense */ #include #if FP_GEN_RANDOM_MAX == 0xffffffff @@ -59,7 +52,3 @@ void fp_rand(fp_int *a, int digits) return; } - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/misc/fp_set.c b/src/misc/fp_set.c index 5693759..19fb5f7 100644 --- a/src/misc/fp_set.c +++ b/src/misc/fp_set.c @@ -1,12 +1,5 @@ -/* TomsFastMath, a fast ISO C bignum library. - * - * This project is meant to fill in where LibTomMath - * falls short. That is speed ;-) - * - * This project is public domain and free for all purposes. - * - * Tom St Denis, tomstdenis@gmail.com - */ +/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */ +/* SPDX-License-Identifier: Unlicense */ #include void fp_set(fp_int *a, fp_digit b) @@ -15,7 +8,3 @@ void fp_set(fp_int *a, fp_digit b) a->dp[0] = b; a->used = a->dp[0] ? 1 : 0; } - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/mont/fp_montgomery_calc_normalization.c b/src/mont/fp_montgomery_calc_normalization.c index c21c8d0..6e2e379 100644 --- a/src/mont/fp_montgomery_calc_normalization.c +++ b/src/mont/fp_montgomery_calc_normalization.c @@ -1,12 +1,5 @@ -/* TomsFastMath, a fast ISO C bignum library. - * - * This project is meant to fill in where LibTomMath - * falls short. That is speed ;-) - * - * This project is public domain and free for all purposes. - * - * Tom St Denis, tomstdenis@gmail.com - */ +/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */ +/* SPDX-License-Identifier: Unlicense */ #include /* computes a = B**n mod b without division or multiplication useful for @@ -36,8 +29,3 @@ void fp_montgomery_calc_normalization(fp_int *a, fp_int *b) } } } - - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/mont/fp_montgomery_reduce.c b/src/mont/fp_montgomery_reduce.c index 7222e44..2b10ce5 100644 --- a/src/mont/fp_montgomery_reduce.c +++ b/src/mont/fp_montgomery_reduce.c @@ -1,12 +1,5 @@ -/* TomsFastMath, a fast ISO C bignum library. - * - * This project is meant to fill in where LibTomMath - * falls short. That is speed ;-) - * - * This project is public domain and free for all purposes. - * - * Tom St Denis, tomstdenis@gmail.com - */ +/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */ +/* SPDX-License-Identifier: Unlicense */ #include /******************************************************************/ @@ -545,8 +538,3 @@ void fp_montgomery_reduce(fp_int *a, fp_int *m, fp_digit mp) s_fp_sub (a, m, a); } } - - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/mont/fp_montgomery_setup.c b/src/mont/fp_montgomery_setup.c index 55f16dc..8b94c9b 100644 --- a/src/mont/fp_montgomery_setup.c +++ b/src/mont/fp_montgomery_setup.c @@ -1,12 +1,5 @@ -/* TomsFastMath, a fast ISO C bignum library. - * - * This project is meant to fill in where LibTomMath - * falls short. That is speed ;-) - * - * This project is public domain and free for all purposes. - * - * Tom St Denis, tomstdenis@gmail.com - */ +/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */ +/* SPDX-License-Identifier: Unlicense */ #include /* setups the montgomery reduction */ @@ -41,8 +34,3 @@ int fp_montgomery_setup(fp_int *a, fp_digit *rho) return FP_OKAY; } - - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/mul/fp_mul.c b/src/mul/fp_mul.c index e97c6cf..0101f8f 100644 --- a/src/mul/fp_mul.c +++ b/src/mul/fp_mul.c @@ -1,12 +1,5 @@ -/* TomsFastMath, a fast ISO C bignum library. - * - * This project is meant to fill in where LibTomMath - * falls short. That is speed ;-) - * - * This project is public domain and free for all purposes. - * - * Tom St Denis, tomstdenis@gmail.com - */ +/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */ +/* SPDX-License-Identifier: Unlicense */ #include /* c = a * b */ diff --git a/src/mul/fp_mul_2.c b/src/mul/fp_mul_2.c index bd40163..dbc7e17 100644 --- a/src/mul/fp_mul_2.c +++ b/src/mul/fp_mul_2.c @@ -1,12 +1,5 @@ -/* TomsFastMath, a fast ISO C bignum library. - * - * This project is meant to fill in where LibTomMath - * falls short. That is speed ;-) - * - * This project is public domain and free for all purposes. - * - * Tom St Denis, tomstdenis@gmail.com - */ +/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */ +/* SPDX-License-Identifier: Unlicense */ #include void fp_mul_2(fp_int * a, fp_int * b) @@ -60,8 +53,3 @@ void fp_mul_2(fp_int * a, fp_int * b) } b->sign = a->sign; } - - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/mul/fp_mul_2d.c b/src/mul/fp_mul_2d.c index dd81d41..25f2848 100644 --- a/src/mul/fp_mul_2d.c +++ b/src/mul/fp_mul_2d.c @@ -1,12 +1,5 @@ -/* TomsFastMath, a fast ISO C bignum library. - * - * This project is meant to fill in where LibTomMath - * falls short. That is speed ;-) - * - * This project is public domain and free for all purposes. - * - * Tom St Denis, tomstdenis@gmail.com - */ +/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */ +/* SPDX-License-Identifier: Unlicense */ #include /* c = a * 2**d */ @@ -40,8 +33,3 @@ void fp_mul_2d(fp_int *a, int b, fp_int *c) } fp_clamp(c); } - - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/mul/fp_mul_comba.c b/src/mul/fp_mul_comba.c index a4253fb..7d65e7a 100644 --- a/src/mul/fp_mul_comba.c +++ b/src/mul/fp_mul_comba.c @@ -1,12 +1,5 @@ -/* TomsFastMath, a fast ISO C bignum library. - * - * This project is meant to fill in where LibTomMath - * falls short. That is speed ;-) - * - * This project is public domain and free for all purposes. - * - * Tom St Denis, tomstdenis@gmail.com - */ +/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */ +/* SPDX-License-Identifier: Unlicense */ /* About this file... @@ -366,8 +359,3 @@ void fp_mul_comba(fp_int *A, fp_int *B, fp_int *C) } #endif - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ - diff --git a/src/mul/fp_mul_comba_12.c b/src/mul/fp_mul_comba_12.c index a547d5a..9408356 100644 --- a/src/mul/fp_mul_comba_12.c +++ b/src/mul/fp_mul_comba_12.c @@ -111,8 +111,3 @@ void fp_mul_comba12(fp_int *A, fp_int *B, fp_int *C) COMBA_FINI; } #endif - - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/mul/fp_mul_comba_17.c b/src/mul/fp_mul_comba_17.c index 820032f..6a4d095 100644 --- a/src/mul/fp_mul_comba_17.c +++ b/src/mul/fp_mul_comba_17.c @@ -151,8 +151,3 @@ void fp_mul_comba17(fp_int *A, fp_int *B, fp_int *C) COMBA_FINI; } #endif - - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/mul/fp_mul_comba_20.c b/src/mul/fp_mul_comba_20.c index c2e2c0a..74a20df 100644 --- a/src/mul/fp_mul_comba_20.c +++ b/src/mul/fp_mul_comba_20.c @@ -175,8 +175,3 @@ void fp_mul_comba20(fp_int *A, fp_int *B, fp_int *C) COMBA_FINI; } #endif - - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/mul/fp_mul_comba_24.c b/src/mul/fp_mul_comba_24.c index 8243284..5746853 100644 --- a/src/mul/fp_mul_comba_24.c +++ b/src/mul/fp_mul_comba_24.c @@ -207,8 +207,3 @@ void fp_mul_comba24(fp_int *A, fp_int *B, fp_int *C) COMBA_FINI; } #endif - - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/mul/fp_mul_comba_28.c b/src/mul/fp_mul_comba_28.c index ffd58f9..1ffac7c 100644 --- a/src/mul/fp_mul_comba_28.c +++ b/src/mul/fp_mul_comba_28.c @@ -239,8 +239,3 @@ void fp_mul_comba28(fp_int *A, fp_int *B, fp_int *C) COMBA_FINI; } #endif - - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/mul/fp_mul_comba_3.c b/src/mul/fp_mul_comba_3.c index 9bfb347..e40b70c 100644 --- a/src/mul/fp_mul_comba_3.c +++ b/src/mul/fp_mul_comba_3.c @@ -39,8 +39,3 @@ void fp_mul_comba3(fp_int *A, fp_int *B, fp_int *C) COMBA_FINI; } #endif - - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/mul/fp_mul_comba_32.c b/src/mul/fp_mul_comba_32.c index 30fb24d..34d73ff 100644 --- a/src/mul/fp_mul_comba_32.c +++ b/src/mul/fp_mul_comba_32.c @@ -285,8 +285,3 @@ void fp_mul_comba32(fp_int *A, fp_int *B, fp_int *C) COMBA_FINI; } #endif - - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/mul/fp_mul_comba_4.c b/src/mul/fp_mul_comba_4.c index 980423f..843a5ab 100644 --- a/src/mul/fp_mul_comba_4.c +++ b/src/mul/fp_mul_comba_4.c @@ -47,8 +47,3 @@ void fp_mul_comba4(fp_int *A, fp_int *B, fp_int *C) COMBA_FINI; } #endif - - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/mul/fp_mul_comba_48.c b/src/mul/fp_mul_comba_48.c index 34cd66d..823a9ba 100644 --- a/src/mul/fp_mul_comba_48.c +++ b/src/mul/fp_mul_comba_48.c @@ -429,8 +429,3 @@ void fp_mul_comba48(fp_int *A, fp_int *B, fp_int *C) COMBA_FINI; } #endif - - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/mul/fp_mul_comba_6.c b/src/mul/fp_mul_comba_6.c index 22afe33..bbb7b8d 100644 --- a/src/mul/fp_mul_comba_6.c +++ b/src/mul/fp_mul_comba_6.c @@ -63,8 +63,3 @@ void fp_mul_comba6(fp_int *A, fp_int *B, fp_int *C) COMBA_FINI; } #endif - - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/mul/fp_mul_comba_64.c b/src/mul/fp_mul_comba_64.c index eeca498..43124e0 100644 --- a/src/mul/fp_mul_comba_64.c +++ b/src/mul/fp_mul_comba_64.c @@ -573,8 +573,3 @@ void fp_mul_comba64(fp_int *A, fp_int *B, fp_int *C) COMBA_FINI; } #endif - - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/mul/fp_mul_comba_7.c b/src/mul/fp_mul_comba_7.c index e3e3f09..102e41d 100644 --- a/src/mul/fp_mul_comba_7.c +++ b/src/mul/fp_mul_comba_7.c @@ -71,8 +71,3 @@ void fp_mul_comba7(fp_int *A, fp_int *B, fp_int *C) COMBA_FINI; } #endif - - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/mul/fp_mul_comba_8.c b/src/mul/fp_mul_comba_8.c index 90952c8..d69cfe6 100644 --- a/src/mul/fp_mul_comba_8.c +++ b/src/mul/fp_mul_comba_8.c @@ -79,8 +79,3 @@ void fp_mul_comba8(fp_int *A, fp_int *B, fp_int *C) COMBA_FINI; } #endif - - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/mul/fp_mul_comba_9.c b/src/mul/fp_mul_comba_9.c index 3e5778f..fa730e8 100644 --- a/src/mul/fp_mul_comba_9.c +++ b/src/mul/fp_mul_comba_9.c @@ -87,8 +87,3 @@ void fp_mul_comba9(fp_int *A, fp_int *B, fp_int *C) COMBA_FINI; } #endif - - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/mul/fp_mul_comba_small_set.c b/src/mul/fp_mul_comba_small_set.c index 4d20165..ad1118c 100644 --- a/src/mul/fp_mul_comba_small_set.c +++ b/src/mul/fp_mul_comba_small_set.c @@ -1228,8 +1228,3 @@ void fp_mul_comba_small(fp_int *A, fp_int *B, fp_int *C) } #endif - - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/mul/fp_mul_d.c b/src/mul/fp_mul_d.c index 27dbc0d..ea5852d 100644 --- a/src/mul/fp_mul_d.c +++ b/src/mul/fp_mul_d.c @@ -1,12 +1,5 @@ -/* TomsFastMath, a fast ISO C bignum library. - * - * This project is meant to fill in where LibTomMath - * falls short. That is speed ;-) - * - * This project is public domain and free for all purposes. - * - * Tom St Denis, tomstdenis@gmail.com - */ +/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */ +/* SPDX-License-Identifier: Unlicense */ #include /* c = a * b */ @@ -33,8 +26,3 @@ void fp_mul_d(fp_int *a, fp_digit b, fp_int *c) } fp_clamp(c); } - - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/mul/fp_mulmod.c b/src/mul/fp_mulmod.c index 3c0069c..44d04be 100644 --- a/src/mul/fp_mulmod.c +++ b/src/mul/fp_mulmod.c @@ -1,12 +1,5 @@ -/* TomsFastMath, a fast ISO C bignum library. - * - * This project is meant to fill in where LibTomMath - * falls short. That is speed ;-) - * - * This project is public domain and free for all purposes. - * - * Tom St Denis, tomstdenis@gmail.com - */ +/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */ +/* SPDX-License-Identifier: Unlicense */ #include /* d = a * b (mod c) */ int fp_mulmod(fp_int *a, fp_int *b, fp_int *c, fp_int *d) @@ -16,7 +9,3 @@ int fp_mulmod(fp_int *a, fp_int *b, fp_int *c, fp_int *d) fp_mul(a, b, &tmp); return fp_mod(&tmp, c, d); } - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/numtheory/fp_gcd.c b/src/numtheory/fp_gcd.c index 3aa6387..9a6f904 100644 --- a/src/numtheory/fp_gcd.c +++ b/src/numtheory/fp_gcd.c @@ -1,12 +1,5 @@ -/* TomsFastMath, a fast ISO C bignum library. - * - * This project is meant to fill in where LibTomMath - * falls short. That is speed ;-) - * - * This project is public domain and free for all purposes. - * - * Tom St Denis, tomstdenis@gmail.com - */ +/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */ +/* SPDX-License-Identifier: Unlicense */ #include /* c = (a, b) */ @@ -49,7 +42,3 @@ void fp_gcd(fp_int *a, fp_int *b, fp_int *c) } fp_copy(&u, c); } - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/numtheory/fp_invmod.c b/src/numtheory/fp_invmod.c index 9a2329e..8033008 100644 --- a/src/numtheory/fp_invmod.c +++ b/src/numtheory/fp_invmod.c @@ -1,12 +1,5 @@ -/* TomsFastMath, a fast ISO C bignum library. - * - * This project is meant to fill in where LibTomMath - * falls short. That is speed ;-) - * - * This project is public domain and free for all purposes. - * - * Tom St Denis, tomstdenis@gmail.com - */ +/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */ +/* SPDX-License-Identifier: Unlicense */ #include static int fp_invmod_slow (fp_int * a, fp_int * b, fp_int * c) @@ -201,7 +194,3 @@ top: c->sign = neg; return FP_OKAY; } - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/numtheory/fp_isprime.c b/src/numtheory/fp_isprime.c index 8d73fb7..837b555 100644 --- a/src/numtheory/fp_isprime.c +++ b/src/numtheory/fp_isprime.c @@ -1,19 +1,8 @@ -/* TomsFastMath, a fast ISO C bignum library. - * - * This project is meant to fill in where LibTomMath - * falls short. That is speed ;-) - * - * This project is public domain and free for all purposes. - * - * Tom St Denis, tomstdenis@gmail.com - */ +/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */ +/* SPDX-License-Identifier: Unlicense */ #include int fp_isprime(fp_int *a) { return fp_isprime_ex(a, 8); } - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/numtheory/fp_isprime_ex.c b/src/numtheory/fp_isprime_ex.c index 1c08a6d..2b61f8c 100644 --- a/src/numtheory/fp_isprime_ex.c +++ b/src/numtheory/fp_isprime_ex.c @@ -1,12 +1,5 @@ -/* TomsFastMath, a fast ISO C bignum library. - * - * This project is meant to fill in where LibTomMath - * falls short. That is speed ;-) - * - * This project is public domain and free for all purposes. - * - * Tom St Denis, tomstdenis@gmail.com - */ +/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */ +/* SPDX-License-Identifier: Unlicense */ #include /* a few primes */ @@ -77,7 +70,3 @@ int fp_isprime_ex(fp_int *a, int t) } return FP_YES; } - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/numtheory/fp_lcm.c b/src/numtheory/fp_lcm.c index 19d9ea1..0945490 100644 --- a/src/numtheory/fp_lcm.c +++ b/src/numtheory/fp_lcm.c @@ -1,12 +1,5 @@ -/* TomsFastMath, a fast ISO C bignum library. - * - * This project is meant to fill in where LibTomMath - * falls short. That is speed ;-) - * - * This project is public domain and free for all purposes. - * - * Tom St Denis, tomstdenis@gmail.com - */ +/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */ +/* SPDX-License-Identifier: Unlicense */ #include /* c = [a, b] */ @@ -25,7 +18,3 @@ void fp_lcm(fp_int *a, fp_int *b, fp_int *c) fp_mul(a, &t2, c); } } - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/numtheory/fp_prime_miller_rabin.c b/src/numtheory/fp_prime_miller_rabin.c index 5d3302c..53a1d61 100644 --- a/src/numtheory/fp_prime_miller_rabin.c +++ b/src/numtheory/fp_prime_miller_rabin.c @@ -1,12 +1,5 @@ -/* TomsFastMath, a fast ISO C bignum library. - * - * This project is meant to fill in where LibTomMath - * falls short. That is speed ;-) - * - * This project is public domain and free for all purposes. - * - * Tom St Denis, tomstdenis@gmail.com - */ +/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */ +/* SPDX-License-Identifier: Unlicense */ #include /* Miller-Rabin test of "a" to the base of "b" as described in @@ -71,7 +64,3 @@ void fp_prime_miller_rabin (fp_int * a, fp_int * b, int *result) /* probably prime now */ *result = FP_YES; } - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/numtheory/fp_prime_random_ex.c b/src/numtheory/fp_prime_random_ex.c index 52b90e2..58f5c3b 100644 --- a/src/numtheory/fp_prime_random_ex.c +++ b/src/numtheory/fp_prime_random_ex.c @@ -1,12 +1,5 @@ -/* TomsFastMath, a fast ISO C bignum library. - * - * This project is meant to fill in where LibTomMath - * falls short. That is speed ;-) - * - * This project is public domain and free for all purposes. - * - * Tom St Denis, tomstdenis@gmail.com - */ +/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */ +/* SPDX-License-Identifier: Unlicense */ #include /* This is possibly the mother of all prime generation functions, muahahahahaha! */ @@ -95,7 +88,3 @@ error: free(tmp); return err; } - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/sqr/fp_sqr.c b/src/sqr/fp_sqr.c index 3678c7a..4cf40f7 100644 --- a/src/sqr/fp_sqr.c +++ b/src/sqr/fp_sqr.c @@ -1,12 +1,5 @@ -/* TomsFastMath, a fast ISO C bignum library. - * - * This project is meant to fill in where LibTomMath - * falls short. That is speed ;-) - * - * This project is public domain and free for all purposes. - * - * Tom St Denis, tomstdenis@gmail.com - */ +/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */ +/* SPDX-License-Identifier: Unlicense */ #include /* b = a*a */ diff --git a/src/sqr/fp_sqr_comba.c b/src/sqr/fp_sqr_comba.c index 1150333..9b6ed95 100644 --- a/src/sqr/fp_sqr_comba.c +++ b/src/sqr/fp_sqr_comba.c @@ -1,12 +1,5 @@ -/* - * - * This project is meant to fill in where LibTomMath - * falls short. That is speed ;-) - * - * This project is public domain and free for all purposes. - * - * Tom St Denis, tomstdenis@gmail.com - */ +/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */ +/* SPDX-License-Identifier: Unlicense */ #include #if defined(TFM_PRESCOTT) && defined(TFM_SSE2) @@ -671,7 +664,3 @@ asm( \ } while (0); #endif - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/sqr/fp_sqr_comba_12.c b/src/sqr/fp_sqr_comba_12.c index 30db6a0..5afda70 100644 --- a/src/sqr/fp_sqr_comba_12.c +++ b/src/sqr/fp_sqr_comba_12.c @@ -139,8 +139,3 @@ void fp_sqr_comba12(fp_int *A, fp_int *B) fp_clamp(B); } #endif - - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/sqr/fp_sqr_comba_17.c b/src/sqr/fp_sqr_comba_17.c index 194c79a..f13acb5 100644 --- a/src/sqr/fp_sqr_comba_17.c +++ b/src/sqr/fp_sqr_comba_17.c @@ -189,8 +189,3 @@ void fp_sqr_comba17(fp_int *A, fp_int *B) fp_clamp(B); } #endif - - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/sqr/fp_sqr_comba_20.c b/src/sqr/fp_sqr_comba_20.c index f14cc9e..054b5d2 100644 --- a/src/sqr/fp_sqr_comba_20.c +++ b/src/sqr/fp_sqr_comba_20.c @@ -219,8 +219,3 @@ void fp_sqr_comba20(fp_int *A, fp_int *B) fp_clamp(B); } #endif - - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/sqr/fp_sqr_comba_24.c b/src/sqr/fp_sqr_comba_24.c index 8def148..5aba88c 100644 --- a/src/sqr/fp_sqr_comba_24.c +++ b/src/sqr/fp_sqr_comba_24.c @@ -259,8 +259,3 @@ void fp_sqr_comba24(fp_int *A, fp_int *B) fp_clamp(B); } #endif - - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/sqr/fp_sqr_comba_28.c b/src/sqr/fp_sqr_comba_28.c index aa5406b..4572c0e 100644 --- a/src/sqr/fp_sqr_comba_28.c +++ b/src/sqr/fp_sqr_comba_28.c @@ -299,8 +299,3 @@ void fp_sqr_comba28(fp_int *A, fp_int *B) fp_clamp(B); } #endif - - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/sqr/fp_sqr_comba_3.c b/src/sqr/fp_sqr_comba_3.c index e92ce89..50f5367 100644 --- a/src/sqr/fp_sqr_comba_3.c +++ b/src/sqr/fp_sqr_comba_3.c @@ -49,8 +49,3 @@ void fp_sqr_comba3(fp_int *A, fp_int *B) fp_clamp(B); } #endif - - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/sqr/fp_sqr_comba_32.c b/src/sqr/fp_sqr_comba_32.c index be03f19..bf25ec4 100644 --- a/src/sqr/fp_sqr_comba_32.c +++ b/src/sqr/fp_sqr_comba_32.c @@ -339,8 +339,3 @@ void fp_sqr_comba32(fp_int *A, fp_int *B) fp_clamp(B); } #endif - - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/sqr/fp_sqr_comba_4.c b/src/sqr/fp_sqr_comba_4.c index b47125e..4bacd8a 100644 --- a/src/sqr/fp_sqr_comba_4.c +++ b/src/sqr/fp_sqr_comba_4.c @@ -59,8 +59,3 @@ void fp_sqr_comba4(fp_int *A, fp_int *B) fp_clamp(B); } #endif - - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/sqr/fp_sqr_comba_48.c b/src/sqr/fp_sqr_comba_48.c index 312906d..d6f4512 100644 --- a/src/sqr/fp_sqr_comba_48.c +++ b/src/sqr/fp_sqr_comba_48.c @@ -499,8 +499,3 @@ void fp_sqr_comba48(fp_int *A, fp_int *B) fp_clamp(B); } #endif - - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/sqr/fp_sqr_comba_6.c b/src/sqr/fp_sqr_comba_6.c index 914daaf..9907a57 100644 --- a/src/sqr/fp_sqr_comba_6.c +++ b/src/sqr/fp_sqr_comba_6.c @@ -79,8 +79,3 @@ void fp_sqr_comba6(fp_int *A, fp_int *B) fp_clamp(B); } #endif - - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/sqr/fp_sqr_comba_64.c b/src/sqr/fp_sqr_comba_64.c index 2aec744..7b06f7e 100644 --- a/src/sqr/fp_sqr_comba_64.c +++ b/src/sqr/fp_sqr_comba_64.c @@ -659,8 +659,3 @@ void fp_sqr_comba64(fp_int *A, fp_int *B) fp_clamp(B); } #endif - - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/sqr/fp_sqr_comba_7.c b/src/sqr/fp_sqr_comba_7.c index 99aca36..19e13e1 100644 --- a/src/sqr/fp_sqr_comba_7.c +++ b/src/sqr/fp_sqr_comba_7.c @@ -89,8 +89,3 @@ void fp_sqr_comba7(fp_int *A, fp_int *B) fp_clamp(B); } #endif - - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/sqr/fp_sqr_comba_8.c b/src/sqr/fp_sqr_comba_8.c index 7a72b8a..d4e1b57 100644 --- a/src/sqr/fp_sqr_comba_8.c +++ b/src/sqr/fp_sqr_comba_8.c @@ -99,8 +99,3 @@ void fp_sqr_comba8(fp_int *A, fp_int *B) fp_clamp(B); } #endif - - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/sqr/fp_sqr_comba_9.c b/src/sqr/fp_sqr_comba_9.c index 1669ef2..b15f5e3 100644 --- a/src/sqr/fp_sqr_comba_9.c +++ b/src/sqr/fp_sqr_comba_9.c @@ -109,8 +109,3 @@ void fp_sqr_comba9(fp_int *A, fp_int *B) fp_clamp(B); } #endif - - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/sqr/fp_sqr_comba_generic.c b/src/sqr/fp_sqr_comba_generic.c index d522d58..ccf19e7 100644 --- a/src/sqr/fp_sqr_comba_generic.c +++ b/src/sqr/fp_sqr_comba_generic.c @@ -1,12 +1,5 @@ -/* TomsFastMath, a fast ISO C bignum library. - * - * This project is meant to fill in where LibTomMath - * falls short. That is speed ;-) - * - * This project is public domain and free for all purposes. - * - * Tom St Denis, tomstdenis@gmail.com - */ +/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */ +/* SPDX-License-Identifier: Unlicense */ #ifndef TFM_PRE_GEN_MPI_C #define TFM_DEFINES @@ -94,7 +87,3 @@ void fp_sqr_comba(fp_int *A, fp_int *B) fp_copy(dst, B); } } - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/sqr/fp_sqr_comba_small_set.c b/src/sqr/fp_sqr_comba_small_set.c index f0b4563..d830f2e 100644 --- a/src/sqr/fp_sqr_comba_small_set.c +++ b/src/sqr/fp_sqr_comba_small_set.c @@ -1519,7 +1519,3 @@ void fp_sqr_comba_small(fp_int *A, fp_int *B) } #endif /* TFM_SMALL_SET */ - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ diff --git a/src/sqr/fp_sqrmod.c b/src/sqr/fp_sqrmod.c index 2bd6fb1..ebc4e96 100644 --- a/src/sqr/fp_sqrmod.c +++ b/src/sqr/fp_sqrmod.c @@ -1,12 +1,5 @@ -/* TomsFastMath, a fast ISO C bignum library. - * - * This project is meant to fill in where LibTomMath - * falls short. That is speed ;-) - * - * This project is public domain and free for all purposes. - * - * Tom St Denis, tomstdenis@gmail.com - */ +/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */ +/* SPDX-License-Identifier: Unlicense */ #include /* c = a * a (mod b) */ @@ -17,7 +10,3 @@ int fp_sqrmod(fp_int *a, fp_int *b, fp_int *c) fp_sqr(a, &tmp); return fp_mod(&tmp, b, c); } - -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */