Hello,
While testing optimizations for OCB performance, I noticed that decrypting some OCB encrypted files fail with master. I create encrypted file enc_065515.gpg with command (input file being 65515 byte long):
gpg --batch --symmetric --passphrase=bug --output=enc_065515.gpg --rfc4880bis --force-aead --cipher-algo AES128 --compress-algo none plain_065515
Decrypting file fails:
gpg --batch --decrypt --passphrase=bug enc_065515.gpg gpg: AES.OCB encrypted session key gpg: encrypted with 1 passphrase gpg: gcry_cipher_checktag failed: Checksum error gpg: problem reading source (16 bytes remaining) gpg: handle plaintext failed: System error w/o errno
Same problem can be seen with 131049 bytes long file. 65514, 65516, 131048 and 131050 bytes sized files do not have this issue.