gpg: AES256 encrypted data gpg: encrypted with 1 passphrase gpg: decryption failed: Bad session key
I am doing decryption by following command:
gpg --passphrase-file /path/to/key --output /path/to/output --decrypt /path/to/file
It again asks for the passphrase and results in above mentioned error.
When I fed this error to a search engine, I encountered many questions which mentioned the last line 'Bad session key' and most of their answers said it may be because encryption was done by GnuPG version 1 and decryption is done by GnuPG version 2. However, in this case both the version are 2, and also I didn't find this exact same error in any question.
I am doing this on Termux on android.