mirror of
https://github.com/timvisee/ffsend.git
synced 2025-10-05 10:19:23 +02:00
Fix data decrypt error, and seldom nonce decode problem
This commit is contained in:
parent
9eb9462c40
commit
4957c98f6d
3 changed files with 3 additions and 3 deletions
|
@ -502,7 +502,7 @@ impl Write for EncryptedFileWriter {
|
|||
}
|
||||
|
||||
// Compute how many bytes were written
|
||||
Ok(file_bytes - file_buf.len() + min(tag_buf.len(), tag_bytes))
|
||||
Ok(file_buf.len() + tag_buf.len())
|
||||
}
|
||||
|
||||
fn flush(&mut self) -> Result<(), io::Error> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue