Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

I suck at C

Name: Anonymous 2012-07-09 13:29

So I was trying to implement the SHA-1 hashing algorithm according to http://en.wikipedia.org/wiki/SHA-1 but it doesn't work. I get a hash but it's not what Wikipedia says it should be. What do?

http://pastebin.com/yqFVp9wG

Name: Anonymous 2012-07-09 16:23

7-san is right. Your message schedule is wrong. When the spec says << it means rotation, not shift. You have to move the bit sifted out into lsb position. Same with temp and c.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List