The size of the data must be less than the size of the modulus of the key. If it's a 1024-bit key (128 bytes) then the data must be at most 128 bytes. In fact, the data when viewed as a long integer must be of a smaller value than the modulus.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Mark W. Webb Sent: Thursday, 26 September 2002 10:29 PM To: [EMAIL PROTECTED] Subject: Re: rsa encryption and decryption that is the problem that I have. What is the correct size ? thanks... On Thu, 2002-09-26 at 04:35, Prasanth wrote: > Hello Mark, > > Yes, you an encrypt data using RSA. > > The only catch is size of the data to be encypted should be less than size > of RSA keys. (i.e < modulo n). > > -Prasanth > > > ----- Original Message ----- > From: "Mark W. Webb" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, September 26, 2002 1:51 AM > Subject: rsa encryption and decryption > I am working on a program that I use to encrypt and decrypt data. I am > was not sure if I can encrypt and decrypt data, or just keys using the > functions RSA_private_encrypt and RSA_public_decrypt. > > thanks... > > ______________________________________________________________________ > OpenSSL Project http://www.openssl.org > Development Mailing List [EMAIL PROTECTED] > Automated List Manager [EMAIL PROTECTED] ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
