summaryrefslogtreecommitdiff
path: root/ecc-internal.h
diff options
context:
space:
mode:
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>2020-01-16 01:36:08 +0300
committerNiels Möller <nisse@lysator.liu.se>2020-01-16 18:57:03 +0100
commit21638928596f4d0145ccb09ada6694b973cab882 (patch)
treeafcb38958662bdf644c6d93a48025e79a0970c0d /ecc-internal.h
parentd1dbba1e7fcf4ad54e5d3435e381ae336c36cf2a (diff)
downloadnettle-21638928596f4d0145ccb09ada6694b973cab882.tar.gz
Add support for GOST GC256B curve
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>
Diffstat (limited to 'ecc-internal.h')
-rw-r--r--ecc-internal.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ecc-internal.h b/ecc-internal.h
index c918632d..53305bc0 100644
--- a/ecc-internal.h
+++ b/ecc-internal.h
@@ -91,6 +91,9 @@ extern const struct ecc_curve _nettle_secp_521r1;
extern const struct ecc_curve _nettle_curve25519;
extern const struct ecc_curve _nettle_curve448;
+/* GOST curves, visible with underscore prefix for now */
+extern const struct ecc_curve _nettle_gost_gc256b;
+
#define ECC_MAX_SIZE ((521 + GMP_NUMB_BITS - 1) / GMP_NUMB_BITS)
/* Window size for ecc_mul_a. Using 4 bits seems like a good choice,