News for hackers. Stuff that matters.
Re:The Little MAC Attack by tptacek on Tuesday May 12, 2015 @10:48PM (#9536451)
Can you be a little more specific about the cleverness you're referring to here?
Re:The Little MAC Attack by dakami on Tuesday May 12, 2015 @11:30PM (#9536571)
Sure!

HMAC keys are exactly one block long. But lets say an app wants to have a key that's two blocks long. No big deal, hash that app key and now two is one.

Ah, but now let's say the attacker has control of input keys. He can provide both the two block key which HMAC will hash for him, or he can do the work himself and prehash the two into one. Now two different input keys seem to provide the same output (assuming identical messages, of course).

Clever, no likely security impact.

Re:The Little MAC Attack by sarciszewski on Wednesday May 13, 2015 @01:00AM (#9536844)
Because of the way HN structures comments, it took me a second to realize this wasn't a reply to my comment. (Or maybe I need glasses.)