Skip to content

Instantly share code, notes, and snippets.

@dennisdegryse
Created October 2, 2014 19:22
Show Gist options
  • Save dennisdegryse/3e05de1dc78e7180c49d to your computer and use it in GitHub Desktop.
Save dennisdegryse/3e05de1dc78e7180c49d to your computer and use it in GitHub Desktop.
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