Add constants to CCM and TLS.
authorDr. Stephen Henson <steve@openssl.org>
Fri, 3 Feb 2017 02:43:03 +0000 (02:43 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Wed, 8 Feb 2017 02:16:27 +0000 (02:16 +0000)
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2550)

include/openssl/evp.h

index e44521ce23fdec224d0e2f21cc7cba259e90a321..237a2b2dad6c2e36a138186e587c5722daa5391d 100644 (file)
@@ -367,6 +367,12 @@ typedef struct {
 # define EVP_CCM_TLS_FIXED_IV_LEN                        4
 /* Length of explicit part of IV part of TLS records */
 # define EVP_CCM_TLS_EXPLICIT_IV_LEN                     8
+/* Total length of CCM IV length for TLS */
+# define EVP_CCM_TLS_IV_LEN                              12
+/* Length of tag for TLS */
+# define EVP_CCM_TLS_TAG_LEN                             16
+/* Length of CCM8 tag for TLS */
+# define EVP_CCM8_TLS_TAG_LEN                            8
 
 typedef struct evp_cipher_info_st {
     const EVP_CIPHER *cipher;