[osol-code] Problem on CKM_AES_KEY_GEN in pkcs11_softtoken.so
Darren J Moffat
darrenm at opensolaris.org
Mon Jan 21 01:55:08 PST 2008
alick wrote:
> Thanks a lot!
>
> Yes. I want to generate a 128-bit AES key which is a random number. But I can't successfully compile the code.
> If possible, could you please give an example which can be compiled successfully?
It wasn't supposed to be full compilable code.
See:
Solaris Express Software Developer Collection
>> Solaris Security for Developers Guide
>> 9. Writing User–Level Cryptographic Applications and Providers
http://docs.sun.com/app/docs/doc/819-2145/pkcs-2?a=view
While it doesn't contain the exact key generation example you are
looking for it does provide the necessary background on how to use PKCS#11.
--
Darren J Moffat
More information about the crypto-discuss
mailing list