learning which symmetric cipher via --status-fd when --decrypting
Werner Koch
wk at gnupg.org
Thu Feb 3 21:01:59 CET 2011
On Thu, 3 Feb 2011 08:28, dkg at fifthhorseman.net said:
> is there a way for a program that parses --status-fd to get this
Not yet.
> information, or does the program need to parse --logger-fd as well to
better don't do that; the messages may change. What about this new
feature:
DECRYPTION_INFO <mdc_method> <sym_algo>
Print information about the symmetric encryption algorithm and
the MDC method. This will be emitted even if the decryption
fails.
$ ~/b/gnupg/g10/gpg2 --status-fd 2 <enc+sig.asc
[GNUPG:] ENC_TO 4F9915352D91F921 18 0
gpg: encrypted with 256-bit ECDH key, ID 2D91F921, created 2011-02-03
"Joe Random Hacker (test key with passphrase "x") <joe at setq.org>"
[GNUPG:] BEGIN_DECRYPTION
[GNUPG:] DECRYPTION_INFO 2 7
[GNUPG:] PLAINTEXT 62 1296751201
[GNUPG:] PLAINTEXT_LENGTH 139
The difference between the right word and the almost right word is the
difference between lightning and the lightning bug.
-- Mark Twain
gpg: Signature made Thu Feb 3 17:40:01 2011 CET using ECDSA key ID 6AE8EAC3
[GNUPG:] SIG_ID Fh+ZrREGtHN97DZR1dRxaRCohdo 2011-02-03 1296751201
[GNUPG:] GOODSIG 9A7AE1B86AE8EAC3 Joe Random Hacker (test key with...
gpg: Good signature from "Joe Random Hacker (test key with passphrase...
[GNUPG:] VALIDSIG 1C5AD3334C35780012F7D6979A7AE1B86AE8EAC3 2011-02-03 ...
[GNUPG:] TRUST_FULLY
[GNUPG:] DECRYPTION_OKAY
[GNUPG:] GOODMDC
[GNUPG:] END_DECRYPTION
Commit 5667e33. There is no support in GPGME yet, but I added some
framework to support it.
Shalom-Salam,
Werner
--
Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz.
More information about the Gnupg-users
mailing list