public function isKeyPair($publicKey, $privateKey)
    {
        try {
            return CryptoVirgilKeyPair::isKeyPairMatch($publicKey, $privateKey);
        } catch (Exception $exception) {
            throw new InvalidKeyPairException($exception->getMessage(), $exception->getCode());
        }
    }
public function isKeyPair($publicKey, $privateKey)
    {
        try {
            return CryptoVirgilKeyPair::isKeyPairMatch($publicKey, $privateKey);
        } catch (Exception $exception) {
            throw new InvalidKeyPairException($exception->getMessage(), $exception->getCode());
        }
    }
public function isKeyPair ( $ publicKey , $ privateKey ) { try { return CryptoVirgilKeyPair :: isKeyPairMatch ( $ publicKey , $ privateKey ) ; } catch ( Exception $ exception ) { throw new InvalidKeyPairException ( $ exception -> getMessage ( ) , $ exception -> getCode ( ) ) ; } }
Checks if given keys are parts of the same key pair.

@param string $publicKey
@param string $privateKey

@return bool

@throws InvalidKeyPairException
Checks if given keys are parts of the same key pair .