A device (e.g., mobile device) and method are described herein that can
protect data stored in a rewritable openly accessible memory from replay
attacks by using an integrity key and an encryption key to en/decrypt the
data, integrity protect the data via a MAC calculation, and verify the
data.