original_string: public function isKeyPair($publicKey, $privateKey)
      {
          try {
              return CryptoVirgilKeyPair::isKeyPairMatch($publicKey, $privateKey);
          } catch (Exception $exception) {
              throw new InvalidKeyPairException($exception->getMessage(), $exception->getCode());
          }
      }
code: public function isKeyPair($publicKey, $privateKey)
      {
          try {
              return CryptoVirgilKeyPair::isKeyPairMatch($publicKey, $privateKey);
          } catch (Exception $exception) {
              throw new InvalidKeyPairException($exception->getMessage(), $exception->getCode());
          }
      }
code_tokens: public function isKeyPair ( $ publicKey , $ privateKey ) { try { return CryptoVirgilKeyPair :: isKeyPairMatch ( $ publicKey , $ privateKey ) ; } catch ( Exception $ exception ) { throw new InvalidKeyPairException ( $ exception -> getMessage ( ) , $ exception -> getCode ( ) ) ; } }
docstring: Checks if given keys are parts of the same key pair.
  
  @param string $publicKey
  @param string $privateKey
  
  @return bool
  
  @throws InvalidKeyPairException
docstring_tokens: Checks if given keys are parts of the same key pair .