Re: Secure hash algorithm vs block cipher based authentication




Rein Anders Apeland wrote:
The reason for asking is that I want to benefit from an existing 3DES
implementation in my application, and use it for authentication purposes
(with different keys, of course) instead of using expensive code space
for some SHA implementation also.

To not duplicate what they said ...

SHA-256 is fairly easy to code compactly (especially if you don't need
a lot of speed) and will get you a lot more security when used in HMAC
mode versus 3DES in CMAC mode.

Tom

.