diff options
author | Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 2017-08-29 11:09:31 +0300 |
---|---|---|
committer | Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 2019-11-07 18:41:28 +0300 |
commit | 36a3974d24809ffc0de320eb67de7a83e810eb97 (patch) | |
tree | 4e0e4e1862d47e10f123428cbeddf69ade33b602 /lib/algorithms | |
parent | 7f93e7f5c649d50e15f8ac3d253cb5926e5757d6 (diff) | |
download | gnutls-36a3974d24809ffc0de320eb67de7a83e810eb97.tar.gz |
Declare groups corresponding to GOST curves
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Diffstat (limited to 'lib/algorithms')
-rw-r--r-- | lib/algorithms/groups.c | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/lib/algorithms/groups.c b/lib/algorithms/groups.c index 1f82bf678a..6e1326666a 100644 --- a/lib/algorithms/groups.c +++ b/lib/algorithms/groups.c @@ -73,6 +73,58 @@ static const gnutls_group_entry_st supported_groups[] = { .tls_id = 29, .pk = GNUTLS_PK_ECDH_X25519 }, +#ifdef ENABLE_GOST + /* draft-smyshlyaev-tls12-gost-suites-06, Section 6 */ + { + .name = "GC256A", + .id = GNUTLS_GROUP_GC256A, + .curve = GNUTLS_ECC_CURVE_GOST256A, + .pk = GNUTLS_PK_GOST_12_256, + .tls_id = 34, + }, + { + .name = "GC256B", + .id = GNUTLS_GROUP_GC256B, + .curve = GNUTLS_ECC_CURVE_GOST256B, + .pk = GNUTLS_PK_GOST_12_256, + .tls_id = 35, + }, + { + .name = "GC256C", + .id = GNUTLS_GROUP_GC256C, + .curve = GNUTLS_ECC_CURVE_GOST256C, + .pk = GNUTLS_PK_GOST_12_256, + .tls_id = 36, + }, + { + .name = "GC256D", + .id = GNUTLS_GROUP_GC256D, + .curve = GNUTLS_ECC_CURVE_GOST256D, + .pk = GNUTLS_PK_GOST_12_256, + .tls_id = 37, + }, + { + .name = "GC512A", + .id = GNUTLS_GROUP_GC512A, + .curve = GNUTLS_ECC_CURVE_GOST512A, + .pk = GNUTLS_PK_GOST_12_512, + .tls_id = 38, + }, + { + .name = "GC512B", + .id = GNUTLS_GROUP_GC512B, + .curve = GNUTLS_ECC_CURVE_GOST512B, + .pk = GNUTLS_PK_GOST_12_512, + .tls_id = 39, + }, + { + .name = "GC512C", + .id = GNUTLS_GROUP_GC512C, + .curve = GNUTLS_ECC_CURVE_GOST512C, + .pk = GNUTLS_PK_GOST_12_512, + .tls_id = 40, + }, +#endif #ifdef ENABLE_DHE { .name = "FFDHE2048", |