Closed HelixTP closed 2 years ago
Hello, thank you for the feedback!
What portion of the code are you talking about? Please provide a link to the file, because at least here: https://github.com/skerkour/kerkour.com/blob/main/2021/rust_file_encryption/src/main.rs const BUFFER_LEN: usize = 500 + 16;
seems correct.
Hello, At line 126, in the main.r file.
But in the code of the blog the error is not there.
Non, in rust_file_encryption_with_password, need add 16 bytes to BUFFER_LEN
Thanks!
It's now fixed :)
Hello I found a small error or omission in the decryption function, you forgot to add 16 bytes to BUFFER_LEN (based or you other code to encrypt file
const BUFFER_LEN: usize = 500;
to
const BUFFER_LEN: usize = 500 + 16;