public KRB_AP_REP(Key key, DateTime timestamp) { // TODO: timestamp+1 /// ... /// this.encrypted = DesEncryption.EncryptObject(timestamp, key); }
public KRB_AS_REP(Key k_a, Key ks_a, Tgt tgt) { KRB_AS_REP_NoEncrypted noEncrypt = new KRB_AS_REP_NoEncrypted(); noEncrypt.ks_a = ks_a; noEncrypt.tgt = tgt; this.encrypted = DesEncryption.EncryptObject(noEncrypt, k_a); }
public Ticket(Key key, User from, Key shareKeys) { Ticket_NoEncrypted tne = new Ticket_NoEncrypted(); tne.from = from; tne.shareKeys = shareKeys; this.encrypted = DesEncryption.EncryptObject(tne, key); }
public Tgt(Key k_kdc, User u, Key ks_a) { TgtNoEncrypted tgtNoEncrypted = new TgtNoEncrypted(); tgtNoEncrypted.u = u; tgtNoEncrypted.ks_a = ks_a; this.encrypted = DesEncryption.EncryptObject(tgtNoEncrypted, k_kdc); }
public KRB_TGS_REP(Key key, User reqUser, Key k_ab, Ticket ticket) { KRB_TGS_REP_NoEncrypted noEncrypt = new KRB_TGS_REP_NoEncrypted(); noEncrypt.reqUser = reqUser; noEncrypt.k_ab = k_ab; noEncrypt.ticket = ticket; this.encrypted = DesEncryption.EncryptObject(noEncrypt, key); }
public Key GetShareKeys(Key key) { Ticket_NoEncrypted ticket_noEncrypted = (Ticket_NoEncrypted)DesEncryption.DecryptObject(this.encrypted, key); return(ticket_noEncrypted.shareKeys); }
public User GetFrom(Key key) { Ticket_NoEncrypted ticket_noEncrypted = (Ticket_NoEncrypted)DesEncryption.DecryptObject(this.encrypted, key); return(ticket_noEncrypted.from); }
public Authenticator(Key key) { DateTime now = DateTime.Now; this.encrypted = DesEncryption.EncryptObject(now, key); }
public DateTime GetTimestamp(Key key) { return((DateTime)DesEncryption.DecryptObject(this.encrypted, key)); }
public User GetUser(Key key) { TgtNoEncrypted noEncrypt = (TgtNoEncrypted)DesEncryption.DecryptObject(this.encrypted, key); return(noEncrypt.u); }
public Ticket GetTicket(Key key) { KRB_TGS_REP_NoEncrypted noEncrypt = (KRB_TGS_REP_NoEncrypted)DesEncryption.DecryptObject(this.encrypted, key); return(noEncrypt.ticket); }
public Key GetK_AB(Key key) { KRB_TGS_REP_NoEncrypted noEncrypt = (KRB_TGS_REP_NoEncrypted)DesEncryption.DecryptObject(this.encrypted, key); return(noEncrypt.k_ab); }
public User GetReqUser(Key key) { KRB_TGS_REP_NoEncrypted noEncrypt = (KRB_TGS_REP_NoEncrypted)DesEncryption.DecryptObject(this.encrypted, key); return(noEncrypt.reqUser); }
public Key GetKS_A(Key key) { KRB_AS_REP_NoEncrypted noEncrypt = (KRB_AS_REP_NoEncrypted)DesEncryption.DecryptObject(this.encrypted, key); return(noEncrypt.ks_a); }
public Key GetKS_A(Key key) { TgtNoEncrypted noEncrypt = (TgtNoEncrypted)DesEncryption.DecryptObject(this.encrypted, key); return(noEncrypt.ks_a); }
public Tgt GetTGT(Key key) { KRB_AS_REP_NoEncrypted noEncrypt = (KRB_AS_REP_NoEncrypted)DesEncryption.DecryptObject(this.encrypted, key); return(noEncrypt.tgt); }
public DateTime GetTimeStamp(Key key) { DateTime timestamp = (DateTime)DesEncryption.DecryptObject(this.encrypted, key); return(timestamp); }