예제 #1
0
    def getServerCrypter(self) -> RC4Crypter:
        """
        Get the server crypter.
        """
        if self.serverCrypter is None:
            raise StateError("The crypters were not generated. The crypters will be generated when both the client and server random are received.")

        return self.serverCrypter
예제 #2
0
파일: settings.py 프로젝트: xianlimei/pyrdp
    def getCrypter(self):
        """
        Get the current crypter object.
        :return: RC4Crypter
        """
        if self.crypter is None:
            raise StateError("The crypter was not generated. The crypter will be generated when the server random is received.")

        return self.crypter