note 42259 added to function.openssl-public-encrypt
| From: | Jeff at rn2 dot php dot net | Date: | Mon, 10 May 2004 06:15:27 +0000 |
| Subject: | note 42259 added to function.openssl-public-encrypt | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-69399@lists.php.net to get a copy of this message | ||
It looks like there is a limit on the size of the string to be encrypted: about 50 characters.
This is due to the fact that the implementation allocates an output buffer of size
EVP_PKEY_size(pkey), which is totally arbitrary and unrelated to the size of the input. Also,
it's not using a cipher envelope approach. It's just RSAing the input string.
----
Manual Page -- http://www.php.net/manual/en/function.openssl-public-encrypt.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+42259
Delete -- http://master.php.net/manage/user-notes.php?action=delete+42259&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+42259&report=yes
Search -- http://master.php.net/manage/user-notes.php