mirror of
https://github.com/danog/phpseclib.git
synced 2025-01-22 13:01:59 +01:00
expand on eval() explanation
This commit is contained in:
parent
92f0ee0464
commit
9ccfaff7ba
@ -2741,6 +2741,8 @@ abstract class SymmetricKey
|
||||
// Before discrediting this, please read the following:
|
||||
// @see https://github.com/phpseclib/phpseclib/issues/1293
|
||||
// @see https://github.com/phpseclib/phpseclib/pull/1143
|
||||
// to summarize, manual code generation/inlining/unrolling are employed for a massive
|
||||
// performance increase
|
||||
eval('$func = function ($_action, $_text) { ' . $init_crypt . 'if ($_action == "encrypt") { ' . $encrypt . ' } else { ' . $decrypt . ' }};');
|
||||
|
||||
return \Closure::bind($func, $this, static::class);
|
||||
|
Loading…
x
Reference in New Issue
Block a user