From 32a4874abfbaff8cb4ee2d31fe71bcc3499e52dc Mon Sep 17 00:00:00 2001 From: J08nY Date: Wed, 27 Nov 2019 20:34:58 +0100 Subject: Reorganize files, implement proper main. --- pyecsca/codegen/hash/sha1.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pyecsca/codegen/hash/sha1.c') diff --git a/pyecsca/codegen/hash/sha1.c b/pyecsca/codegen/hash/sha1.c index cf6ca3e..213ed11 100644 --- a/pyecsca/codegen/hash/sha1.c +++ b/pyecsca/codegen/hash/sha1.c @@ -187,3 +187,7 @@ void hash_final(void *ctx, int size, const uint8_t *msg, uint8_t *digest) { sha1_lastBlock(ctx, msg, length); sha1_ctx2hash(digest, ctx); } + +void hash_free_ctx(void *ctx) { + free(ctx); +} -- cgit v1.3.1