| Server IP : 62.60.133.156 / Your IP : 216.73.217.51 Web Server : LiteSpeed System : Linux linux24.centraldnserver.com 4.18.0-553.141.2.lve.el8.x86_64 #1 SMP Wed Jul 8 16:10:02 UTC 2026 x86_64 User : mimradmin ( 1166) PHP Version : 7.4.33 Disable Function : show_source, system, shell_exec, passthru, exec, popen, proc_open MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/imunify360-webshield/lualib/resty/openssl/ |
Upload File : |
local ffi = require "ffi"
local ffi_cast = ffi.cast
local C = ffi.C
require "resty.openssl.include.crypto"
local _M = {}
function _M.memcmp(a, b, len)
if type(len) ~= "number" or len < 1 then
return nil, "crypto:memcmp arg 'len' must be a number > 0"
end
if type(a) ~= "string" and type(a) ~= "cdata" then
return nil, "crypto:memcmp only strings and cdata types are supported"
end
return C.CRYPTO_memcmp(ffi_cast("void*", a), ffi_cast("void*", b), len)
end
return _M