Hi!

> I'm implementing key generation function for OpenPGP card.
> The card requires to calculate the finger print for the key after
> generation. I referenced the GnuPG source and saw that it use libgcrypt
> to do.

OpenSC includes some other optional libraries which can be disabled. If
you want to do crypto only then I recommend to use OpenSSL, because
there are already other code fragments which depend on OpenSSL. But I
guess you don't get around including libgpg (which includes libgcrypt)
at some point.

> Am I allow to include libgcrypt to OpenSC? If yes, how should I do?

Have a look at the following files to get a feel how OpenSSL is
included and do just the same for libgcrypt:
- configure.ac
- src/libopensc/pkcs15.c
- src/libopensc/Makefile.am

-- 
Frank Morgner

Virtual Smart Card Architecture http://vsmartcard.sourceforge.net
OpenPACE                        http://openpace.sourceforge.net
IFD Handler for libnfc Devices  http://sourceforge.net/projects/ifdnfc

Attachment: pgp4Fff0pXK0j.pgp
Description: PGP signature

_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to