How to use it

Ralf Schneider ralf@tapfere-schneiderleins.de
Wed, 16 Jul 2003 08:58:48 +0200


=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

after managing the starting problems (thanks to Moritz) I have some questio=
ns=20
on how I can use libgcrypt in my application. I looked into the ac test=20
program (tests/ac.c) because I want to use the public key algorithms with t=
he=20
ac interface.

1. How can I influence the key generation with the last argument of=20
gcry_ac_key_pair_generate? I did not find any hint in the docs.
2. How can I convert the generated keys from gcry_ac_key_t to anything else=
=20
that can be stored in a database? Which data type should I use for that (SA=
P=20
DB)?
3. If I understood the example in ac.c correctly, an unsigned int value is=
=20
encrypted. How can I pass a string to gcry_ac_data_encrypt for encryting it?

Thanks for helping a crypto newbie,
Ralf.
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE/FPep7YyyfykA0YkRAigcAJ4t8+H3UgEQ/wARhqdOe1Atja2A8ACcC9xp
e3/ZJ1PeXEPsXKvUHGX6zlU=3D
=3DgI6o
=2D----END PGP SIGNATURE-----