From: Dr. Stephen Henson Date: Fri, 3 Feb 2017 02:43:03 +0000 (+0000) Subject: Add constants to CCM and TLS. X-Git-Tag: OpenSSL_1_1_1-pre1~2464 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aa24c47c834015dd34d00bcf9373113f0c57e1f0;p=openssl Add constants to CCM and TLS. Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/2550) --- 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;