Yes, I know. Precisely I need RSA to encrypt a buffer to exchange sessions keys (very small xml document), which will be used to encrypt the session with AES.
So :-) Can NSS encrypt raw data? -----Mensaje original----- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] En nombre de Nelson Bolyard Enviado el: miƩrcoles, 17 de septiembre de 2008 22:20 Para: dev-tech-crypto@lists.mozilla.org Asunto: Re: How to encript raw data Francisco Puentes wrote, On 2008-09-17 11:43: > Can NSS encrypt raw data? > > I have got into my code a pair of RSA keys generated and now I need > encrypt/decrypt binary data. > Something like: > > RSA_encrypt([public or private]key, void*in_data, long in_length, > void*out_data, long*out_length); > > Does it exist? In practice, RSA encryption is never used to encrypt user data directly. It's too slow, and the results are too bulky for such use. It is used to encrypt other encryption keys, keys for use with other encryption algorithms that are better suited to data encryption, such as AES. _______________________________________________ dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto _______________________________________________ dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto