public function verifySignature($publicKey) 
    {
        $signature = $this->getSignature();
        $data = $this->getDataForSigning();
        
        if (!isset($signature)) {
            throw new \Exception("Missing signature");
        } elseif (1 != $result = openssl_verify($data, base64_decode ($signature), $publicKey)) {
            throw new \Exception("OpenSSL verification failed.");
        }
    }
public function verifySignature($publicKey) 
    {
        $signature = $this->getSignature();
        $data = $this->getDataForSigning();
        
        if (!isset($signature)) {
            throw new \Exception("Missing signature");
        } elseif (1 != $result = openssl_verify($data, base64_decode ($signature), $publicKey)) {
            throw new \Exception("OpenSSL verification failed.");
        }
    }
public function verifySignature ( $ publicKey ) { $ signature = $ this -> getSignature ( ) ; $ data = $ this -> getDataForSigning ( ) ; if ( ! isset ( $ signature ) ) { throw new \ Exception ( "Missing signature" ) ; } elseif ( 1 != $ result = openssl_verify ( $ data , base64_decode ( $ signature ) , $ publicKey ) ) { throw new \ Exception ( "OpenSSL verification failed." ) ; } }
Verifies configuration via an HMAC..
@param array $config
@param string $publicKey
Verifies configuration via an HMAC ..