public function computeHash($publicKeyDER, $hashAlgorithm)
    {
        try {
            return (new CryptoVirgilHash($hashAlgorithm))->hash($publicKeyDER);
        } catch (Exception $exception) {
            throw new PublicKeyHashComputationException($exception->getMessage(), $exception->getCode());
        }
    }