diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2015-08-26 11:02:39 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2015-08-26 11:36:51 +0200 |
commit | f7be583b6e236c86f5a642d5b5229d070d8c68f2 (patch) | |
tree | 8c39e7eeb1d156f74f7e88b724d55a0db8cea5ce /lib/includes/gnutls/gnutls.h.in | |
parent | a69c18667e6457b91683649cffe872bdc6776be7 (diff) | |
download | gnutls-f7be583b6e236c86f5a642d5b5229d070d8c68f2.tar.gz |
Added support for the SHA3 digest algorithm
Diffstat (limited to 'lib/includes/gnutls/gnutls.h.in')
-rw-r--r-- | lib/includes/gnutls/gnutls.h.in | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/lib/includes/gnutls/gnutls.h.in b/lib/includes/gnutls/gnutls.h.in index 370e0fddf4..ab7bfe560f 100644 --- a/lib/includes/gnutls/gnutls.h.in +++ b/lib/includes/gnutls/gnutls.h.in @@ -263,6 +263,10 @@ typedef enum { GNUTLS_MAC_SHA384 = 7, GNUTLS_MAC_SHA512 = 8, GNUTLS_MAC_SHA224 = 9, + GNUTLS_MAC_SHA3_224 = 10, /* reserved: no implementation */ + GNUTLS_MAC_SHA3_256 = 11, /* reserved: no implementation */ + GNUTLS_MAC_SHA3_384 = 12, /* reserved: no implementation */ + GNUTLS_MAC_SHA3_512 = 13, /* reserved: no implementation */ /* If you add anything here, make sure you align with gnutls_digest_algorithm_t. */ GNUTLS_MAC_AEAD = 200, /* indicates that MAC is on the cipher */ @@ -282,6 +286,10 @@ typedef enum { * @GNUTLS_DIG_SHA384: SHA-384 algorithm. * @GNUTLS_DIG_SHA512: SHA-512 algorithm. * @GNUTLS_DIG_SHA224: SHA-224 algorithm. + * @GNUTLS_DIG_SHA3_224: SHA3-224 algorithm. + * @GNUTLS_DIG_SHA3_256: SHA3-256 algorithm. + * @GNUTLS_DIG_SHA3_384: SHA3-384 algorithm. + * @GNUTLS_DIG_SHA3_512: SHA3-512 algorithm. * * Enumeration of different digest (hash) algorithms. */ @@ -295,7 +303,11 @@ typedef enum { GNUTLS_DIG_SHA256 = GNUTLS_MAC_SHA256, GNUTLS_DIG_SHA384 = GNUTLS_MAC_SHA384, GNUTLS_DIG_SHA512 = GNUTLS_MAC_SHA512, - GNUTLS_DIG_SHA224 = GNUTLS_MAC_SHA224 + GNUTLS_DIG_SHA224 = GNUTLS_MAC_SHA224, + GNUTLS_DIG_SHA3_224 = GNUTLS_MAC_SHA3_224, + GNUTLS_DIG_SHA3_256 = GNUTLS_MAC_SHA3_256, + GNUTLS_DIG_SHA3_384 = GNUTLS_MAC_SHA3_384, + GNUTLS_DIG_SHA3_512 = GNUTLS_MAC_SHA3_512 /* If you add anything here, make sure you align with gnutls_mac_algorithm_t. */ } gnutls_digest_algorithm_t; |