Fix: close file

This commit is contained in:
Dorian Zedler 2022-07-12 22:35:13 +02:00
parent 4a678b863b
commit 03016a1979
Signed by: dorian
GPG key ID: 989DE36109AFA354

View file

@ -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);