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/sha2.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pyecsca/codegen/hash/sha2.c') diff --git a/pyecsca/codegen/hash/sha2.c b/pyecsca/codegen/hash/sha2.c index d2ddf6f..2b7f11d 100644 --- a/pyecsca/codegen/hash/sha2.c +++ b/pyecsca/codegen/hash/sha2.c @@ -334,4 +334,8 @@ void hash_final(void* ctx, int size, const uint8_t* msg, uint8_t* digest) { } sha2_lastBlock(ctx, msg, length_b); sha2_ctx2hash(digest, ctx); +} + +void hash_free_ctx(void *ctx) { + free(ctx); } \ No newline at end of file -- cgit v1.3.1