Hi all,

Does anyone know whether NSS library can support encryption of emails using keys? Basically, my extension requires me to use password-authenticated key exchange protocol to encrypt message
contents and change its header to multipart/encrypted for outgoing
emails, similar to Enigmail's OpenPGP key generation, replacing the need of certificates? If this is not possible, are there ways to create DER data and other details by deriving from
SECKEYPublicKey, SECKEYPrivateKey and PK11SymKey required for
CERT_NewTempCertificate and CERT_CreateCertificate method?

For now, the extension can encrypt message contents (in armoring form), but cannot send out
the email as encrypted, due to no certificates. My project will involve
only the use the keys to encrypt and decrypt emails. If certificate is
to used, it will be temporary.

I have tried to search for C++ code samples, but to no avail. Appreciate if someone can kindly post some code samples relating to encryption and decryption of emails using keys in NSS. Thank you.

Regards,
Brian Teh, Singapore
--
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto

Reply via email to