This memo requires that implementations preclude administrative alterations of the authentication clock for a particular party independently from its private authentication key (unless that clock alteration is an advancement). An example of an efficient implementation of this restriction is provided in a pseudocode fragment below. This pseudocode fragment meets the requirements of assumption 6. Observe that the requirement is not for simultaneous alteration but to preclude independent alteration. This latter requirement is fairly easily realized in a way that is consistent with the defined semantics of the SNMPv2 set operation.
Void partySetKey (party, newKeyValue) { if (party->clockAltered) { party->clockAltered = FALSE; party->keyAltered = FALSE; party->keyInUse = newKeyValue; party->clockInUse = party->clockCache; } else { party->keyAltered = TRUE; party->keyCache = newKeyValue; } } Void partySetClock (party, newClockValue) { if (party->keyAltered) { party->keyAltered = FALSE; party->clockAltered = FALSE; party->clockInUse = newClockValue; party->keyInUse = party->keyCache; } else { party->clockAltered = TRUE; party->clockCache = newClockValue; } }