def verify_servers_proof(self, M):
    if (isinstance(M, bytearray) or isinstance(M, bytes)):
        tmp = int.from_bytes(M, 'big')
    else:
        tmp = M
    hash_instance = self.h()
    hash_instance.update(Srp.to_byte_array(self.A))
    hash_instance.update(Srp.to_byte_array(self.get_proof()))
    hash_instance.update(Srp.to_byte_array(self.get_session_key()))
    return (tmp == int.from_bytes(hash_instance.digest(), 'big'))
def verify_servers_proof(self, M):
    if (isinstance(M, bytearray) or isinstance(M, bytes)):
        tmp = int.from_bytes(M, 'big')
    else:
        tmp = M
    hash_instance = self.h()
    hash_instance.update(Srp.to_byte_array(self.A))
    hash_instance.update(Srp.to_byte_array(self.get_proof()))
    hash_instance.update(Srp.to_byte_array(self.get_session_key()))
    return (tmp == int.from_bytes(hash_instance.digest(), 'big'))