Expand range of ctrls for AES GCM to support retrieval and setting of
[openssl.git] / crypto / evp / evp.h
index 157de07b04a89bc6f4a5aff1528c597cfb3cc24b..d6cf616356615e0a4dc17946b4538fa9d8caf7eb 100644 (file)
@@ -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
        {