diff options
author | Paul Wolneykien <manowar@altlinux.org> | 2019-11-12 22:40:34 +0300 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2019-11-18 21:24:58 +0100 |
commit | a3a866f63e7a527fe3c053758b84d70c142f8283 (patch) | |
tree | f60cc8fdac0fe9064af14fd18f00ce4d82f7ccee /tests/benchmark.c | |
parent | bdbd032d1626dbb34e1840e5f5393524dd546a1d (diff) | |
download | libgcrypt-a3a866f63e7a527fe3c053758b84d70c142f8283.tar.gz |
ecc: update GOST2012 curves
* cipher/ecc-curves.c (domain_parms): rename GOST 2012 curves to contain
curve bit size
(curve_aliases): rename curves, provide backwards-compatible
aliases, add new OIDs and two new curves.
* cipher/ecc-curves.c (curve_aliases): add new OIDs and aliases for
* tests/basic.c (check_pubkey): use new name for GOST2012 512-bit test
curve.
* tests/benchmark.c (ecc_bench): use new name for GOST2012 512-bit test
curve.
--
Rename old GOST2012 curves to specifically mention that they are 512-bit
curves, add new OIDs for old curves and add two new curves.
Signed-off-by: Paul Wolneykien <manowar@altlinux.org>
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Diffstat (limited to 'tests/benchmark.c')
-rw-r--r-- | tests/benchmark.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/benchmark.c b/tests/benchmark.c index 0f15c0d8..a245152c 100644 --- a/tests/benchmark.c +++ b/tests/benchmark.c @@ -1528,7 +1528,7 @@ ecc_bench (int iterations, int print_header) else if (is_gost) err = gcry_sexp_build (&key_spec, NULL, "(genkey (ecdsa (curve %s)))", - p_size == 256 ? "GOST2001-test" : "GOST2012-test"); + p_size == 256 ? "GOST2001-test" : "GOST2012-512-test"); else err = gcry_sexp_build (&key_spec, NULL, "(genkey (ECDSA (nbits %d)))", p_size); |