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

RE: Encryption problem with RSA algorithm

2004-12-10 Thread David Schwartz
>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 the key. This is why large RSA keys are typically used to encrypt fixed-sized keys for other

Re: Encryption problem with RSA algorithm

2004-12-10 Thread Bernhard Froehlich
titi toto wrote: 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_KE