Created
March 15, 2012 03:33
-
-
Save mherkender/2041714 to your computer and use it in GitHub Desktop.
SHA-1 pseudocode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add some extra data to the end of the input | |
set the initial sha-1 values | |
for each 64-byte chunk do | |
extend the chunk to 320 bytes of data | |
perform first set of operations on chunk[i] (x20) | |
perform second set of operations on chunk[i] (x20) | |
perform third set of operations on chunk[i] (x20) | |
perform fourth set of operations on chunk[i] (x20) | |
end | |
return sha-1 values as a hash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment