4 ms·
Here's a classic - not understanding the implications of encrypt-then-mac vs mac-then-encrypt. https://crypto.stackexchange.com/questions/202/should-we-mac-the
by markc 6y ago
Here's a classic - not understanding the implications of encrypt-then-mac vs mac-then-encrypt.
https://crypto.stackexchange.com/questions/202/should-we-mac-then-encrypt-or-encrypt-then-mac https://crypto.stackexchange.com/questions/202/should-we-mac...
- tzs 6y agoIf speed was not an issue and you don't mind having to have 3 keys, could you cover all the bases by doing MAC-then-encrypt, then treat that as cleartext and do encrypt-and-MAC on that, and finally treat the result of that as cleartext and do encrypt-then-MAC on that to get the final thing you send?