note 93849 added to function.openssl-private-decrypt
| From: | sevaa at sprynet dot com | Date: | Sat, 03 Oct 2009 02:08:15 +0000 |
| Subject: | note 93849 added to function.openssl-private-decrypt | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-161242@lists.php.net to get a copy of this message | ||
When used with RSA, this function only accepts a single block. Block size is equal to the RSA key
size - i. e., with a 1024-bit key, block size should be 128 bytes. Depending on the padding scheme,
the payload may be even smaller. The padding is removed, so you'll receive the ready to use
plaintext. Blocking logic is up to the caller, though.
When passing Microsoft CryptoAPI-generated RSA cyphertext, revert the bytes in the block (you may
use strrev()).
----
Server IP: 209.41.74.194
Probable Submitter: 173.79.231.34
----
Manual Page -- http://www.php.net/manual/en/function.openssl-private-decrypt.php
Edit -- https://master.php.net/note/edit/93849
Del: integrated -- https://master.php.net/note/delete/93849/integrated
Del: useless -- https://master.php.net/note/delete/93849/useless
Del: bad code -- https://master.php.net/note/delete/93849/bad+code
Del: spam -- https://master.php.net/note/delete/93849/spam
Del: non-english -- https://master.php.net/note/delete/93849/non-english
Del: in docs -- https://master.php.net/note/delete/93849/in+docs
Del: other reasons-- https://master.php.net/note/delete/93849
Reject -- https://master.php.net/note/reject/93849
Search -- https://master.php.net/manage/user-notes.php