original_string: public function verifySignature($receivedData, Client $client) {
  
  		$signature = isset($receivedData['signature']) ? $receivedData['signature'] : '';
  		if (!$signature) {
  			return false;
  		}
  
  		$responseWithoutSignature = $receivedData;
  		unset($responseWithoutSignature["signature"]);
  
  		$baseString = $this->getResponseSignatureBase($responseWithoutSignature);
  
  		$config = $client->getConfig();
  		$client->writeToTraceLog('Verifying signature of response of extension ' . $this->extensionId . ', base string is:' . "\n" . $baseString);
  
  		return Crypto::verifySignature($baseString, $signature, $config->bankPublicKeyFile);
  
  	}
code: public function verifySignature($receivedData, Client $client) {
  
  		$signature = isset($receivedData['signature']) ? $receivedData['signature'] : '';
  		if (!$signature) {
  			return false;
  		}
  
  		$responseWithoutSignature = $receivedData;
  		unset($responseWithoutSignature["signature"]);
  
  		$baseString = $this->getResponseSignatureBase($responseWithoutSignature);
  
  		$config = $client->getConfig();
  		$client->writeToTraceLog('Verifying signature of response of extension ' . $this->extensionId . ', base string is:' . "\n" . $baseString);
  
  		return Crypto::verifySignature($baseString, $signature, $config->bankPublicKeyFile);
  
  	}
code_tokens: public function verifySignature ( $ receivedData , Client $ client ) { $ signature = isset ( $ receivedData [ 'signature' ] ) ? $ receivedData [ 'signature' ] : '' ; if ( ! $ signature ) { return false ; } $ responseWithoutSignature = $ receivedData ; unset ( $ responseWithoutSignature [ "signature" ] ) ; $ baseString = $ this -> getResponseSignatureBase ( $ responseWithoutSignature ) ; $ config = $ client -> getConfig ( ) ; $ client -> writeToTraceLog ( 'Verifying signature of response of extension ' . $ this -> extensionId . ', base string is:' . "\n" . $ baseString ) ; return Crypto :: verifySignature ( $ baseString , $ signature , $ config -> bankPublicKeyFile ) ; }
docstring: Verifies signature.
  
  @param array $receivedData
  @param Client $client
  
  @return bool
docstring_tokens: Verifies signature .