LWN.net Logo

encrypted, or hashed?

encrypted, or hashed?

Posted Apr 14, 2008 19:38 UTC (Mon) by astrophoenix (guest, #13528)
Parent article: Improving syncookies

forgive me if I sound ignorant, but this sentence doesn't make sense to 
me:

"This encoded information is cryptographically hashed with a secret key 
to form the sequence number of the SYN-ACK and sent to the client."

Shouldn't it read something like "encrypted with a secret key", rather 
than "cryptographically hashed with a secret key"? I was thinking if it 
was hashed, the kernel wouldn't be able to decode it when the ack comes 
in.

Reply to this comment


(Log in to post comments)

encrypted, or hashed?

Posted Jul 14, 2008 7:39 UTC (Mon) by hso (guest, #24163) [Link]

> Shouldn't it read something like "encrypted with a secret key", rather 
> than "cryptographically hashed with a secret key"? I was thinking if it 
> was hashed, the kernel wouldn't be able to decode it when the ack comes 
> in.

No. It's using a hash algorithm with a key. Saying "encrypted with a secret key" would be
incorrect. Hash algorithms definitely != cipher algorithms.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds