def TGSClient(kcv1, idv1, ts4, ticketv1): mes = message_pb2.ASClient() mes.Kcv = kcv1 mes.IDv = idv1 mes.TS4 = ts4 mes.Ticketv = ticketv1 return mes.SerializeToString()
def ASClient(kctgs1, idtgs, ts2, lifetime2, tickettgs): mes = message_pb2.ASClient() mes.Kctgs = kctgs1 mes.IDtgs = idtgs mes.TS2 = ts2 mes.Lifetime2 = lifetime2 mes.Tickettgs = tickettgs return mes.SerializeToString()
def Ticketv(kcv1, idc1, adc1, idv1, ts4, lifetime4): mes = message_pb2.ASClient() mes.Kcv = kcv1 mes.IDc = idc1 mes.ADc = adc1 mes.IDv = idv1 mes.TS4 = ts4 mes.Lifetime4 = lifetime4 return mes.SerializeToString
def Tickettgs(kctgs1, idc, adc, idtgs, ts2, lifetime2): mes = message_pb2.ASClient() mes.Kctgs = kctgs1 mes.IDc = idc mes.ADc = adc mes.IDtgs = idtgs mes.TS2 = ts2 mes.Lifetime2 = lifetime2 return mes.SerializeToString()
def ClientTGS(idv1, tickettgs1, authenticatorc1): mes = message_pb2.ASClient() mes.IDv = idv1 mes.Tickettgs = tickettgs1 mes.AuthenticatorC = authenticatorc1 return mes.SerializeToString()
def VClient(ts5): mes = message_pb2.ASClient() mes.TS5 = ts5 return mes.SerializeToString()
def AuthenticatorC5(idc1, adc1, ts5): mes = message_pb2.ASClient() mes.IDc = idc1 mes.ADc = adc1 mes.TS5 = ts5 return mes.SerializeToString()
def ClientV(ticketv1, authenticatorc): mes = message_pb2.ASClient() mes.Ticketv = ticketv1 mes.AuthenticatorC = authenticatorc return mes.SerializeToString()
def ClientAS(idc1, idtgs, ts1): mes = message_pb2.ASClient() mes.Kctgs = idc1 mes.IDtgs = idtgs mes.TS1 = ts1 return mes.SerializeToString()
def AuthenticatorC3(idc1, adc1, ts3): mes = message_pb2.ASClient() mes.IDc = idc1 mes.ADc = adc1 mes.TS3 = ts3 return bytes.decode(mes.SerializeToString())