Created
October 2, 2014 19:22
-
-
Save dennisdegryse/3e05de1dc78e7180c49d to your computer and use it in GitHub Desktop.
This file contains 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
uint8 input[] = { 'd' }; | |
uint8 digest[20]; | |
sha1_context *ctx = malloc(sizeof(struct sha1_context)); | |
sha1_starts (ctx); | |
sha1_update (ctx, input, 2); | |
sha1_finish (ctx, digest); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment