Dominik schrieb:
> I am developing a JavaScript-based Firefox add-on which could make use
> of cryptography primitives like encrypting/decrypting short strings
> with RSA/AES.
>
> A pure JS implementation of those algorithms is way to slow. I have
> come across the NSS library which seems to be part of the default
> Firefox distributions. Is it possible to access its API (e.g. via
> XPCOM) from my JavaScript extension code?
>
From JS you can only access the subset of NSS that has been wrapped in
XPCOM interfaces. Most of the IDL files are below mozilla/security/manager
I fear there is nothing that can be used directly for encryption.
However, you might want to ping the Mozilla labs people who work on the
Weave project, I think they have faced similar challenges. Maybe you can
look at their code to get ideas. Or ask on irc.mozilla.org channel #labs
Kai
_______________________________________________
dev-tech-crypto mailing list
dev-tech-crypto@...
https://lists.mozilla.org/listinfo/dev-tech-crypto