On 9/23/07, Oliver <[EMAIL PROTECTED]> wrote:
> Hi Folks,
>
> sorry if this is a dumb question but I didnt find anything on the net.
>
> I have the need to run decryption/encryption with RSA-keys from
> Javascript. I am familiar to the PKCS11 Certifiate/Siganture Stuff but
> unable to find a suitable docu if this is already in the API or where to
> start. If its not in the code I'd prefer writing a Firefox Plugin doing
> the work.
>
> Anybody here who can point me to the correct direction?

In PKCS #11, key encryption and decryption are called key
wrapping and unwrapping.  The NSS PK11 functions you need
are:
http://lxr.mozilla.org/security/ident?i=PK11_PubWrapSymKey

and:
http://lxr.mozilla.org/security/ident?i=PK11_PubUnwrapSymKey

I don't know if there is access to these functions from JavaScript.
You can ask Kai Engert and Dave Townsend.

Wan-Teh
_______________________________________________
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto

Reply via email to