# US 2013/0159727 A1 · Secure replay protected storage

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2013/0159727 A1
- Document ID: US20130159727A1
- Status: Published application
- Kind: A1
- Application number: 13/631,556
- Filed: 2012-09-28
- Published: 2013-06-20
- Earliest claimed: 2011-12-20
- Assignees: Intel Corporation
- Inventors: Nitin V. Sarangdhar; William A. Stevens, JR.; John J. Vranich
- Web page: https://patentgrep.com/patent/US20130159727A1

## CPC

- G06F 12/1408: {by using cryptography (for digital transmission H04L9/00)}
- G06F 13/14: Handling requests for interconnection or transfer
- G06F 21/44: Program or device authentication
- G06F 21/445: {by mutual authentication, e.g. between devices or programs}
- G06F 21/79: in semiconductor storage media, e.g. directly-addressable memories
- G06F 2212/1052: Security improvement
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Embodiments of the invention create an underlying infrastructure in a flash memory device (e.g., a serial peripheral interface (SPI) flash memory device) such that it may be protected against user attacks—e.g., replacing the SPI flash memory device or a man-in-the-middle (MITM) attack to modify the SPI flash memory contents on the fly. In the prior art, monotonic counters cannot be stored in SPI flash memory devices because said devices do not provide replay protection for the counters. A user may also remove the flash memory device and reprogram it. Host platforms alone cannot protect against such hardware attacks. Embodiments of the invention enable secure standard storage flash memory devices such as SPI flash memory devices to achieve replay protection for securely stored data. Embodiments of the invention utilize flash memory controllers, flash memory devices, unique device keys and HMAC key logic to create secure execution environments for various components.

## Claims

### Claim 1

A system comprising:
a flash memory device including a monotonic counter; and
a host device, communicatively coupled to the flash memory device, to:
generate authentication credentials including a multi-byte signature;
request a value from the monotonic counter included in the flash memory device using a device key and the authentication credentials, including a truncated subset of the multi-byte signature;
receive the value from the monotonic counter and the authentication credentials from the flash memory device;
encrypt data with an incremented value from the monotonic counter; and
send the encrypted data, the device key, and a command to increment the monotonic counter to the flash memory;
wherein the flash memory device to validate the request for the value from the monotonic counter and the command to increment the monotonic counter with the device key.

### Claim 2 (depends on 1)

The system of claim 1, wherein the flash memory device includes a second monotonic counter, the system further comprising:
a second host device, communicatively coupled to the flash memory device, to:
generate a second authentication credentials;
request a value from the second monotonic counter included in the flash memory device using the second authentication credentials and a second device key;
receive the value from the second monotonic counter and the second authentication credentials from the flash memory device;
encrypt data with an incremented second value from the monotonic counter; and
send the encrypted data, the second device key, and a command to increment the second monotonic counter to the flash memory;
wherein the flash memory device to validate the request for the value from the second monotonic counter and the command to increment the second monotonic counter with the second device key.

### Claim 3 (depends on 2)

The system of claim 2, wherein the host device comprises a platform interconnect and the second host device comprises a processor.

### Claim 4 (depends on 2)

The system of claim 2, the flash memory device to store the device key and the second device key in non-readable key registers.

### Claim 5 (depends on 1)

The system of claim 1, wherein the flash memory device comprises a serial peripheral interface (SPI) flash memory device.

### Claim 6 (depends on 1)

The system of claim 1, wherein the device key is based on a plurality of field programmable fuses (FPFs) included in the host device.

### Claim 7 (depends on 1)

The system of claim 1, the host device to encrypt the data based on a Hash-based Message Authentication Code/Secure Hash Algorithm (HMAC-SHA) algorithm, and the multi-byte signature comprises a 256-byte HMAC signature.

### Claim 8 (depends on 1)

The system of claim 1, wherein the authentication credentials comprise a nonce.

### Claim 9

An apparatus, comprising:
a flash memory device controller; and
a host device, communicatively coupled to the flash memory controller, to:
generate authentication credentials including a multi-byte signature;
request a value from a monotonic counter via the flash memory device controller using a device key and the authentication credentials, including a truncated subset of the multi-byte signature;
receive the value from the monotonic counter and the authentication credentials from the flash memory device controller;
encrypt data with an incremented value from the monotonic counter; and
send the encrypted data, the device key, and a command to increment the monotonic counter to the flash memory controller;
wherein the flash memory device controller to validate the request for the value from the monotonic counter and the command to increment the monotonic counter with the device key.

### Claim 10 (depends on 9)

The apparatus of claim 9, wherein the host device comprises a platform interconnect.

### Claim 11 (depends on 9)

The apparatus of claim 9, wherein the host device comprises a processor.

### Claim 12 (depends on 9)

The apparatus of claim 9, wherein the flash memory device controller comprises a serial peripheral interface (SPI) flash memory controller.

### Claim 13 (depends on 9)

The apparatus of claim 9, wherein the device key is based on a plurality of field programmable fuses (FPFs) included in the host device.

### Claim 14 (depends on 9)

The apparatus of claim 9, the host device to encrypt the data based on a Hash-based Message Authentication Code/Secure Hash Algorithm (HMAC-SHA) algorithm, and the multi-byte signature comprises a 256-byte HMAC signature.

### Claim 15 (depends on 9)

The apparatus of claim 9, wherein the authentication credentials comprise a nonce.

### Claim 16

A method comprising:
generating authentication credentials including a multi-byte signature;
requesting a value from a monotonic counter included in a flash memory device using a device key and the authentication credentials, including a truncated subset of the multi-byte signature;
receiving the value and the authentication credentials from the monotonic counter;
encrypting data with an incremented value from the monotonic counter; and
sending the authenticated data, the device key, and a command to increment the monotonic counter to the flash memory device.

### Claim 17 (depends on 16)

The method of claim 16, wherein the flash memory device comprises a serial peripheral interface (SPI) flash memory device.

### Claim 18 (depends on 16)

The method of claim 16, wherein the device key is based on a plurality of field programmable fuses (FPFs).

### Claim 19 (depends on 16)

The method of claim 16, wherein encrypting the data is based on a Hash-based Message Authentication Code/Secure Hash Algorithm (HMAC-SHA) algorithm, and the multi-byte signature comprises a 256-byte HMAC signature.

### Claim 20 (depends on 16)

The method of claim 16, wherein the authentication credentials comprise a nonce.
