summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>2016-10-27 03:31:49 +0300
committerDmitry Eremin-Solenikov <dbaryshkov@gmail.com>2019-12-18 23:42:47 +0300
commit502d555bbc2ac85a9d3120515d08bb411097b4de (patch)
tree3e38e2e212828c83e1f8e894e482bd432f6b30b2
parent217849322aea10a28d948a3aba04e782a7527ef6 (diff)
downloadgnutls-502d555bbc2ac85a9d3120515d08bb411097b4de.tar.gz
Add GOST cipher suites
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
-rw-r--r--lib/algorithms/ciphersuites.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/algorithms/ciphersuites.c b/lib/algorithms/ciphersuites.c
index b7abfe607f..2c76f84d6d 100644
--- a/lib/algorithms/ciphersuites.c
+++ b/lib/algorithms/ciphersuites.c
@@ -334,6 +334,11 @@
#define GNUTLS_ECDHE_PSK_NULL_SHA256 { 0xC0, 0x3A }
#define GNUTLS_ECDHE_PSK_NULL_SHA384 { 0xC0, 0x3B }
+/* draft-smyshlyaev-tls12-gost-suites */
+#ifdef ENABLE_GOST
+#define GNUTLS_GOSTR341112_256_28147_CNT_IMIT { 0xc1, 0x02 }
+#endif
+
#define CIPHER_SUITES_COUNT (sizeof(cs_algorithms)/sizeof(gnutls_cipher_suite_entry_st)-1)
/* The following is a potential list of ciphersuites. For the options to be
@@ -1173,6 +1178,12 @@ static const gnutls_cipher_suite_entry_st cs_algorithms[] = {
GNUTLS_DTLS_VERSION_MIN),
#endif
+#ifdef ENABLE_GOST
+ ENTRY_PRF(GNUTLS_GOSTR341112_256_28147_CNT_IMIT,
+ GNUTLS_CIPHER_GOST28147_TC26Z_CNT, GNUTLS_KX_VKO_GOST_12,
+ GNUTLS_MAC_GOST28147_TC26Z_IMIT, GNUTLS_TLS1_2,
+ GNUTLS_VERSION_UNKNOWN, GNUTLS_MAC_STREEBOG_256),
+#endif
{0, {0, 0}, 0, 0, 0, 0, 0, 0}
};