Connected: An Internet Encyclopedia
RFC 1510 - A.11. KRB_AP_REP generation

Top: Connected: An Internet Encyclopedia
Up: Requests For Comments
Up: RFC 1510
Up: A. Pseudo-code for protocol processing
Prev: A.10. KRB_AP_REQ verification
Next: A.12. KRB_AP_REP verification

### A.11. KRB_AP_REP generation

            packet.pvno := protocol version; /* 5 */
            packet.msg-type := message type; /* KRB_AP_REP */
            body.ctime := packet.ctime;
            body.cusec := packet.cusec;
            if (selecting sub-session key) then
                    select sub-session key;
                    body.subkey := sub-session key;
            endif
            if (using sequence numbers) then
                    select initial sequence number;
                    body.seq-number := initial sequence;
            endif

            encode body into OCTET STRING;

            select encryption type;
            encrypt OCTET STRING into packet.enc-part;

Next: A.12. KRB_AP_REP verification

Connected: An Internet Encyclopedia
RFC 1510 - A.11. KRB_AP_REP generation