RE: Encryption problem with RSA algorithm

2004-12-10 Thread titi toto
OK.   Thanks for your answers. >To my understanding,>RSA should be able to cipher data larger than keysize,>but the error message seems to say the opposite.Your understanding is incorrect. RSA cannot encrypt data larger than thekey. This is why large RSA keys are typically used to encrypt fixed-si

Encryption problem with RSA algorithm

2004-12-10 Thread titi toto
Hi,   Sorry if my question is stupid... :-)   I'm trying to use openssl cryptographic functions to cipher data with RSA algorithm, with a keysize of 1024 bits.   When my data size is larger thant 1024 bits, the function RSA_public_encrypt sends back an RSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE error messa