--- a/libidav/crypto.c Thu Dec 05 10:46:39 2019 +0100 +++ b/libidav/crypto.c Thu Dec 05 12:37:48 2019 +0100 @@ -1239,7 +1239,7 @@ // encrypt int flags = 0; - if(inlen % 16 != 0 || enc->end) { + if(inlen % 16 != 0) { enc->end = 1; } if(enc->end) {