summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Updated itch macros for ecc point multiplication and signaturesrefactor-ecc-modNiels Möller2020-11-088-16/+24
|
* Eliminate one mpn_cnd_swap call in ecc_mul_m.Niels Möller2020-11-082-7/+10
|
* Reduce scratch need for ecc_mul_mNiels Möller2020-11-083-40/+75
|
* Reduce scratch need for ecc_add_jjj some moreNiels Möller2020-11-083-19/+19
|
* Reduce scratch need for ecc_add_jjaNiels Möller2020-11-083-41/+51
|
* Reduce scratch need for ecc_add_jjjNiels Möller2020-11-083-55/+75
|
* Comment improvementNiels Möller2020-11-061-1/+1
|
* Reduce scratch need for ecc_curve448_inv and ecc_curve448_sqrtNiels Möller2020-11-062-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_sqrtNiels Möller2020-11-062-7/+8
|
* Delete unneeded copy in ecc_add_jja.Niels Möller2020-11-062-3/+6
|
* Reduce scratch need for ecc_dup_jjNiels Möller2020-11-053-48/+47
|
* Reduce scratch need for ecc_add_thhNiels Möller2020-11-034-36/+35
|
* Reduce scratch need for ecc_dup_thNiels Möller2020-11-033-35/+39
|
* Reduce scratch need for ecc_add_ehhNiels Möller2020-11-033-31/+31
|
* Reduce scratch need for ecc_dup_eh.Niels Möller2020-11-033-32/+38
|
* Stricter requirements for in-place ecc_add_func.Niels Möller2020-11-034-2/+7
|
* Delete obsolete comment.Niels Möller2020-11-031-1/+0
|
* Reduce scratch need for ecc_add_thNiels Möller2020-11-033-28/+29
|
* Reduce scratch need for ecc_add_ehNiels Möller2020-11-033-25/+30
|
* Reduce scratch need for ecc_curve25519_sqrtNiels Möller2020-11-022-18/+21
|
* Reduce scratch need for ecc_curve25519_invNiels Möller2020-11-022-39/+41
|
* Separate result area for ecc_mod_mul and ecc_mod_sqr.Niels Möller2020-11-0127-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öller2020-11-012-2/+6
|
* Update ChangeLog.Niels Möller2020-10-311-0/+3
|
* Update ARM mod and redc functionsNiels Möller2020-10-315-88/+99
|
* Extend ecc-redc-test.Niels Möller2020-10-312-9/+53
|
* Update x86_64 ecc_secp256r1_redc for separate result argument.Niels Möller2020-10-311-16/+20
|
* Update x86_64 assembly mod functionsNiels Möller2020-10-306-108/+131
|
* Add separate result argument to all mod functions.Niels Möller2020-10-3022-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öller2020-10-302-5/+0
|
* Simplify ecc_mod, and prepare for separate result argument.Niels Möller2020-10-293-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öller2020-10-292-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-functionsNiels Möller2020-10-2817-49/+105
|
* Shared implementation of ecc_mod_pow_2k and related functionsNiels Möller2020-10-145-62/+68
|
* Merge branch 'invert-with-redc' into master-updatesNiels Möller2020-10-137-53/+90
|\
| * Make ecc modular inversion use redc form, for relevant curves.invert-with-redcNiels Möller2020-01-297-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öller2020-09-251-6/+6
| |
* | gcm: Micro optimized gcm_fill, for big and little endian.Niels Möller2020-09-252-0/+46
| |
* | Prefer to use ppc register names, if assembler supports it.Niels Möller2020-09-242-4/+9
| |
* | "PowerPC64" Use same register convention in VSR macroMaamoun TK2020-09-231-4/+3
| |
* | "PowerPC64" Use explicit register namesMaamoun TK2020-09-233-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öller2020-09-216-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öller2020-09-213-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öller2020-09-152-1/+5
| |
* | ChangeLog entry for m4 quoting changeNiels Möller2020-09-151-0/+6
| |
* | Use default m4 quote character in asm files, part 5default-m4-quote-charNiels Möller2020-09-145-98/+98
| | | | | | | | Update powerpc64 files.
* | Use default m4 quote character in asm files, part 4Niels Möller2020-09-148-134/+134
| | | | | | | | Update sparc files (32 and 64).
* | Update x86_64/fat/sha256-compress.asm, overlooked in part 1.Niels Möller2020-09-141-4/+4
| |
* | Use default m4 quote character in asm files, part 3Niels Möller2020-09-148-238/+238
| | | | | | | | Update x86 files.
* | Use default m4 quote character in asm files, part 2Niels Möller2020-09-1337-602/+602
| | | | | | | | Update arm files.