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
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