示例#1
0
        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);
        }
示例#3
0
        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);
        }
示例#4
0
        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);
        }
示例#6
0
        public Authenticator(Key key)
        {
            DateTime now = DateTime.Now;

            this.encrypted = DesEncryption.EncryptObject(now, key);
        }