rnpgp / rnp

RNP: high performance C++ OpenPGP library used by Mozilla Thunderbird
https://www.rnpgp.org
Other
201 stars 55 forks source link

Possible rare error in tests: gpg: cipher_encrypt: key not set #984

Closed ni4 closed 3 years ago

ni4 commented 4 years ago

Description

It happens in cli_tests during Misc.test_encryption_s2k run. Part of the log follows:

/home/rnpuser/local-installs/gpg-install/bin/gpg --homedir /tmp/rnpctmpvscKoh/.gpg -c --s2k-cipher-algo BLOWFISH --s2k-digest-algo RIPEMD160 --s2k-mode 1 --batch --passphrase password --output /tmp/rnpctmpvscKoh/cleartext.gpg /tmp/rnpctmpvscKoh/cleartext.txt
gpg: cipher_encrypt: key not set
gpg: cipher_encrypt: key not set
gpg: cipher_encrypt: key not set
gpg: cipher_encrypt: key not set
gpg: cipher_encrypt: key not set
gpg: cipher_encrypt: key not set
gpg: cipher_encrypt: key not set
gpg: cipher_encrypt: key not set
/home/rnpuser/local-builds/rnp-build/src/rnp/rnp --homedir /tmp/rnpctmpvscKoh/.rnp --pass-fd 5 --decrypt /tmp/rnpctmpvscKoh/cleartext.gpg --output /tmp/rnpctmpvscKoh/cleartext.rnp
[encrypted_decrypt_cfb_header() /tmp/cirrus-ci-build/src/librepgp/stream-parse.cpp:1220] checksum check failed
[init_encrypted_src() /tmp/cirrus-ci-build/src/librepgp/stream-parse.cpp:1966] failed to obtain decrypting key or password
rnp decryption failed
[encrypted_decrypt_cfb_header() /tmp/cirrus-ci-build/src/librepgp/stream-parse.cpp:1220] checksum check failed
[init_encrypted_src() /tmp/cirrus-ci-build/src/librepgp/stream-parse.cpp:1966] failed to obtain decrypting key or password
rnp decryption failed
[encrypted_decrypt_cfb_header() /tmp/cirrus-ci-build/src/librepgp/stream-parse.cpp:1220] checksum check failed
[init_encrypted_src() /tmp/cirrus-ci-build/src/librepgp/stream-parse.cpp:1966] failed to obtain decrypting key or password
ERROR
ni4 commented 3 years ago

Closing this in favour of more detailed and newer duplicate #1379