mirror of
https://codeberg.org/scip/gowipe.git
synced 2025-12-16 20:20:58 +01:00
fix block chaining
This commit is contained in:
@@ -155,7 +155,12 @@ func Encrypt(c *Conf, filename string) error {
|
|||||||
|
|
||||||
for i := 0; i < c.count; i++ {
|
for i := 0; i < c.count; i++ {
|
||||||
for {
|
for {
|
||||||
EncryptChunk(aead, outfile, size)
|
if size < chunkSize {
|
||||||
|
EncryptChunk(aead, outfile, size)
|
||||||
|
break
|
||||||
|
}
|
||||||
|
|
||||||
|
EncryptChunk(aead, outfile, chunkSize)
|
||||||
size = size - chunkSize
|
size = size - chunkSize
|
||||||
|
|
||||||
if size <= 0 {
|
if size <= 0 {
|
||||||
|
|||||||
Reference in New Issue
Block a user