Public Key encryption

Rüdiger Sonderfeld cplusplushelp@gmx.net
Sun, 16 Jun 2002 16:48:19 +0200


Am Donnerstag, 13. Juni 2002 16:19 schrieben Sie:
>     if( algo == GCRY_PK_ELG || algo == GCRY_PK_ELG_E ) {
>         rc = gcry_sexp_build ( &s_pkey, NULL,
>                               "(public-key(elg(p%m)(g%m)(y%m)))",
>                                   pkey[0], pkey[1], pkey[2] );
>     }

But what means this? what ist pkey?

I'm using RSA what so I have to change?

rc = gcry_sexp_build ( &s_pkey, NULL,
                               "(public-key(rsa(p%m)(g%m)(y%m)))",
                                   pkey[0], pkey[1], pkey[2] );

??