openssl encrypt problem

2003-12-16 Thread Frédéric HARDY
Hello ! I'm using openssl with php. This is my code : '; #GET PUBLIC KEY $public_key = openssl_get_publickey('file://path_to_certificate'); #DECRYPT openssl_public_decrypt($crypted_text, $decrypted_text, $public_key); echo 'String decrypted : ' . $decrypted_text; #GET ERRORS echo ''; while (

Re: openssl encrypt problem

2003-12-17 Thread Jostein Tveit
Frédéric HARDY <[EMAIL PROTECTED]> writes: > I'm using openssl with php. I'm not familiar with the PHP interface to OpenSSL, but I may give you some clues. > error:0406B06E:rsa routines:RSA_padding_add_none:data too large for key size The RSA key must be longer than the data you try to encrypt