RobRichards\XMLSecLibs\XMLSecurityKey::verifyOpenSSL PHP Method

verifyOpenSSL() private method

Verifies the given data (string) belonging to the given signature using the openssl-extension
private verifyOpenSSL ( string $data, string $signature ) : integer
$data string
$signature string
return integer
    private function verifyOpenSSL($data, $signature)
    {
        $algo = OPENSSL_ALGO_SHA1;
        if (!empty($this->cryptParams['digest'])) {
            $algo = $this->cryptParams['digest'];
        }
        return openssl_verify($data, $signature, $this->key, $algo);
    }