How to decrypt a message while preserving the signature?
Tony Lane
codeguro at gmail.com
Mon Nov 4 06:15:58 CET 2019
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
On 11/3/19 4:15 AM, Peter Lebbing wrote:
> Werner recently mentioned an undocumented command for this.[1]
>
> On 27/08/2019 11:30, Werner Koch via Gnupg-users wrote:
>> You can extra the signature from the encrypted+signed data:
>>
>> gpg --unwrap -d -o SIG <ENC+SIG
>>
>> and then run
>>
>> gpgv -o SIGNEDFILE SIG && echo verified!
>>
The '--unwrap' option alone seems to work for me. Thanks for sharing this.
> --unwrap is not documented and has the minor problem that it also keeps the
compression layer
Why is keeping the compression layer a problem? Also what other undocumented options are out there?
Can they be documented somewhere?
-----BEGIN PGP SIGNATURE-----
iLgEARMKAB0WIQQWZv6JZKxO310TWtXo8fj9gx4T0wUCXb+0DgAKCRDo8fj9gx4T
0ymVAgkBa9tE9xyhk1sk3Tx+//yoawVxZmAQB3vy1u0QIShHqOPirYHwyQODH/Xw
NLYDpBZK9NthXLN5oq/FbmmBzqXm7H0CB1ditfCuvGdtslwzljGqzs6lbYCSp6N+
9pNGwHPPT5nduCKZSERfvgQRq7nJW/b+2bLU4CwvA28GiLr1LCj0cVqw
=B1yd
-----END PGP SIGNATURE-----
More information about the Gnupg-users
mailing list