Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Updated itch macros for ecc point multiplication and signaturesrefactor-ecc-mod | Niels Möller | 2020-11-08 | 8 | -16/+24 |
| | |||||
* | Eliminate one mpn_cnd_swap call in ecc_mul_m. | Niels Möller | 2020-11-08 | 2 | -7/+10 |
| | |||||
* | Reduce scratch need for ecc_mul_m | Niels Möller | 2020-11-08 | 3 | -40/+75 |
| | |||||
* | Reduce scratch need for ecc_add_jjj some more | Niels Möller | 2020-11-08 | 3 | -19/+19 |
| | |||||
* | Reduce scratch need for ecc_add_jja | Niels Möller | 2020-11-08 | 3 | -41/+51 |
| | |||||
* | Reduce scratch need for ecc_add_jjj | Niels Möller | 2020-11-08 | 3 | -55/+75 |
| | |||||
* | Comment improvement | Niels Möller | 2020-11-06 | 1 | -1/+1 |
| | |||||
* | Reduce scratch need for ecc_curve448_inv and ecc_curve448_sqrt | Niels Möller | 2020-11-06 | 2 | -80/+68 |
| | | | | | After these changes, both curve25519 and curve448 need 4*size for invert and 6*size for sqrt. | ||||
* | Reduce scratch need for ecc_curve25519_sqrt | Niels Möller | 2020-11-06 | 2 | -7/+8 |
| | |||||
* | Delete unneeded copy in ecc_add_jja. | Niels Möller | 2020-11-06 | 2 | -3/+6 |
| | |||||
* | Reduce scratch need for ecc_dup_jj | Niels Möller | 2020-11-05 | 3 | -48/+47 |
| | |||||
* | Reduce scratch need for ecc_add_thh | Niels Möller | 2020-11-03 | 4 | -36/+35 |
| | |||||
* | Reduce scratch need for ecc_dup_th | Niels Möller | 2020-11-03 | 3 | -35/+39 |
| | |||||
* | Reduce scratch need for ecc_add_ehh | Niels Möller | 2020-11-03 | 3 | -31/+31 |
| | |||||
* | Reduce scratch need for ecc_dup_eh. | Niels Möller | 2020-11-03 | 3 | -32/+38 |
| | |||||
* | Stricter requirements for in-place ecc_add_func. | Niels Möller | 2020-11-03 | 4 | -2/+7 |
| | |||||
* | Delete obsolete comment. | Niels Möller | 2020-11-03 | 1 | -1/+0 |
| | |||||
* | Reduce scratch need for ecc_add_th | Niels Möller | 2020-11-03 | 3 | -28/+29 |
| | |||||
* | Reduce scratch need for ecc_add_eh | Niels Möller | 2020-11-03 | 3 | -25/+30 |
| | |||||
* | Reduce scratch need for ecc_curve25519_sqrt | Niels Möller | 2020-11-02 | 2 | -18/+21 |
| | |||||
* | Reduce scratch need for ecc_curve25519_inv | Niels Möller | 2020-11-02 | 2 | -39/+41 |
| | |||||
* | Separate result area for ecc_mod_mul and ecc_mod_sqr. | Niels Möller | 2020-11-01 | 27 | -224/+214 |
| | | | | | | | | * ecc-mod-arith.c (ecc_mod_mul, ecc_mod_sqr): Separate argument for scratch area, reducing required size of result area. Update all callers to naïvely keep using result in scratch area. (ecc_mod_pow_2k, ecc_mod_pow_2k_mul): Simplified, also reducing required size of result area. | ||||
* | testsuite: Show curve bits in test_ecc_point failure message. | Niels Möller | 2020-11-01 | 2 | -2/+6 |
| | |||||
* | Update ChangeLog. | Niels Möller | 2020-10-31 | 1 | -0/+3 |
| | |||||
* | Update ARM mod and redc functions | Niels Möller | 2020-10-31 | 5 | -88/+99 |
| | |||||
* | Extend ecc-redc-test. | Niels Möller | 2020-10-31 | 2 | -9/+53 |
| | |||||
* | Update x86_64 ecc_secp256r1_redc for separate result argument. | Niels Möller | 2020-10-31 | 1 | -16/+20 |
| | |||||
* | Update x86_64 assembly mod functions | Niels Möller | 2020-10-30 | 6 | -108/+131 |
| | |||||
* | Add separate result argument to all mod functions. | Niels Möller | 2020-10-30 | 22 | -162/+215 |
| | | | | | * ecc-internal.h (typedef ecc_mod_func): Add separate result argument. Updated all C implementations and callers. | ||||
* | Delete testcase, it's invalid with 32-bit limbs. | Niels Möller | 2020-10-30 | 2 | -5/+0 |
| | |||||
* | Simplify ecc_mod, and prepare for separate result argument. | Niels Möller | 2020-10-29 | 3 | -20/+20 |
| | | | | | | * ecc-mod.c (ecc_mod): More unified handling of final carry folding. Also eliminates a goto statement. * testsuite/ecc-mod-test.c (test_fixed): Add another test case | ||||
* | blowfish: Add casts to uint32_t. | Niels Möller | 2020-10-29 | 2 | -2/+10 |
| | | | | | Avoids undefined behavior, since shifting an 8-bit value left by 24 bits overflows the range of signed int. Reported by Guido Vranken. | ||||
* | Use GMP functions mpn_cnd_add_n, mpn_cnd_sub_n and mpn_cnd_swap.use-mpn_cnd-functions | Niels Möller | 2020-10-28 | 17 | -49/+105 |
| | |||||
* | Shared implementation of ecc_mod_pow_2k and related functions | Niels Möller | 2020-10-14 | 5 | -62/+68 |
| | |||||
* | Merge branch 'invert-with-redc' into master-updates | Niels Möller | 2020-10-13 | 7 | -53/+90 |
|\ | |||||
| * | Make ecc modular inversion use redc form, for relevant curves.invert-with-redc | Niels Möller | 2020-01-29 | 7 | -53/+90 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ecc-mod-inv.c (ecc_mod_inv_destructive): New helper function, not preserving input argument. Extracted from old ecc_mod_inv. (ecc_mod_inv): Call ecc_mod_inv_destructive. (ecc_mod_inv_redc): New inversion function, with input and output in redc form. * ecc-secp224r1.c: Select between ecc_mod_inv and ecc_mod_inv_redc. * ecc-secp256r1.c: Likewise. * ecc-j-to-a.c (ecc_j_to_a): Simplify redc-related logic, taking advantage of ecc->p.invert handling redc, when appropriate. Reduce scratch need from 5n to 4n in the process (assuming inversion needs 2n). * testsuite/ecc-modinv-test.c (ref_modinv): Updated to do redc, if appropriate. | ||||
* | | Fix bogus email address in ChangeLog. | Niels Möller | 2020-09-25 | 1 | -6/+6 |
| | | |||||
* | | gcm: Micro optimized gcm_fill, for big and little endian. | Niels Möller | 2020-09-25 | 2 | -0/+46 |
| | | |||||
* | | Prefer to use ppc register names, if assembler supports it. | Niels Möller | 2020-09-24 | 2 | -4/+9 |
| | | |||||
* | | "PowerPC64" Use same register convention in VSR macro | Maamoun TK | 2020-09-23 | 1 | -4/+3 |
| | | |||||
* | | "PowerPC64" Use explicit register names | Maamoun TK | 2020-09-23 | 3 | -197/+200 |
| | | | | | | | | | | This patch is built upon ppc-m4-macrology.patch. Using explicit register names is working as expected now. | ||||
* | | ppc: Add configure test and macros to replace register names. | Niels Möller | 2020-09-21 | 6 | -2/+55 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | * aclocal.m4 (GMP_ASM_POWERPC_R_REGISTERS): New configure test, adapted from corresponding test in GMP's acinlude.m4. * configure.ac (ASM_PPC_WANT_R_REGISTERS): New substituted variable. Set using GMP_ASM_POWERPC_R_REGISTERS, when powerpc64 assembly code is enabled. * config.m4.in: Substituted here. * powerpc64/machine.m4: Check ASM_PPC_WANT_R_REGISTERS, and if needed, replace register names like r0, r1, ... with integers. * Makefile.in (%.asm): Include m4-utils.m4 for preprocessing of .asm files, and include config.m4 before machine.m4. | ||||
* | | M4 utilities, from GMP. | Niels Möller | 2020-09-21 | 3 | -1/+443 |
| | | | | | | | | | | | | * m4-utils.m4: New file with m4 utilities, copied from GMP's mpn/asm-defs.m4. * Makefile.in (DISTFILES): Add m4-utils.m4. | ||||
* | | Add missing file blowfish-internal.h to DISTFILES. | Niels Möller | 2020-09-15 | 2 | -1/+5 |
| | | |||||
* | | ChangeLog entry for m4 quoting change | Niels Möller | 2020-09-15 | 1 | -0/+6 |
| | | |||||
* | | Use default m4 quote character in asm files, part 5default-m4-quote-char | Niels Möller | 2020-09-14 | 5 | -98/+98 |
| | | | | | | | | Update powerpc64 files. | ||||
* | | Use default m4 quote character in asm files, part 4 | Niels Möller | 2020-09-14 | 8 | -134/+134 |
| | | | | | | | | Update sparc files (32 and 64). | ||||
* | | Update x86_64/fat/sha256-compress.asm, overlooked in part 1. | Niels Möller | 2020-09-14 | 1 | -4/+4 |
| | | |||||
* | | Use default m4 quote character in asm files, part 3 | Niels Möller | 2020-09-14 | 8 | -238/+238 |
| | | | | | | | | Update x86 files. | ||||
* | | Use default m4 quote character in asm files, part 2 | Niels Möller | 2020-09-13 | 37 | -602/+602 |
| | | | | | | | | Update arm files. |