From 28dd49faecf567bd946503dd4e3aa65985e659dd Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Wed, 3 Aug 2011 15:37:22 +0000 Subject: Expand range of ctrls for AES GCM to support retrieval and setting of invocation field. Add complete support for AES GCM ciphersuites including all those in RFC5288 and RFC5289. --- crypto/evp/evp.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'crypto/evp/evp.h') diff --git a/crypto/evp/evp.h b/crypto/evp/evp.h index 157de07b04..d6cf616356 100644 --- a/crypto/evp/evp.h +++ b/crypto/evp/evp.h @@ -391,6 +391,16 @@ struct evp_cipher_st #define EVP_CTRL_AEAD_TLS1_AAD 0x16 /* Used by composite AEAD ciphers, no-op in GCM, CCM... */ #define EVP_CTRL_AEAD_SET_MAC_KEY 0x17 +/* Set the GCM invocation field, decrypt only */ +#define EVP_CTRL_GCM_SET_IV_INV 0x18 + +/* GCM TLS constants */ +/* Length of fixed part of IV derived from PRF */ +#define EVP_GCM_TLS_FIXED_IV_LEN 4 +/* Length of explicit part of IV part of TLS records */ +#define EVP_GCM_TLS_EXPLICIT_IV_LEN 8 +/* Length of tag for TLS */ +#define EVP_GCM_TLS_TAG_LEN 16 typedef struct evp_cipher_info_st { -- cgit v1.2.3