how to use libgcrypt library

Moritz Schulte mo@g10code.com
Wed, 23 Jul 2003 20:03:43 +0200


Neil Spring <nspring@cs.washington.edu> writes:

> There's also a newer, nicer interface in CVS; I chose to avoid it
> and use the existing stuff.

I'm just curious - why?

While having a quick look at your example code, I noticed that you use
an `int' variable for error values, although `gcry_error_t' is a
better choice.

Btw, in CVS there's also tests/pubkey.c, which shows how to use
gcry_pk_{encrypt,decrypt}.

		moritz
-- 
((gpg-key-id . "6F984199")
 (email      . "moritz@duesseldorf.ccc.de")
 (webpage    . "http://duesseldorf.ccc.de/~moritz/"))