摘要 |
Embodiments of the present application provide a key processing method and apparatus, where the method includes: obtaining, by a user equipment, a private key update message provided by a security device, where the private key update message includes an update parameter generated when the security device enters an r th time sub-segment of an i th time segment; generating, when r is 0, a user's private key of the r th time sub-segment of the i th time segment by using the update parameter, a user's private key of a last time sub-segment of an (i-1) th time segment, and time index values of the r th time sub-segment of the i th time segment and the last time sub-segment of the (i-1) th time segment; and generating, when r is greater than 0, the user's private key of the r th time sub-segment of the i th time segment by using the update parameter, a user's private key of an (r-1) th time sub-segment of the i th time segment, and time index values of the r th time sub-segment and the (r-1) th time sub-segment of the i th time segment; The embodiments of the present application improve flexibility of updating a key, and simplify operations. |