Exemple #1
0
        //KRB-PRIV        ::= [APPLICATION 21] SEQUENCE {
        //        pvno            [0] INTEGER (5),
        //        msg-type        [1] INTEGER (21),
        //                        -- NOTE: there is no [2] tag
        //        enc-part        [3] EncryptedData -- EncKrbPrivPart
        //}

        public KRB_PRIV(Interop.KERB_ETYPE encryptionType, byte[] encKey)
        {
            // defaults for creation
            pvno           = 5;
            MessageType    = 21;
            EncryptionType = encryptionType;
            EncryptionKey  = encKey;
            enc_part       = new EncKrbPrivPart();
        }
Exemple #2
0
        //KRB-PRIV        ::= [APPLICATION 21] SEQUENCE {
        //        pvno            [0] INTEGER (5),
        //        msg-type        [1] INTEGER (21),
        //                        -- NOTE: there is no [2] tag
        //        enc-part        [3] EncryptedData -- EncKrbPrivPart
        //}

        public KRB_PRIV(Interop.KERB_ETYPE encType, byte[] encKey)
        {
            // defaults for creation
            pvno     = 5;
            msg_type = 21;

            etype = encType;

            ekey = encKey;

            enc_part = new EncKrbPrivPart();
        }