From: Nikos Mavrogiannopoulos Date: Mon, 19 Dec 2011 00:16:43 +0000 (+0100) Subject: Added ciphersuites: GNUTLS_PSK_WITH_AES_256_GCM_SHA384 and GNUTLS_DHE_PSK_WITH_AES_25... X-Git-Tag: gnutls_3_0_10~56 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e943839de12ca459e298136af445f697de07d300;p=thirdparty%2Fgnutls.git Added ciphersuites: GNUTLS_PSK_WITH_AES_256_GCM_SHA384 and GNUTLS_DHE_PSK_WITH_AES_256_GCM_SHA384. --- diff --git a/NEWS b/NEWS index b6b3c40367..499281b995 100644 --- a/NEWS +++ b/NEWS @@ -6,6 +6,9 @@ See the end for copying conditions. ** libgnutls: Corrected ciphersuite GNUTLS_ECDHE_PSK_AES_256_CBC_SHA384 +** libgnutls: Added ciphersuites: GNUTLS_PSK_WITH_AES_256_GCM_SHA384 +and GNUTLS_DHE_PSK_WITH_AES_256_GCM_SHA384. + ** API and ABI modifications: No changes since last version. diff --git a/lib/algorithms/ciphersuites.c b/lib/algorithms/ciphersuites.c index 8a4fcba9bc..8924d4ca71 100644 --- a/lib/algorithms/ciphersuites.c +++ b/lib/algorithms/ciphersuites.c @@ -167,6 +167,8 @@ typedef struct /* GCM-PSK */ #define GNUTLS_PSK_AES_128_GCM_SHA256 { 0x00, 0xA8 } #define GNUTLS_DHE_PSK_AES_128_GCM_SHA256 { 0x00, 0xAA } +#define GNUTLS_PSK_WITH_AES_256_GCM_SHA384 { 0x00, 0xA9 } +#define GNUTLS_DHE_PSK_WITH_AES_256_GCM_SHA384 { 0x00, 0xAB } /* PSK - SHA256 HMAC */ #define GNUTLS_PSK_AES_128_CBC_SHA256 { 0x00, 0xAE } @@ -609,7 +611,14 @@ static const gnutls_cipher_suite_entry cs_algorithms[] = { GNUTLS_CIPHER_AES_256_CBC, GNUTLS_KX_ECDHE_ECDSA, GNUTLS_MAC_SHA384, GNUTLS_TLS1_2, GNUTLS_VERSION_MAX, 1, GNUTLS_DIG_SHA384), - + ENTRY_PRF(GNUTLS_PSK_WITH_AES_256_GCM_SHA384, + GNUTLS_CIPHER_AES_256_GCM, GNUTLS_KX_PSK, + GNUTLS_MAC_AEAD, GNUTLS_TLS1_2, + GNUTLS_VERSION_MAX, 1, GNUTLS_DIG_SHA384), + ENTRY_PRF(GNUTLS_DHE_PSK_WITH_AES_256_GCM_SHA384, + GNUTLS_CIPHER_AES_256_GCM, GNUTLS_KX_DHE_PSK, + GNUTLS_MAC_AEAD, GNUTLS_TLS1_2, + GNUTLS_VERSION_MAX, 1, GNUTLS_DIG_SHA384), {0, {0, 0}, 0, 0, 0, 0, 0, 0} };