gpg --list-packets strange behaviour

Qed qed at tiscali.it
Fri May 12 20:22:01 CEST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

Using GnuPG 1.4.3.
If I examine with --list-packets a message encrypted with
$ gpg -e -r MyOwnKey
the result is:
> :pubkey enc packet: version 3, algo 16, keyid 3645ABF6365A1799
>         data: [2047 bits]
>         data: [2047 bits]
> :signature packet: algo 17, keyid 1FE0E1D039795DA7
>         version 4, created 1146492584, md5len 0, sigclass 19
>         digest algo 2, begin of digest 88 1d
>         hashed subpkt 2 len 4 (sig created 2006-05-01)
>         subpkt 16 len 8 (issuer key ID 1FE0E1D039795DA7)
>         data: [160 bits]
>         data: [158 bits]
> 
> You need a passphrase to unlock the secret key for
> user: "Q.E.D. (Quod Erat Demonstrandum) <qed at tiscali.it>"
> :signature packet: algo 17, keyid 1FE0E1D039795DA7
>         version 4, created 1146492584, md5len 0, sigclass 19
>         digest algo 2, begin of digest 88 1d
>         hashed subpkt 2 len 4 (sig created 2006-05-01)
>         subpkt 16 len 8 (issuer key ID 1FE0E1D039795DA7)
>         data: [160 bits]
>         data: [158 bits]
> 2048-bit ELG-E key, ID 365A1799, created 2004-12-04 (main key ID 58D14EB3)
> 
> Enter passphrase:                     

but if I run gpg --homedir WrongHomeDir --list-packets
> :pubkey enc packet: version 3, algo 16, keyid 3645ABF6365A1799
>         data: [2047 bits]
>         data: [2047 bits]
> :encrypted data packet:
>         length: 110
>         mdc_method: 2
> gpg: encrypted with ELG-E key, ID 365A1799
> gpg: decryption failed: secret key not available

So I imported the pubkey in WrongHomeDir, now list-packets is:
> :pubkey enc packet: version 3, algo 16, keyid 3645ABF6365A1799
>         data: [2043 bits]
>         data: [2044 bits]
> :encrypted data packet:
>         length: 110
>         mdc_method: 2
> :signature packet: algo 17, keyid 1FE0E1D039795DA7
>         version 4, created 1146492584, md5len 0, sigclass 19
>         digest algo 2, begin of digest 88 1d
>         hashed subpkt 2 len 4 (sig created 2006-05-01)
>         subpkt 16 len 8 (issuer key ID 1FE0E1D039795DA7)
>         data: [160 bits]
>         data: [158 bits]
> gpg: encrypted with 2048-bit ELG-E key, ID 365A1799, created 2004-12-04
>       "Q.E.D. (Quod Erat Demonstrandum) <qed at tiscali.it>"
> gpg: decryption failed: secret key not available

After the removal of pubkey from WrongHomeDir keyring:
> :pubkey enc packet: version 3, algo 16, keyid 3645ABF6365A1799
>         data: [2043 bits]
>         data: [2044 bits]
> :encrypted data packet:
>         length: 110
>         mdc_method: 2
> gpg: encrypted with ELG-E key, ID 365A1799
> gpg: decryption failed: secret key not available


I simply don't understand. Why list-packets reports these spurios(?)
certification signature packets(they must be cross certifications since
39795DA7 is a signing subkey) as part of the message when I have the
corresponding pubkey in keyring?
Is this a bug or I am missing something?
- --

  Q.E.D.

ICQ UIN: 301825501
OpenPGP key ID: 0x58D14EB3
Key fingerprint: 00B9 3E17 630F F2A7 FF96  DA6B AEE0 EC27 58D1 4EB3
Check fingerprints before trusting a key!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)

iD8DBQFEZNJJH+Dh0Dl5XacRA+5FAJ0Ro9/2pl4miYucVxF9i/iwZNeF+QCfQYYS
vHcEm2iEQVc0wiGCBKbU/Zc=
=Ok+f
-----END PGP SIGNATURE-----




More information about the Gnupg-users mailing list