Skip to content

Commit

Permalink
Add note about leaking filenames (#4).
Browse files Browse the repository at this point in the history
  • Loading branch information
skeeto committed Mar 16, 2017
1 parent 7b35ec4 commit 27e5386
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,16 @@ verify its symmetric key before beginning decryption. Otherwise a
wrong key would only be detected by the MAC after decryption has
completed.

> Valgrind says Enchive leaks memory.
Enchive only uses dynamic allocation for input/output filename strings
— avoiding any path length limitations — and for the huge key
derivation buffer. The lifetime of these strings is the lifetime of
the entire program, so it's not worth the trouble to free them at the
last second. In other situations it might still be useful to clean up
so that Valgrind and friends can do their job. Since Enchive doesn't
do any complex memory management, there's no need to check for leaks.

## Encryption/decryption algorithm

The process for encrypting a file:
Expand Down

0 comments on commit 27e5386

Please sign in to comment.