How to use nist_generate_key
Yann Garcia
yann.garcia at fscom.fr
Wed Nov 14 18:57:44 CET 2018
Hello Werner,
Thank you for your answer.
Best regards,
Yann Garcia
Senior Software Engineer
Microsoft MCAD.net Certified
**************************************
FSCOM SARL
Le Montespan B2
6,
<https://maps.google.com/?q=6,%C2%A0+Avenue+des+Alpes&entry=gmail&source=g>
Avenue des Alpes
<https://maps.google.com/?q=6,%C2%A0+Avenue+des+Alpes&entry=gmail&source=g>
F-06600 Antibes, FRANCE
************************************************
Tel: +33 (0)4 92 94 49 08
Mobile: +33 (0)6 68 94 57 76
Email: *yann.garcia at fscom.fr <yann.garcia at fscom.fr>*
Skype: yann.garcia
Google+: garcia.yann at gmail.com
On Wed, 14 Nov 2018 at 18:50, Werner Koch <wk at gnupg.org> wrote:
> On Tue, 13 Nov 2018 09:16, garcia.yann at gmail.com said:
>
> > I'm looking for sample indicating of to use the function
> > nist_generate_key() using ECDH?
>
> That is an internal function of libgcrypt and you can't use it from your
> application. You need to use Libgcrypt's API to do that. Check the
> manual for the gcry_pk_genkey function. To create an ECC keypair for
> the NIST P-521 curve, you need to use these parameters
>
> "(genkey(ecc(curve nistp521)(flags nocomp)))"
>
> convert them to an s-expression object and pass it to gcry_pk_genkey.
> There are several examples for it in libgcrypt's soruce code (under
> tests/) and you can also look into GnuPG (agent/genkey.c:agent_genkey is
> the core which is called from g10/keygen.c:gen_ecc).
>
>
> Salam-Shalom,
>
> Werner
>
> --
> Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gcrypt-devel/attachments/20181114/5ea61a2b/attachment.html>
More information about the Gcrypt-devel
mailing list