note 93849 deleted from function.openssl-private-decrypt by googleguy
| From: | googleguy@php.net | Date: | Tue, 22 Oct 2013 08:45:08 +0000 |
| Subject: | note 93849 deleted from function.openssl-private-decrypt by googleguy | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-196804@lists.php.net to get a copy of this message | ||
Note Submitter: sevaa at sprynet dot com
----
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()).