It is DTLS 1.2 version question of this question.
I know from 4.1.2.4. of RFC 5246 (DTLS 1.2) AEAD Ciphers can be used in DTLS 1.2 exactly the same with TLS 1.2.
In TLS 1.2
AAD = seq_num + TLSCompressed.type + TLSCompressed.version + TLSCompressed.length
It makes sense since it is (implicit) sequence number + header of TLSCiphertext. However at DTLS 1.2 new header field epoch is added. Shouldn't I includes epoch as the AAD too?
In my understanding of DTLS, the below makes more sense. Am I correct?
AAD = DTLSCompressed.type + DTLSCompressed.version + DTLSCompressed.epoch + DTLSCompressed.sequence_number + DTLSCompressed.length