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