summaryrefslogtreecommitdiff
path: root/lib/gnutls_int.h
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-09-25 10:44:43 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2018-02-19 15:29:34 +0100
commit2eef509ce5f2d250f8dcaeffa46444dd2b694e91 (patch)
tree8912e441e876412e8e33c512fab063e4d2e7d534 /lib/gnutls_int.h
parentc05f10164518e1dda8450baeedbcbca035105a14 (diff)
downloadgnutls-2eef509ce5f2d250f8dcaeffa46444dd2b694e91.tar.gz
crypto-api: introduce internal version of AEAD API
This allows to initialize the TLS 1.3 connection state without additional allocations as required by the external API. Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'lib/gnutls_int.h')
-rw-r--r--lib/gnutls_int.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/gnutls_int.h b/lib/gnutls_int.h
index 21aa56bafe..c59cbdb0f6 100644
--- a/lib/gnutls_int.h
+++ b/lib/gnutls_int.h
@@ -669,13 +669,17 @@ typedef struct {
const version_entry_st *pversion;
} security_parameters_st;
+typedef struct api_aead_cipher_hd_st {
+ cipher_hd_st ctx_enc;
+} api_aead_cipher_hd_st;
+
struct record_state_st {
gnutls_datum_t mac_secret;
gnutls_datum_t IV;
gnutls_datum_t key;
union {
auth_cipher_hd_st tls12;
- gnutls_aead_cipher_hd_t aead;
+ api_aead_cipher_hd_st aead;
} ctx;
unsigned aead_tag_size;
unsigned is_aead;