Connected: An Internet Encyclopedia
A.16. KRB_PRIV generation
Up:
Connected: An Internet Encyclopedia
Up:
Requests For Comments
Up:
RFC 1510
Up:
A. Pseudo-code for protocol processing
Prev: A.15. KRB_SAFE and KRB_PRIV common checks
Next: A.17. KRB_PRIV verification
A.16. KRB_PRIV generation
A.16. KRB_PRIV generation
collect user data in buffer;
/* assemble packet: */
packet.pvno := protocol version; /* 5 */
packet.msg-type := message type; /* KRB_PRIV */
packet.enc-part.etype := encryption type;
body.user-data := buffer;
if (using timestamp) then
get system_time;
body.timestamp, body.usec := system_time;
endif
if (using sequence numbers) then
body.seq-number := sequence number;
endif
body.s-address := sender host addresses;
if (only one recipient) then
body.r-address := recipient host address;
endif
encode body into OCTET STRING;
select encryption type;
encrypt OCTET STRING into packet.enc-part.cipher;
Next: A.17. KRB_PRIV verification
Connected: An Internet Encyclopedia
A.16. KRB_PRIV generation