Fix: close file
This commit is contained in:
parent
4a678b863b
commit
03016a1979
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue