gpg-agent: What is a keygrip?

Werner Koch wk at
Tue Jul 30 23:57:48 CEST 2013

On Tue, 30 Jul 2013 21:54, mailinglisten at said:

> Is the keygrip computed over the passphrase-protected key material (which the 
> application knows)? I.e. does the keygrip change if the passphrase changes?

The keygrip is computed from the public elements of the key.  Thus it
is the same for the public and the secret key.  For details see the
function in Libgcrypt.

> It seems to me that you can only check for keys which you know. Is it possible 
> to get a list of the known keygrips from gpg-agent? I create keys in an 

  gpg-connect-agent 'keyinfo --list' /bye



Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.

More information about the Gnupg-users mailing list