Pete Collins wrote:
I have an xpcom component i'm implementing and I'd like to use this rijndael decrupt func.
http://lxr.mozilla.org/seamonkey/source/security/nss/lib/freebl/rijndael.c#917
This code is part of softoken, a PKCS#11 module. You cannot access the rijndael cipher functions directly, as they aren't exported from the shared library .
You can access rijndael as a PKCS#11 mechanism, using the NSS PK11_* functions. Look at PK11_CipherOp . You'll need to create a PK11Context object before you can call that function. Look at the pk11func.h header for various ways to do that. Use one of the CKM_AES_* mechanisms and CKA_DECRYPT operation.
