# US 9,356,931 B2 · Methods and apparatuses for secure end to end communication

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

- Number: US 9,356,931 B2
- Document ID: US9356931B2
- Status: Granted
- Kind: B2
- Application number: 14/154,723
- Filed: 2014-01-14
- Published: 2015-01-01
- Granted: 2016-05-31
- Earliest claimed: 2013-06-27
- Assignees: Hitech & Development Wireless Sweden AB
- Applicants: Hitech & Development Wireless Sweden AB
- Inventors: Per Ekman; Anders Grahn; Pär Bergsten
- Web page: https://patentgrep.com/patent/US9356931B2

## CPC

- H04L 63/0869: {for achieving mutual authentication (cryptographic mechanisms or cryptographic arrangements for mutual authentication H04L9/3273)}
- H04L 63/0428: {wherein the data content is protected, e.g. by encrypting or encapsulating the payload}
- H04L 63/061: {for key exchange, e.g. in peer-to-peer networks (cryptographic mechanisms or cryptographic arrangements for key agreement H04L9/0838)}
- H04L 63/168: {above the transport layer}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

The present invention relates to application-level secure end-to-end communication. Specifically it relates to methods apparatuses and computer program products for creating and distributing a shared secret and to sending or receiving messages between an embedded device and a user device via a cloud server.

## Claims

### Claim 1

A method for a user device connectable to a cloud server and an embedded device, the method comprising:
generating, by the user device, a first key for creating a shared secret between the cloud server and the embedded device;
sending, over a local network connection inaccessible to unauthorized devices, the first key, from the user device to the embedded device; and
sending, using a Secure Sockets Layer connection, the first key from the user device to the cloud server.

### Claim 2

A method for a cloud server connectable to a user device and an embedded device, the method comprising:
receiving, by the cloud server, a first key from the user device, the first key being a shared secret that is shared with the embedded device;
performing an initial mutual authentication between the embedded device and the cloud server using the first key;
initiating a messaging session with the embedded device using a second key that is based on the first key; and
sending a message to the embedded device using a third key that is based on the first key and the second key.

### Claim 3

A method for an embedded device connectable to a user device and a cloud server, the method comprising:
receiving, by the embedded device over a local network connection inaccessible to unauthorized devices, a first key from the user device, the first key being a shared secret that is shared with the cloud server;
performing an initial mutual authentication between the embedded device and the cloud server using the first key;
initiating a messaging session with the cloud server using a second key that is based on the first key; and
receiving a message from the cloud server using a third key that is based on the first key and the second key.

### Claim 4 (depends on 2)

The method according to claim 2, wherein the initiating a messaging session further comprises:
generating the second key; and
generating the third key.

### Claim 5 (depends on 4)

The method according to claim 4, wherein the sending a message further comprises:
computing a first digest from a first set of parameters that includes the second key;
computing a second digest from a second set of parameters that includes a header of the message and a payload of the message; and
computing an encrypted payload from a third set of parameters that includes the third key.

### Claim 6 (depends on 5)

The method according to claim 5, wherein the first digest is a message authentication code, MAC.

### Claim 7 (depends on 5)

The method according to claim 5, wherein the first set of parameters includes the header of the message.

### Claim 8 (depends on 5)

The method according to claim 5, wherein the second digest is a message integrity code, MIC.

### Claim 9 (depends on 5)

The method according to claim 5, wherein the third set of parameters includes the payload of the message.

### Claim 10 (depends on 2)

The method according to claim 2, wherein the sending a message further comprises sending the first digest, the second digest and an encrypted payload, such that the second digest is sent after the encrypted payload.

### Claim 11 (depends on 1)

A non-transitory computer-readable medium with instructions for causing a programmable computer to perform the method of claim 1.

### Claim 12 (depends on 3)

An embedded device connectable to a local network, said embedded device comprising:
a processor;
a memory;
a transmit-receive unit; and
a network interface configured to communicate over the local network using the transmit-receive unit, said processor and said memory being configured to implement application specific functions to perform the method according to claim 3.

### Claim 13 (depends on 12)

The embedded device according to claim 12, wherein said embedded device does not include a hardware accelerator.

### Claim 14 (depends on 2)

The method according to claim 2, wherein the performing an initial mutual authentication includes:
sending a first authentication request that includes a first challenge; and
receiving a first authentication response that includes a second challenge, an identification of the embedded device, and a first digest computed using the first key.

### Claim 15 (depends on 14)

The method according to claim 14, wherein the performing an initial mutual authentication includes:
sending a second authentication request that includes a second digest computed using the first key, the identification, and the second challenge; and
receiving a second authentication response to establish the initial mutual authentication.

### Claim 16 (depends on 15)

The method according to claim 15, wherein the sending a message includes:
sending a message authentication request that includes a third digest computed using the second key and a third challenge; and
receiving a message authentication response that includes a fourth digest computed using the second key and a fourth challenge.

### Claim 17 (depends on 16)

The method according to claim 16, wherein the third challenge is an incremented version of the second challenge, and the fourth challenge is an incremented version of the first challenge.

### Claim 18 (depends on 16)

The method according to claim 16, wherein the third digest and the fourth digest are further computed using a header of the message and the identification.
