how to use libgcrypt library

Neil Spring nspring@cs.washington.edu
Wed, 23 Jul 2003 11:54:55 -0700


--Apple-Mail-5--925077701
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII; format=flowed

On Wednesday, Jul 23, 2003, at 11:03 US/Pacific, Moritz Schulte wrote:
> 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?

No particularly insightful reason;  first, the _pk_ functions are 
available today in 1.1.12, so I can build my code on my Debian and OS X 
systems without reconfiguring.  Second, they seemed better documented 
-- indeed, tests/pubkey.c was useful, though it did not include a 
sign/verify test.  Third, and least important, the manual's 
introduction of the _ac_ functions read like they were for wimps who 
couldn't be bothered to learn s-expressions, so my ego took over <grin>.

That said, if 1.1.13 were released yesterday and ac.c signed plaintext 
(check_run has an unused variable "s" that looks like it is for this 
purpose), I probably would have trusted that _ac_ was easier and made a 
different choice.

-neil


>
> 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/"))
>
> _______________________________________________
> Gcrypt-devel mailing list
> Gcrypt-devel@gnupg.org
> http://lists.gnupg.org/mailman/listinfo/gcrypt-devel

--Apple-Mail-5--925077701
content-type: application/pgp-signature; x-mac-type=70674453;
	name=PGP.sig
content-disposition: inline
content-transfer-encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (Darwin)

iD8DBQE/HtoFtvhXVvuQ3oQRAl8AAJ4uVt0MPGZAQUXMe+5ePVoBNkDZMACcCWFU
eb0DrCuUWQ2CvT8WnrrkoAk=
=4Fap
-----END PGP SIGNATURE-----

--Apple-Mail-5--925077701--