Patent ID: 8560849

Claim:
A method for secure communication using hash-based message authentication codes, comprising: generating by a server a shared secret, a first counter value and a second counter value; generating by an encryption module executed on a computing device a first hash-based message authentication code from said shared secret and said first counter value stored in storage of said computing device; generating by said encryption module executed on said computing device a second hash-based message authentication code from said shared secret and said second counter value; deriving by said encryption module executed on said computing device an encryption key from a first function of said first hash-based message authentication code and said second hash-based message authentication code; wherein said first function includes at least a portion of a concatenation of said first and second hash-based message authentication codes; and encrypting by said encryption module executed on said computing device a message using said encryption key; and communicating said encrypted message via a network interface of said computing device.