3.1.6.10 ReceiveSymmetricKeyCache Cleanup Timer Event

When the ReceiveSymmetricKeyCache Cleanup Timer (section 3.1.2.10) expires, the protocol MUST apply the following logic, where CURRENT_TIME represents the current system time. This value is the number of seconds elapsed since midnight (00:00:00), January 1, 1970 (UTC) according to the system clock.

  • For each CachedSymmetricKey (section 3.1.1.3.3) ADM element instance rCachedSymmetricKey in the ReceiveSymmetricKeyCache ADM element, if rCachedSymmetricKey.CachedTime is less than CURRENT_TIME minus the value of the SymmetricKeyShortLifetime ADM element, the CachedSymmetricKey ADM element instance referenced by rCachedSymmetricKey MUST be deleted from the ReceiveSymmetricKeyCache ADM element.

  • If the ReceiveSymmetricKeyCache ADM element is not empty, the CachedSymmetricKey ADM element instance with the oldest CachedTime ADM attribute value MUST be found. The ReceiveSymmetricKeyCache Cleanup Timer (section 3.1.2.10) MUST be restarted with a duration of the value of the SymmetricKeyShortLifetime ADM element plus one minute minus the difference between CURRENT_TIME and the oldest CachedTime ADM attribute value.