Public Key encryption

Rüdiger Sonderfeld cplusplushelp@gmx.net
Thu, 13 Jun 2002 15:52:12 +0200


hi,
okay I don't understand the use of the gcrypt public key functions! I want to 
write a wrapper function like this

typedef GCRY_SEXP pkkey;

int pk_encrypt(pkkey pkey, unsigned char *data, unsigned char *to)
{
  /*...*/
}

but I don't know! The gcry_pk_encrypt function don't accept unsigned char* 
(only GCRY_SEXP).

What to do?