# US 2021/0243016 A1 · Method for encryption and decryption, programmable switch and computer program product

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

- Number: US 2021/0243016 A1
- Document ID: US20210243016A1
- Status: Published application
- Kind: A1
- Application number: 16/820,122
- Filed: 2020-03-16
- Published: 2021-08-05
- Earliest claimed: 2020-01-31
- Assignees: EMC IP Holding Company LLC
- Applicants: EMC IP Holding Company LLC
- Inventors: Chenxi Hu; Shixu Dong
- Web page: https://patentgrep.com/patent/US20210243016A1

## CPC

- H04L 9/0819: {Key transport or distribution, i.e. key establishment techniques where one party creates or otherwise obtains a secret value, and securely transfers it to the other(s) (network architectures or network communication protocols for key distribution in a packet data network H04L63/062)}
- H04L 9/3213: {using tickets or tokens, e.g. Kerberos (network architectures or network communication protocols for entities authentication using tickets in a packet data network H04L63/0807)}
- H04L 9/14: using a plurality of keys or algorithms
- G16Y 10/75: Information technology; Communication
- G16Y 30/10: Security thereof
- H04L 2209/805: Lightweight hardware, e.g. radio-frequency identification [RFID] or sensor
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G16Y: INFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]

## Abstract

Embodiments of the present disclosure relate to a method for encryption and decryption, a programmable switch, and a computer program product. The method comprises receiving, at a programmable switch, encrypted data to be sent to a certain Internet of Things (IoT) device, wherein the encrypted data is encrypted using a public key of the programmable switch. The method further comprises decrypting the encrypted data using a private key of the programmable switch to obtain decrypted data, and then sending the decrypted data from the programmable switch to the IoT device. According to the embodiments of the present disclosure, the encryption and decryption operations of the IoT device can be transferred to the programmable switch for processing, and the programmable switch is used to help the IoT device perform encryption and decryption.

## Claims

### Claim 1

A method for encryption and decryption, comprising:
receiving, at a programmable switch, encrypted data directed to an Internet of Things (IoT) device, the encrypted data being encrypted using a public key of the programmable switch;
decrypting the encrypted data using a private key of the programmable switch to obtain decrypted data; and
sending the decrypted data from the programmable switch to the IoT device.

### Claim 2 (depends on 1)

The method of claim 1, wherein the encrypted data is received from user equipment, and the decrypted data contains an execution command, the method further comprising:
receiving an execution result of the execution command from the IoT device;
encrypting the execution result using a public key of the user equipment; and
sending the encrypted execution result to the user equipment.

### Claim 3 (depends on 1)

The method of claim 1, further comprising:
authenticating the IoT device online by implementing an asymmetric encryption function for the IoT device in the programmable switch.

### Claim 4 (depends on 3)

The method of claim 3, wherein authenticating the IoT device online comprises:
receiving a device identifier of the IoT device and a token for authentication from the IoT device;
encrypting the device identifier and the token using a public key of an authentication server;
sending the device identifier and the token that are encrypted to the authentication server; and
receiving an authentication response message from the authentication server, the authentication response message being encrypted using the public key of the programmable switch.

### Claim 5 (depends on 4)

The method of claim 4, wherein authenticating the IoT device online further comprises:
decrypting the authentication response message using the private key of the programmable switch to obtain an authentication result; and
based on a determination that the authentication result indicates that the IoT device has passed the authentication:
granting an access right to the IoT device;
storing the device identifier of the IoT device and a corresponding port; and
sending an indication of authentication success to the IoT device.

### Claim 6 (depends on 1)

The method of claim 1, further comprising:
sending, based on a determination that a request for a serverless list is received from the IoT device, the serverless list to the IoT device;
receiving, from the IoT device, an encryption request for a packet directed to a destination address; and
based on a determination that a first packet directed to the destination address is received from the IoT device, encrypting the first packet by the programmable switch.

### Claim 7 (depends on 6)

The method of claim 6, further comprising:
receiving, from the IoT device, a decryption request for a packet directed to a source address; and
based on a determination that a second packet from the source address is received, decrypting the second packet by the programmable switch.

### Claim 8 (depends on 1)

