US 11,775,692 B2
Method and system for encrypting data using a kernel
Yong Liu, Sunnyvale, CA (US); and Yueqiang Cheng, Sunnyvale, CA (US)
Assigned to BAIDU USA LLC, Sunnyvale, CA (US); and KUNLUNXIN TECHNOLOGY (BEIJING) COMPANY LIMITED, Beijing (CN)
Filed by Baidu USA LLC, Sunnyvale, CA (US); and KUNLUNXIN TECHNOLOGY (BEIJING) COMPANY LIMITED, Beijing (CN)
Filed on Oct. 10, 2019, as Appl. No. 16/598,428.
Prior Publication US 2021/0110066 A1, Apr. 15, 2021
Int. Cl. G06F 21/74 (2013.01); H04L 9/08 (2006.01); G06F 21/53 (2013.01); G06F 21/72 (2013.01)
CPC G06F 21/74 (2013.01) [G06F 21/53 (2013.01); G06F 21/72 (2013.01); H04L 9/0838 (2013.01)] 20 Claims
OG exemplary drawing
 
1. A computer-implemented method of a data processing (DP) accelerator encrypting or decrypting input data, the method comprising:
receiving, from a host device, a command, the input data, a plurality of keys, and a kernel, wherein the kernel is an encryption or a decryption kernel provided to the DP accelerator, wherein a functionality of the DP accelerator is determined by a functionality type of the encryption kernel or the decryption kernel, wherein the functionality type of the kernel is not stored within a memory of the DP accelerator, wherein the plurality of keys include a symmetric key and an asymmetric key, wherein the symmetric key is used for communication sessions between the host device and the DP accelerator over a communication channel, and wherein the asymmetric key is used for encrypting and decrypting data and digital signatures;
in response to the DP accelerator receiving the input data:
extracting a watermark from a watermark-enabled artificial intelligence (AI) model by applying the watermark-enabled AI model to the input data to produce the watermark;
in response to the DP accelerator receiving the command:
encrypting by the DP accelerator the input data using the encryption kernel, in response to the command being “encrypt”, and
decrypting the input data using the decryption kernel in response to the command being “decrypt”; and
transmitting the watermark, and the encrypted, or decrypted, input data to the host device.