signing a hash

David Shaw dshaw at jabberwocky.com
Mon May 24 20:53:49 CEST 2004


On Mon, May 24, 2004 at 01:47:16PM -0400, Atom 'Smasher' wrote:
> are there any hacks to create a signature using the hash of a message,
> instead of feeding the message into gpg and letting gpg calculate the
> hash?
> 
> in other words, if i want to sign the message: "test\n"
> can i just tell gpg to create a signature for a message that hashes to:
> 		4e1243bd22c66e76c2ba9eddc1f91394e57f9f83
> ???
> 
> would that be a difficult option to add? --sign-hash ??

Not terribly difficult.  See the sign.c file.

David



More information about the Gnupg-devel mailing list