@@ -128,7 +128,7 @@ openvpn_encrypt_aead(struct buffer *buf, struct buffer work,
128128 dmsg (D_PACKET_CONTENT , "ENCRYPT AD: %s" ,
129129 format_hex (BPTR (& work ), BLEN (& work ), 0 , & gc ));
130130
131- if (!(opt -> flags & CO_AEAD_TAG_AT_THE_END ))
131+ if (!(opt -> flags & CO_EPOCH_DATA_KEY_FORMAT ))
132132 {
133133 /* Reserve space for authentication tag */
134134 mac_out = buf_write_alloc (& work , mac_len );
@@ -149,7 +149,7 @@ openvpn_encrypt_aead(struct buffer *buf, struct buffer work,
149149 ASSERT (buf_inc_len (& work , outlen ));
150150
151151 /* if the tag is at end the end, allocate it now */
152- if (opt -> flags & CO_AEAD_TAG_AT_THE_END )
152+ if (opt -> flags & CO_EPOCH_DATA_KEY_FORMAT )
153153 {
154154 /* Reserve space for authentication tag */
155155 mac_out = buf_write_alloc (& work , mac_len );
@@ -475,7 +475,7 @@ openvpn_decrypt_aead(struct buffer *buf, struct buffer work,
475475 uint8_t * tag_ptr = NULL ;
476476 int data_len = 0 ;
477477
478- if (opt -> flags & CO_AEAD_TAG_AT_THE_END )
478+ if (opt -> flags & CO_EPOCH_DATA_KEY_FORMAT )
479479 {
480480 data_len = BLEN (buf ) - tag_size ;
481481 tag_ptr = BPTR (buf ) + data_len ;
0 commit comments