aboutsummaryrefslogtreecommitdiffhomepage
path: root/pyecsca/codegen/hash/sha1.c
diff options
context:
space:
mode:
Diffstat (limited to 'pyecsca/codegen/hash/sha1.c')
-rw-r--r--pyecsca/codegen/hash/sha1.c4
1 files changed, 4 insertions, 0 deletions
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);
+}