florent ainardi wrote:
> does anyone can help me starting coding in c the nss library ?
> i had to encrypt and decrypt data
> can you tell me the list of function i had to call to do that
> and tell me the order i suppose that there is a initialization of
> context, generate key, set mode, set algo, call function then
> save crypted data
>
> and the name of the libs i had to include in my program , the
> language is C
Copy/paste the program in mozilla/security/nss/cmd/digest
Use the code in digest.c as a guide. The public crypto API is
in
mozilla/security/nss/lib/pk11wrap/pk11pub.h
As tempting as it may be, avoid using anything directly from
freebl or pkcs11*.h, if you want to stay on the "supported" path.
Cheers,
Brian
--
dev-tech-crypto mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-crypto