Help with Issue
Hi - sorry to bother you....Here is the scenario:
We are using bouncy castle to encrypt a file (with a C# program) - all defaults are set.
Now - trying to decrypt at the command line:
I get several warnings / issues - and do not know what the root cause might be...
Bobs-MacBook-Pro-2:Downloads bobv$ gpg -v --output foo.zip --decrypt test20_encryption.metadata.zip-2.gpg
gpg: public key is B924B6FEC5C17D2E
gpg: WARNING: cipher algorithm CAST5 not found in recipient preferences
gpg: encrypted with 4096-bit RSA key, ID B924B6FEC5C17D2E, created 2017-11-29
"Bob Vecchione [email blocked]" gpg: CAST5 encrypted data
gpg: [don't know]: invalid packet (ctb=0e)
gpg: WARNING: message was not integrity protected
gpg: [don't know]: invalid packet (ctb=2e)
gpg --version
gpg (GnuPG/MacGPG2) 2.2.0
libgcrypt 1.8.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later https://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Home: /Users/bobv/.gnupg
Supported algorithms:
Pubkey: RSA, ELG, DSA, ECDH, ECDSA, EDDSA
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
CAMELLIA128, CAMELLIA192, CAMELLIA256 Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2
Any thoughts / help is much appreciated.
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
1 Posted by Bob Vecchione on 29 Nov, 2017 04:46 PM
More debugging & Info: I set the preferences to be CAST5, and Now this is what I get:
gpg -v --output foo.zip --decrypt test20_encryption.data.zip-2.gpg
gpg: public key is B924B6FEC5C17D2E
gpg: encrypted with 4096-bit RSA key, ID B924B6FEC5C17D2E, created 2017-11-29
"Bob Vecchione [email blocked]" gpg: CAST5 encrypted data
gpg: [don't know]: invalid packet (ctb=56)
gpg: WARNING: message was not integrity protected
gpg: [don't know]: indeterminate length for invalid packet type 1
Bobs-MacBook-Pro-2:Downloads bobv$
Support Staff 2 Posted by Luke Le on 30 Nov, 2017 12:22 PM
Hi Bob,
we have seen this issue in the past, specifically using bouncy castle.
Could you check if everything works, if you encrypt and decrypt using gnupg in terminal?
If it does, this question might be best directed to the developers of bouncy castle.
Steve closed this discussion on 28 Mar, 2018 01:46 PM.