by modalduality · 9y ago · 0 comments
Plain and simple, there is just more room to make a grave mistake.
If you're implementing an entire AEAD construction, like GCM or EAX, from scratch, then yes. Don't do that. You probably are safer composing CBC and HMAC than you would be writing your own EAX.
But if your library exports an EAX, using it is almost certainly a huge security win over DIY authenticated encryption, even if you can remember the order of operations properly.
In particular: you can easily end up with AE w/o AD by doing DIY ETM, and end up with serious exploitable bugs.