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 KRB_AS_REP AS(KRB_AS_REQ req) { // Invent key SA Key sa = new Key(7); sa.CreateRandomKey(); // Finds User's master key Ka Key ka = GetUserKey(req.User); // TGT = K_KDC[User, SA] Tgt tgt = new Tgt(this.k_kdc, req.User, sa); // Return KA(SA, TGT) KRB_AS_REP krb_as_rep = new KRB_AS_REP(ka, sa, tgt); return krb_as_rep; }
public KRB_TGS_REQ(Tgt tgt, Authenticator authenticator, User reqUser) { this.tgt = tgt; this.authenticator = authenticator; this.reqUser = reqUser; }