CN-116707864-B - Information processing system, chip, method and equipment
Abstract
The invention provides an information processing system, a chip, a method and equipment. The system comprises an encryption module and a decryption module, wherein the encryption module is used for determining a key for encrypting input data from a group of keys according to a result of performing modulo operation on a timestamp corresponding to the current time and the key number of the group of keys, encrypting the input data through the key and outputting the encrypted input data, and the decryption module is used for acquiring data to be decrypted containing a key identifier from the received data, and outputting the decrypted data after the key corresponding to the key identifier is matched with the group of keys synchronized by the encryption module. The scheme disclosed by the invention provides a process of dynamically selecting different keys from a group of keys according to the time stamp to encrypt and decrypt data, and the security of the data in the information processing process can be improved through dynamically selecting the keys from the group of keys to encrypt and decrypt.
Inventors
- WANG CHANGHONG
- LI TUO
- ZOU XIAOFENG
- LIU KAI
- LIU GANG
- MAN HONGTAO
Assignees
- 山东云海国创云计算装备产业创新中心有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20230427
Claims (7)
- 1. A system for information processing, comprising: an encryption module for determining a key for encrypting input data from a group of keys according to the result of modulo operation of a time stamp corresponding to the current time and the key number of the group of keys, encrypting the input data by the key and outputting the encrypted input data, and The decryption module is used for acquiring data to be decrypted containing a key identifier from the received data, and outputting the data to be decrypted after the data to be decrypted are decrypted by matching a key corresponding to the key identifier from the group of keys synchronized by the encryption module; the encryption module includes: The time stamp generating unit is further used for generating a corresponding encryption time stamp according to the time interval of the encryption control signal from the invalid state to the valid state and providing the corresponding encryption time stamp to the first key storage unit in response to the encryption module receiving the encryption request; The key generation unit is used for initializing when the time interval between the generation time of the previous group of keys and the current time exceeds a preset time so as to generate the group of keys; The first key storage unit is used for ordering the group of keys according to the time stamps provided by the time stamp generation unit, obtaining and storing the group of keys marked by the key sequence numbers; the first key storage unit is further used for obtaining a first key sequence number corresponding to a key for encrypting the input data by performing modular operation according to the encryption time stamp and the key number of the group of keys, and matching the key for encrypting the input data from the group of keys marked by the key sequence number according to the first key sequence number.
- 2. The system of claim 1, wherein the encryption module further comprises: and the encryption calculation unit is used for caching the input data, encrypting the input data according to the key provided by the first key storage unit and outputting the encrypted input data.
- 3. The system of claim 1, wherein the decryption module comprises: the encryption data preprocessing unit is used for acquiring data to be decrypted containing a key identifier from the received data, wherein the key identifier contains a second key serial number; And the second key storage unit is used for storing the group of keys synchronized by the encryption module and determining a key for decrypting the data to be decrypted from the group of keys based on the second key serial number provided by the encrypted data preprocessing unit.
- 4. The system of claim 3, wherein the decryption module further comprises: and the decryption calculation unit is used for outputting the data to be decrypted based on the data to be decrypted provided by the encrypted data preprocessing unit and the key for decrypting the data to be decrypted provided by the second key storage unit after decryption.
- 5. An information processing chip, comprising: an encryption circuit for determining a key for encrypting input data from a set of keys based on a result of modulo operation of a time stamp corresponding to a current time and a key number of the set of keys, encrypting the input data by the key and outputting the encrypted input data, and The decryption circuit is used for acquiring data to be decrypted containing a key identifier from the received data, and outputting the data to be decrypted after the key corresponding to the key identifier is matched with the group of keys synchronized by the encryption circuit; the encryption circuit includes: the time stamp generating unit is further used for generating corresponding encryption time stamps according to the time interval of the encryption control signal converted from the invalid state to the valid state and providing the corresponding encryption time stamps to the first key storage unit in response to the encryption circuit receiving the encryption request; The key generation unit is used for initializing when the time interval between the generation time of the previous group of keys and the current time exceeds a preset time so as to generate the group of keys; The first key storage unit is used for ordering the group of keys according to the time stamps provided by the time stamp generation unit, obtaining and storing the group of keys marked by the key sequence numbers; the first key storage unit is further configured to: Performing modulo operation according to the encryption time stamp and the key number of the group of keys to obtain a first key sequence number corresponding to the key for encrypting the input data; And matching a key for encrypting the input data from the group of keys marked by the key sequence numbers according to the first key sequence number.
- 6. A method of information processing, comprising: determining a key for encrypting input data from a group of keys according to the result of performing modular operation on a timestamp corresponding to the current time and the key number of the group of keys by an encryption module, encrypting the input data by the key and outputting the encrypted input data; obtaining data to be decrypted containing a key identifier from the received data through a decryption module, matching a key corresponding to the key identifier from the group of keys synchronized by the encryption module, decrypting the data to be decrypted, and outputting the decrypted data; Wherein the encryption module is further configured to: The time stamp generating unit is further used for generating corresponding encryption time stamps according to the time interval of the encryption control signal converted from the invalid state to the valid state and providing the corresponding encryption time stamps to the first key storage unit in response to the encryption request received by the encryption module; The key generation unit of the encryption module is used for initializing when the time interval between the generation time of the previous group of keys and the current time exceeds the preset time so as to generate the group of keys; Sorting the group of keys according to the time stamps provided by the time stamp generating unit through a first key storage unit to obtain and store the group of keys marked by key serial numbers; the first key storage unit is further used for obtaining a first key sequence number corresponding to a key for encrypting the input data by performing modular operation according to the encryption time stamp and the key number of the group of keys, and matching the key for encrypting the input data from the group of keys marked by the key sequence number according to the first key sequence number.
- 7. An apparatus for information processing, comprising: at least one processor, and A memory storing computer instructions executable on said processor, said memory executing said instructions to perform the method of claim 6.
Description
Information processing system, chip, method and equipment Technical Field The present invention relates to the field of computers, and in particular, to a system, a chip, a method, and an apparatus for information processing. Background In the process of information processing, encryption and decryption are needed to be carried out on data information between systems so as to ensure the security of signal data in the communication process. In the related field of information processing, a single non-selectable key is generally used for encrypting and decrypting data, so that when the key is damaged externally and cannot be used, the data security between the whole systems is seriously affected, and the data security between the systems is affected. Disclosure of Invention In view of this, the present invention provides a system, a chip, a method and a device for information processing, which solve the problem that in the related field of information processing, a single non-selectable key is generally used to encrypt and decrypt data, and when the key is damaged by the outside and cannot be used, the security of the data between the whole systems is seriously affected, and the security of the data between the systems is affected. Based on the above object, one aspect of the embodiment of the present invention provides an information processing system, which includes an encryption module configured to determine a key for encrypting input data from a set of keys according to a result of performing a modulo operation on a timestamp corresponding to a current time and a key number of the set of keys, encrypt the input data with the key, and output the encrypted input data, and a decryption module configured to obtain data to be decrypted including a key identifier from received data, and output the decrypted data by matching a key corresponding to the key identifier from the set of keys synchronized by the encryption module. In some embodiments, the encryption module comprises a timestamp generation unit for generating a timestamp with a preset bit number according to time so as to provide the timestamp corresponding to the current time. In some embodiments, the encryption module further comprises a key generation unit, a first key storage unit and a first key storage unit, wherein the key generation unit is used for initializing when the time interval between the generation time of the previous group of keys and the current time exceeds a preset time to generate the group of keys, and the first key storage unit is used for sorting the group of keys according to the time stamps provided by the time stamp generation unit, obtaining and storing the group of keys marked by key serial numbers. In some embodiments, the timestamp generation unit is further configured to generate and provide a corresponding encrypted timestamp to the first key storage unit according to a time interval at which the encryption control signal transitions from the inactive state to the active state in response to the encryption module receiving the encryption request. In some embodiments, the first key storage unit is further configured to perform a modulo operation according to the encryption timestamp and a key number of the set of keys to obtain a first key sequence number corresponding to a key for encrypting the input data, and match a key for encrypting the input data from the set of keys marked with the key sequence number according to the first key sequence number. In some embodiments, the encryption module further includes an encryption calculation unit, configured to cache the input data, and encrypt and output the input data according to the key provided by the first key storage unit. In some embodiments, the decryption module comprises an encrypted data preprocessing unit, a decryption unit and a storage unit, wherein the encrypted data preprocessing unit is used for acquiring data to be decrypted containing a key identifier from received data, and the key identifier contains a second key serial number; And the second key storage unit is used for storing the group of keys synchronized by the encryption module and determining a key for decrypting the data to be decrypted from the group of keys based on the second key serial number provided by the encrypted data preprocessing unit. In some embodiments, the decryption module further comprises a decryption calculation unit, configured to decrypt and output the key for decrypting the data to be decrypted based on the data to be decrypted provided by the encrypted data preprocessing unit and the key for decrypting the data to be decrypted provided by the second key storage unit. The invention also provides an information processing chip, which comprises an encryption circuit and a decryption circuit, wherein the encryption circuit is used for determining a key for encrypting input data from a group of keys according to the result of performing modulo operation on a timestamp corresp