|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-01-18 01:23 UTC] wez@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 23 07:00:01 2025 UTC |
Description: ------------ When I use any OpenSSL encryption/decryption function (like openssl_seal, openssl_open, openssl_public_encrypt, openssl_private_decrypt, etc.) it takes very long time to execute, when it has been called in a first time. After that other function calls performs very fast in the same script. Reproduce code: --------------- $btime = microtime(true); openssl_seal('Some information', $sealed, $ekeys, array(openssl_get_publickey('file://C:\512.pub'))); echo 'Time: '.(microtime(true) - $btime); $btime = microtime(true); openssl_seal('Some information', $sealed, $ekeys, array(openssl_get_publickey('file://C:\1024.pub'))); echo '<br>Time: '.(microtime(true) - $btime); Expected result: ---------------- Time: 0.00************ Time: 0.00075888633728 Actual result: -------------- Time: 0.969028949738 Time: 0.00075888633728