summaryrefslogtreecommitdiff
path: root/ecc-gost-gc256b.c
Commit message (Collapse)AuthorAgeFilesLines
* Reduce output range of ecc_mod_sub.Niels Möller2022-08-161-0/+2
| | | | | | | | | | * ecc-mod-arith.c (ecc_mod_sub): Ensure that if inputs are in the range 0 <= a, b < 2m, then output is in the same range. * eccdata.c (output_curve): New outputs ecc_Bm2p and ecc_Bm2q. * ecc-internal.h (struct ecc_modulo): New member Bm2m (B^size - 2m), needed by ecc_mod_sub. Update all curves. * testsuite/ecc-mod-arith-test.c: New tests for ecc_mod_add and ecc_mod_sub.
* Implement secp192r1 square root, based on patch by Wim Lewis.Niels Möller2021-11-081-0/+4
|
* Generalize ECC_J_TO_A_ITCH.Niels Möller2020-11-131-1/+1
| | | | | | * ecc-internal.h (ECC_J_TO_A_ITCH): Generalize, and take invert itch as an argument, similarly to ECC_EH_TO_A_ITCH. Updated all secp and gost curve definitions to use it.
* Add separate result argument to all mod functions.Niels Möller2020-10-301-4/+4
| | | | | * ecc-internal.h (typedef ecc_mod_func): Add separate result argument. Updated all C implementations and callers.
* Merge branch 'delete-ecc-g'Niels Möller2020-01-281-1/+0
|
* Add support for GOST GC256B curveDmitry Eremin-Solenikov2020-01-161-0/+128
Add support for GC256B curve ("TLS Supported Groups" registry, draft-smyshlyaev-tls12-gost-suites) also known as GostR3410-2001-CryptoPro-A and GostR3410-2001-CryptoPro-XchA (RFC 4357). Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>