summaryrefslogtreecommitdiff
path: root/lib/gnutls_int.h
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2015-11-07 21:51:56 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2015-11-07 22:08:24 +0100
commitfd309b3c7e8cd34fa7a8de851b8640905d29eb73 (patch)
tree432349be14e60bf8f16d569ffb84922c7b1877ba /lib/gnutls_int.h
parent83c332ce00c79ff60811006e87dbfce77bccd9bd (diff)
downloadgnutls-fd309b3c7e8cd34fa7a8de851b8640905d29eb73.tar.gz
Modified the CHACHA20 cipher to conform to draft-ietf-tls-chacha20-poly1305-02
Diffstat (limited to 'lib/gnutls_int.h')
-rw-r--r--lib/gnutls_int.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/gnutls_int.h b/lib/gnutls_int.h
index 75b5f4dd8c..e9a1db54ff 100644
--- a/lib/gnutls_int.h
+++ b/lib/gnutls_int.h
@@ -448,13 +448,9 @@ typedef struct cipher_entry_st {
uint16_t explicit_iv; /* the size of explicit IV - the IV stored in record */
uint16_t cipher_iv; /* the size of IV needed by the cipher */
uint16_t tagsize;
+ bool xor_nonce; /* In this TLS AEAD cipher xor the implicit_iv with the nonce */
} cipher_entry_st;
-typedef enum nonce_type_t {
- NONCE_IS_SENT,
- NONCE_IS_COUNTER,
-} nonce_type_t;
-
typedef struct gnutls_cipher_suite_entry_st {
const char *name;
const uint8_t id[2];
@@ -466,7 +462,6 @@ typedef struct gnutls_cipher_suite_entry_st {
*/
gnutls_protocol_t min_dtls_version; /* DTLS min version */
gnutls_mac_algorithm_t prf;
- nonce_type_t nonce_type;
} gnutls_cipher_suite_entry_st;
/* This structure is used both for MACs and digests
@@ -628,7 +623,6 @@ struct record_parameters_st {
record_state_st read;
record_state_st write;
- unsigned send_nonce; /* whether explicit nonce is sent (in AEAD ciphers) */
/* Whether this state is in use, i.e., if there is
a pending handshake message waiting to be encrypted