Bob Relyea wrote:
The 'lecture' was triggered because 1) we don't communicate this quite
as often as we need to, and 2) PK11_PubEncryptRaw is the lowest level
function.
PK11_PubEncryptRaw takes a modulus size data and does a raw RSA
operation on the data. It's used to support SSL2 which modifies the key
encoding to include the SSL version number.
So one may ask why you didn't see PK11_PubEncryptPKCS1? As we said the
API has 'evolved'. SSL and S/MIME always dealt with keys, so they always
used PK11_PubWrapSymKey(), so PK11_PubEncryptPKCS1 didn't exist until
NSS 3.9.3.
Petar,
I agree that PK11_PubEncryptPKCS1 is most likely what
you want, because I remember we added that function for
libxmlsec support :-) (PK11_PrivDecryptPKCS1 was added
at the same time.)
https://bugzilla.mozilla.org/show_bug.cgi?id=258366
Wan-Teh
_______________________________________________
mozilla-crypto mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-crypto