Hi Filipe, sorry for delay. You may want to use nsICMS* interfaces and
around (implemented as e.g. "@mozilla.org/nsCMSMessage;1",
"@mozilla.org/nsCMSEncoder;1", etc) to create Cryptographic Message
Syntax blobs. It is not a simple way to encrypt binary data, since you
also have to manage certificates and keys in the NSS database
(nsIX509CertDB*.idl), but produces a standard formatted messages that
are proved to be cryptographically safe.
Hope this helps, feel free to ask any additional questions.
-hb-
On 11/16/2011 5:38 PM, Filipe wrote:
Dear all,
I want to use some encryption standards on the add-on. However, a javascript
implementation does not present the best efficiency. I was wondering if it is
possible to use NSS or PSM as a xpcom component (like using nsIProcess or so)
in order to run some crypto algorithms (like aes, rsa... etc).
Best regards,
F
--
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto