Redharing wrote: > Hi All, > > I've got an SCA6000 and a Sun T2000 server. I'm a new in pkcs11 and sun user. > Now I have problem for help. > How can I use sca6000 for encrypt and decrypt with triple des and use local > key in sca6000. > Plase someone provide example code or resource for solve this problem. >
The "encrypt" and "decrypt" commands can do this for you. You specify a key with -K <label>, which is the label of the key in the PKCS#11 module. You also need to specify -T <token-spec> which is the token name. I don't know what the sca6000's token name is, but hopefully you have some documentation so you can figure it out. If you want to write your own code, look at the source code for decrypt, which is in OpenSolaris (and hence available vai OpenGrok.) Look under usr/src/cmd-crypto/ in the source code for examples. -- Garrett > Thanks > Redharing > > > This message posted from opensolaris.org > _______________________________________________ > opensolaris-code mailing list > opensolaris-code@opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/opensolaris-code > _______________________________________________ opensolaris-code mailing list opensolaris-code@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/opensolaris-code