[PATCH libgcrypt] * gcrypt.h.in: Set appropriate algo id for ECDSA and ECDH

Kristian Fiskerstrand kristian.fiskerstrand at sumptuouscapital.com
Mon Nov 19 19:26:45 CET 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 11/19/2012 07:06 PM, Werner Koch wrote:
> On Mon, 19 Nov 2012 09:40,
> kristian.fiskerstrand at sumptuouscapital.com said:
> 
>> Thanks for the clarification. I was under the impression that
>> this happened with RFC6637, but I reckon that this has not been
>> formally
> 
> You patch was against Libgcrypt and not against GnuPG.  Libgcrypt
> does not know about OpenPGP or any other protocol.  It is
> historical coincidence that some algorithm numbers in Libgcrypt
> match the OpenPGP specs.

Fair enough, but GnuPG is getting this from libgcrypt in keyserver.c
on line 509 which use

   const char *str = gcry_pk_algo_name (keyrec->type);

Currently it return "?" for ECDSA keys for a --search request as shown
in #Snippet 1# below. The patch solved this for me as shown in
#Snippet 2#, but feel free to direct me to a more appropriate solution.


## Snippet 1 ##
(1)	Kristian Fiskerstrand <kf at sumptuouscapital.com>
	Kristian Fiskerstrand <kristian.fiskerstrand at sumptuouscapital.com>
	  521 bit ? key 542CA00B, created: 2012-10-07

## Snippet 2 ##

(1)	Kristian Fiskerstrand <kf at sumptuouscapital.com>
	Kristian Fiskerstrand <kristian.fiskerstrand at sumptuouscapital.com>
	  521 bit ECDSA key 542CA00B, created: 2012-10-07

- -- 
- ----------------------------
Kristian Fiskerstrand
http://www.sumptuouscapital.com
Twitter: @krifisk
- ----------------------------
Divide et impera
Divide and govern
- ----------------------------
This email was digitally signed using the OpenPGP
standard. If you want to read more about this
The book: Sending Emails - The Safe Way: An
introduction to OpenPGP security is
available in both Amazon Kindle and Paperback
format at
http://www.amazon.com/dp/B006RSG1S4/
- ----------------------------
Public PGP key 0xE3EDFAE3 at http://www.sumptuouscapital.com/pgp/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.1.0-beta95 (GNU/Linux)
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iQIcBAEBCAAGBQJQqnngAAoJEAt/i2Dj7frj/ZYP/3nlCTG/wkpjh7+HkTnnM0K6
3ATXifopQ39NV1D+mGSNzUPUvPw1D0PR9YwKO2JjBOO9FFm0Zo6LenS390e0RtGs
31jKADNmBGXldDqvQBVRMmESQ8o8grsnuIo2vEkpli+07y4d6tzV2wgjm5XC4a+E
7a1sggb+Cc/qbrj2Hbapt4Cm80sckjDrjLyM/O3bCVUxAikBf7YwRo3BvWYt1dSs
drRbrWqnM/IZnfZdikYgh924m8dLylSvOnt4SEhdRKKJs/QWO/W6iGNwJfo5VAm5
E1yfH1f55TdC7qNfShvf4340DMgDFkWQxNG4mvcbZm/FU6TUPID50ImITC+CpAYe
VIm9B1h8ChN2LXklTnPF5Qo9yZJBMf9NHOSsYMbdeLPTeqNd5JFn8qNwYjdzR7Dm
h6wuKloZXnW1JMEI9lMpSZVObMag7pk4wfFW36LdUvji3yN3uPPvQ+ej9TwSnMDN
X7hNS+byroX1bP9hTV4zhSiqJm2deNlAI2aAz+nYWKu1sY8mqUF8e2itIIpM2WKX
a6iz1wS3Mg2b1s8HXxy1FsRBJi5oHDvfizGso8gthjB39Ydar3tMKsEnHN6JU238
pwDYGVgfd6LnvTnWmsAd1+SQ8GOa2aNM3TGqJDhDHNu6B9FqRSVRahLzMZJGtOdD
1NmpK9mPZadUW/1HQMGR
=7Dlx
-----END PGP SIGNATURE-----



More information about the Gnupg-devel mailing list