diff --git a/Implementierung/src/md2_impls/md2_2.c b/Implementierung/src/md2_impls/md2_2.c index f8d54d8..f1ab4b6 100644 --- a/Implementierung/src/md2_impls/md2_2.c +++ b/Implementierung/src/md2_impls/md2_2.c @@ -74,6 +74,8 @@ void md2_hash_2(size_t len, const uint8_t buf[len], uint8_t out[16]) { bytes_left_to_read -= bytes_left_to_process; }; + fclose(file); + apply_padding(bytes_left_to_process % 16, data); process_block_checksum(data, checksum, &l); process_block_hash(data, messageDigestBuf);