Re: list packets output & other misc

2014-06-06 Thread shm...@riseup.net
hey pete,

Pete Stephenson:
> On 6/5/2014 10:44 AM, Werner Koch wrote:
>> On Wed,  4 Jun 2014 23:15, shm...@riseup.net said:
>>
>>> how can i mandatorily specify using other subkeys for the same primary
>>> key for 's' or 'e' either on command line or in an email client for
>>> example ?
>>
>>   fortune | gpg -ea -r '12345678!'
>>
>> assuming 12345678 is the subkeys' keyid.  Same for -u.
> 
> To clarify, it's the exclamation point ("!") that forces GPG to use a
> specific key. Normally GPG will pick what it thinks is the appropriate
> key, but the exclamation point will override that automatic choice and
> use only the key ID specified by the user.

cheers

couldn't resist ;-)

> 
> I'm not aware of any email clients that allow such an override -- it's
> typically only used in the command line.
> 
> 
> has some more details.
> 
>>> is there a reference for the numerical values of version, hash, cipher,
>>> algo, sk2, etc ?
>>
>> --list-packets is a debugging aid and thus you need to look at the
>> source or doc/DETAILS for some of these values.  However, most of these
>> numbers are specified in RFC-4880.
> 
> Specifically, that information is available at
> , in sections 9.1 through
> 9.4, inclusive.
> 
> Cheers!
> -Pete
> 
> 

___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: list packets output & other misc

2014-06-05 Thread Pete Stephenson
On 6/5/2014 10:44 AM, Werner Koch wrote:
> On Wed,  4 Jun 2014 23:15, shm...@riseup.net said:
> 
>> how can i mandatorily specify using other subkeys for the same primary
>> key for 's' or 'e' either on command line or in an email client for
>> example ?
> 
>   fortune | gpg -ea -r '12345678!'
> 
> assuming 12345678 is the subkeys' keyid.  Same for -u.

To clarify, it's the exclamation point ("!") that forces GPG to use a
specific key. Normally GPG will pick what it thinks is the appropriate
key, but the exclamation point will override that automatic choice and
use only the key ID specified by the user.

I'm not aware of any email clients that allow such an override -- it's
typically only used in the command line.


has some more details.

>> is there a reference for the numerical values of version, hash, cipher,
>> algo, sk2, etc ?
> 
> --list-packets is a debugging aid and thus you need to look at the
> source or doc/DETAILS for some of these values.  However, most of these
> numbers are specified in RFC-4880.

Specifically, that information is available at
, in sections 9.1 through
9.4, inclusive.

Cheers!
-Pete


___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: list packets output & other misc

2014-06-05 Thread Werner Koch
On Wed,  4 Jun 2014 23:15, shm...@riseup.net said:

> how can i mandatorily specify using other subkeys for the same primary
> key for 's' or 'e' either on command line or in an email client for
> example ?

  fortune | gpg -ea -r '12345678!'

assuming 12345678 is the subkeys' keyid.  Same for -u.

> how do i determine which key was used for encrypt ?
 
  gpg -v

Combined example:

  $ fortune | gpg --no-options --always-trust -ea -r 4ECFEF6F\! | gpg -v
  gpg: armor header: Version: GnuPG v1.4.13 (GNU/Linux)
  gpg: public key is 4ECFEF6F
  gpg: using subkey 4ECFEF6F instead of primary key CD8687F6
  
  You need a passphrase to unlock the secret key for
  user: "Heinrich Heine "
  gpg: using subkey 4ECFEF6F instead of primary key CD8687F6
  1024-bit ELG-E key, ID 4ECFEF6F, created 2006-01-17 (main key ID CD8687F6)
  
  gpg: gpg-agent is not available in this session
  gpg: encrypted with 1024-bit ELG-E key, ID 4ECFEF6F, created 2006-01-17
"Heinrich Heine "
  gpg: AES256 encrypted data
  gpg: original file name=''
  You never know how many friends you have until you rent a house on the beach.

> is there a reference for the numerical values of version, hash, cipher,
> algo, sk2, etc ?

--list-packets is a debugging aid and thus you need to look at the
source or doc/DETAILS for some of these values.  However, most of these
numbers are specified in RFC-4880.


Shalom-Salam,

   Werner

-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.


___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


list packets output & other misc

2014-06-04 Thread shm...@riseup.net
in a test key i have 4 subkeys; 2 for sign and 2 for encrypt

gnupg automatically chooses the most recently created 's' and 'e'
subkeys to sign and encrypt a file

how can i mandatorily specify using other subkeys for the same primary
key for 's' or 'e' either on command line or in an email client for
example ?

when i list packets, it tells me which key was used for 's' (in long
format) but for 'e' (in short format) it says gpg: encrypted with ELG
key, ID 0x

how do i determine which key was used for encrypt ?
do i assume it used the most recently created 'e' subkey ?

is there a reference for the numerical values of version, hash, cipher,
algo, sk2, etc ?




___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users