Re: openssl_seal new param
| From: | Jakub Zelenka | Date: | Tue, 01 Sep 2015 19:04:39 +0000 |
| Subject: | Re: openssl_seal new param | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-87997@lists.php.net to get a copy of this message | ||
Hi Scott,
On Mon, Aug 31, 2015 at 10:56 PM, Scott Arciszewski <scott@paragonie.com>
wrote:
>
>
> At the risk of sounding silly, can we just use random_bytes()? :)
>
>
This is about internal calls in OpenSSL so we would have to register our
RAND methods. That can be however problematic with potential using of
engine API.
> Additionally, I'd like to (for example) be able to use ChaCha20
> instead of RC4. Is that what the (currently undocumented) $method
> parameter is for?
>
>
The $method param is for setting a cipher algorithm (the same name that you
can pass to openssl_encrypt for example). Only the algorithms returned
from openssl_get_cipher_methods() can be used though - atm only the ones
with empty IV...
Cheers
Jakub