Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

okc-gpg not writing full file #130

Open
abtechbit opened this issue Mar 13, 2023 · 0 comments
Open

okc-gpg not writing full file #130

abtechbit opened this issue Mar 13, 2023 · 0 comments

Comments

@abtechbit
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant