Abstract Several emerging internet services by multicast force the research on secure multicast, and the research on key update is a big challenge. This paper designs a hash function of variable message digest and variable key length for a key update protocol that is proposed based on time stream, and analysises the overall performances for the protocol.