Method for encryption and decryption, programmable switch and computer program product

Fecha de publicación: 03/08/2021
Fuente: Wipo "IOT"
The embodiment of the invention relates to a method for encryption and decryption, a programmable switch and a computer program product. In one embodiment, a method includes receiving, at a programmable switch, encrypted data to be addressed to certain Internet of Things (IoT) equipment, wherein the encrypted data is encrypted using a public key of the programmable switch. The method further includes the steps: decrypting the encrypted data using a private key of the programmable switch to obtain decrypted data, and then transmitting the decrypted data from the programmable switch to the IoT equipment. According to the embodiment of the invention, the encryption and decryption operation of the IoT equipment can be transferred to the programmable switch for processing, and the programmable switch is used for helping the IoT equipment to execute encryption and decryption. Because the programmable switch has stronger processing capability than the IoT equipment, the embodiment of the invention can accelerate the execution speed of asymmetric encryption and decryption and reduce the delay. In addition, for the IoT equipment which does not support the asymmetric encryption and decryption function, the programmable switch can also ensure the secure communication of the IoT equipment.