US 12,475,266 B2
Key management method, data protection method, system, chip, and computer device
Xiangjun Xu, Sichuan (CN)
Assigned to CHENGDU HAIGUANG INTEGRATED CIRCUIT DESIGN CO., LTD., (CN)
Appl. No. 18/695,172
Filed by CHENGDU HAIGUANG INTEGRATED CIRCUIT DESIGN CO., LTD., Sichuan (CN)
PCT Filed Sep. 1, 2023, PCT No. PCT/CN2023/116419
§ 371(c)(1), (2) Date Mar. 25, 2024,
PCT Pub. No. WO2024/119918, PCT Pub. Date Jun. 13, 2024.
Claims priority of application No. 202211566306.4 (CN), filed on Dec. 7, 2022.
Prior Publication US 2025/0124176 A1, Apr. 17, 2025
Int. Cl. G06F 21/79 (2013.01); G06F 21/72 (2013.01); G06F 21/78 (2013.01)
CPC G06F 21/79 (2013.01) [G06F 21/72 (2013.01)] 17 Claims
OG exemplary drawing
 
1. A key management method, applied to a key manager, the method comprising:
determining a plurality of memory regions that need to be encrypted and protected in a memory and a memory protocol of each memory region of the plurality of memory regions, wherein the plurality of memory regions comprise at least one Compute Express Link (CXL) memory region based on a CXL memory protocol;
determining, for a CXL memory region of the at least one CXL memory region, a device identification of the CXL memory region and an address information of the CXL memory region;
generating protection key generation information of the CXL memory region based on to the device identification and the address information of the CXL memory region;
generating a protection key of the CXL memory region based on a predetermined system root key and the protection key generation information of the CXL memory region, wherein generating the protection key of the CXL memory region comprises processing a result of splicing the system root key and the protection key generation information of the CXL memory region by a hash algorithm,
wherein the protection key of the CXL memory region is used for encrypting and protecting a data key of the CXL memory region, and the data key of the CXL memory region is used for encrypting and decrypting data of the CXL memory region.