The method of claim 1, further comprising:
generating an asymmetric key using a processing unit in the programmable switch, the asymmetric key including the public key and private key of the programmable switch; and
performing at least one of asymmetric encryption and asymmetric decryption using a programmable switch chip in the programmable switch.

### Claim 9

A programmable switch, comprising:
a processing unit; and
a memory coupled to the processing unit and storing instructions that, when executed by the processing unit, perform the following actions:
receiving encrypted data directed to an Internet of Things (IoT) device, the encrypted data being encrypted using a public key of the programmable switch;
decrypting the encrypted data using a private key of the programmable switch to obtain decrypted data; and
sending the decrypted data to the IoT device.

### Claim 10 (depends on 9)

The programmable switch of claim 9, wherein the encrypted data is received from user equipment, the decrypted data contains an execution command, and the actions further comprise:
receiving an execution result of the execution command from the IoT device;
encrypting the execution result using a public key of the user equipment; and
sending the encrypted execution result to the user equipment.

### Claim 11 (depends on 9)

The programmable switch of claim 9, wherein the actions further comprise:
authenticating the IoT device online by implementing an asymmetric encryption function for the IoT device in the programmable switch.

### Claim 12 (depends on 11)

The programmable switch of claim 11, wherein authenticating the IoT device online comprises:
receiving a device identifier of the IoT device and a token for authentication from the IoT device;
encrypting the device identifier and the token using a public key of an authentication server;
sending the device identifier and the token that are encrypted to the authentication server; and
receiving an authentication response message from the authentication server, the authentication response message being encrypted using the public key of the programmable switch.

### Claim 13 (depends on 12)

The programmable switch of claim 12, wherein authenticating the IoT device online further comprises:
decrypting the authentication response message using the private key of the programmable switch to obtain an authentication result; and
based on a determination that the authentication result indicates that the IoT device has passed the authentication:
granting an access right to the IoT device;
storing the device identifier of the IoT device and a corresponding port; and
sending an indication of authentication success to the IoT device.

### Claim 14 (depends on 9)

The programmable switch of claim 9, wherein the actions further comprise:
sending, based on a determination that a request for a serverless list is received from the IoT device, the serverless list to the IoT device;
receiving, from the IoT device, an encryption request for a packet directed to a destination address; and
based on a determination that a first packet directed to the destination address is received from the IoT device, encrypting the first packet by the programmable switch.

### Claim 15 (depends on 14)

The programmable switch of claim 14, wherein the actions further comprise:
receiving, from the IoT device, a decryption request for a packet directed to a source address; and
based on a determination that a second packet from the source address is received, decrypting the second packet by the programmable switch.

### Claim 16 (depends on 9)

The programmable switch of claim 9, further comprising:
a processing unit configured to generate an asymmetric key that includes the public key and private key of the programmable switch; and
a programmable switch chip configured to perform at least one of asymmetric encryption and asymmetric decryption.

### Claim 17

A computer program product that is tangibly stored on a non-transitory computer-readable medium and contains computer-executable instructions that, when executed, cause a computer to implement a method for encryption and decryption, comprising:
receiving, at a programmable switch, encrypted data directed to an Internet of Things (IoT) device, the encrypted data being encrypted using a public key of the programmable switch;
decrypting the encrypted data using a private key of the programmable switch to obtain decrypted data; and
sending the decrypted data from the programmable switch to the IoT device.

### Claim 18 (depends on 17)

The computer program product of claim 17, wherein the encrypted data is received from user equipment, and the decrypted data contains an execution command, the method further comprising:
receiving an execution result of the execution command from the IoT device;
encrypting the execution result using a public key of the user equipment; and
sending the encrypted execution result to the user equipment.

### Claim 19 (depends on 17)

The computer program product of claim 17, further comprising:
authenticating the IoT device online by implementing an asymmetric encryption function for the IoT device in the programmable switch.

### Claim 20 (depends on 19)

The computer program product of claim 19, wherein authenticating the IoT device online comprises:
receiving a device identifier of the IoT device and a token for authentication from the IoT device;
encrypting the device identifier and the token using a public key of an authentication server;
sending the device identifier and the token that are encrypted to the authentication server; and
receiving an authentication response message from the authentication server, the authentication response message being encrypted using the public key of the programmable switch.
