From aa24c47c834015dd34d00bcf9373113f0c57e1f0 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Fri, 3 Feb 2017 02:43:03 +0000 Subject: [PATCH] Add constants to CCM and TLS. Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/2550) --- include/openssl/evp.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/openssl/evp.h b/include/openssl/evp.h index e44521ce23..237a2b2dad 100644 --- a/include/openssl/evp.h +++ b/include/openssl/evp.h @@ -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; -- 2.40.0