OkcAgent icon indicating copy to clipboard operation
OkcAgent copied to clipboard

okc-gpg not writing full file

Open abtechbit opened this issue 1 year ago • 0 comments

Failure mode:

  • about 8mb size file is encrypted using okc-gpg. OkcAgent flashes shortly and encryption completes.
okc-gpg --encrypt --output file.enc -r [email protected] input.tgz
  • file is decrypted using okc-gpg. I get a prompt to use the Yubikey, key is being provided. Getting the usual output: "Decryption result: RESULT_ENCRYPTED".
okc-gpg --output out.tgz --decrypt file.enc

Resulting file out.tgz is not being fully written to the disk, size differs from original. If I execute the command several times, the output file shows different sizes - perhaps output stream is not being closed or flushed?

Interestingly if I try to decrypt the file using OpenKeyChain GUI the file decrypts fine.

Setup:

  • Samsung Galaxy S9, Android 9
  • Yubikey 5 NFC
  • Termux 0.118 installed via F-Droid
  • okc-agents version 0.1.2
  • OkcAgents 0.23
  • OpenKeychain 5.8.2

Thanks a bunch!

abtechbit avatar Mar 13 '23 23:03 abtechbit