Re:Typing The Letters A-E-S Into Your Code? You’re Doing It ...
by tptacek on Wednesday June 03, 2009 @10:04AM
(#639764)
No. Like I said, the candidate aced the interview. Holy, he knew what CBC was! Amazing!
Often you don't need confidentiality, and in those cases, HMAC can be a safer bet than a secure encrypted message format. You want to use HMAC though, not a simple hash with a secret key in it.
I assume my hash comparison function is constant time (eg. XOR(a[x],b[x])==0), rather than comparing of char-by-char.