Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I think I'm missing something really basic here. If you encrypt-then-mac, what is to prevent an attacker from appending a valid MAC to a forged ciphertext (in order to mount a DOS attack for example)?


A MAC is a keyed hash -- you can only compute it if you have the MAC key.


Ah. Thanks. I knew I was missing something basic :-)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: