US 12,149,619 B2
Processor with an elliptic curve cryptographic algorithm and a data processing method thereof
Yanting Li, Beijing (CN); Zhenhua Huang, Beijing (CN); Yingbing Guan, Shanghai (CN); Yun Shen, Beijing (CN); Lei Yi, Xi'an (CN); and Shuang Yang, Shanghai (CN)
Assigned to SHANGHAI ZHAOXIN SEMICONDUCTOR CO., LTD., Shanghai (CN)
Filed by Shanghai Zhaoxin Semiconductor Co., Ltd., Shanghai (CN)
Filed on Jun. 10, 2022, as Appl. No. 17/837,582.
Claims priority of application No. 202111020355.3 (CN), filed on Sep. 1, 2021.
Prior Publication US 2023/0078830 A1, Mar. 16, 2023
Int. Cl. H04L 9/00 (2022.01); G06F 9/22 (2006.01); G06F 9/30 (2018.01); H04L 9/30 (2006.01)
CPC H04L 9/3066 (2013.01) [G06F 9/223 (2013.01); G06F 9/30101 (2013.01)] 19 Claims
OG exemplary drawing
 
1. A processor with an elliptic curve cryptographic algorithm, comprising:
a first register, storing a private key pointer, pointing to a private key; and
a third register;
wherein:
in response to a single elliptic curve cryptographic instruction of an instruction set architecture, the processor reads a ciphertext input from a first storage space within a system memory, performing a decryption procedure using the elliptic curve cryptographic algorithm on the ciphertext input based on the private key obtained by referring to the first register to decrypt the ciphertext input and generate a plaintext output, and programming the plaintext output into a second storage space within the system memory;
the third register stores an intermediate variable pointer that points to a third storage space within the system memory;
an intermediate variable generated by the processor while performing the decryption procedure on the ciphertext input is stored in the third storage space as indicated by the intermediate variable pointer obtained from the third register; and
prior to performing the decryption procedure on the ciphertext input, the processor stores a starting address of the third storage space in the third register, and resets all bytes in the third storage space to zero.