Parallel computing encryption and decryption system, transmitting device and receiving device

By introducing a five-layer parallel encryptor and decryptor into the encryption and decryption system and switching between internal or external keys, the problem that existing encryption standards are easily cracked is solved and the security of data transmission is improved.

CN114430319BActive Publication Date: 2024-10-29ジャン州立達信光電子科技有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110995704.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-27
Publication Date
2024-10-29
Estimated Expiration
2041-08-27

AI Technical Summary

Technical Problem

With the improvement of hardware devices and artificial intelligence computing capabilities, existing encryption standards such as AES are easily cracked and pose security threats. Encryption technology needs to be improved to deal with brute force attacks and artificial intelligence cracking risks.

Method used

A parallel computing encryption and decryption system is designed, including the sending end and receiving end devices. It uses a five-layer parallel encryptor and decryptor. It can switch to use internal keys or external keys for encryption and decryption as needed, and is generated through multi-layer logic operations. and decrypt operands to ensure data security.

Benefits of technology

It realizes the use of keys that switch encryption methods as needed, and realizes different encryption and decryption methods through hardware, which improves the security of data transmission and avoids the risk that existing encryption standards are easily cracked.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114430319B_ABST
    Figure CN114430319B_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of encryption and decryption, and provides a parallel computing encryption and decryption system, including a sending end device and a receiving end device, the sending end device including a data generation module and a data encryption module, the data encryption module obtains at least one data packet from the data generation module, encrypts the data packet via a five-layer parallel encryptor, and then outputs an encrypted sequence. The receiving end device includes a data target module and a data decryption module. The data decryption module obtains the encrypted sequence from the sending end device, decrypts the encrypted sequence via a five-layer parallel decryptor, and then outputs the restored data packet to the data target module. The present application can switch the key used to an internal key or an external key according to the required encryption method, and can implement different encryption methods through a set of hardware.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of encryption and decryption, and provides a parallel computing encryption and decryption system, a transmitting end device and a receiving end device, and more particularly, refers to a parallel computing encryption and decryption system, a transmitting end device and a receiving end device capable of switching internal / external encryption keys. Background Art

[0002] Advanced Encryption Standard (AES), also known as Rijndael encryption in cryptography, is a block encryption standard adopted by the U.S. federal government. This standard is used to replace the original DES, has been analyzed by many parties and is widely used around the world. As of 2006, the only successful attacks against AES are side-channel attacks or social engineering attacks. The National Security Agency of the United States audited all the finalists participating in the AES competition and believed that they all met the security needs of the U.S. government for transmitting non-confidential files.

[0003] The Advanced Encryption Standard has been cracked many times. The 128-bit key version of AES has 10 encryption cycles, the 192-bit key version has 12 encryption cycles, and the 256-bit key version has 14 encryption cycles. As of 2006, the most famous attacks were against the 128-bit key version of AES with 7 encryption cycles, the 192-bit key version with 8 encryption cycles, and the 256-bit key version with 9 encryption cycles. As hardware becomes more efficient, it is estimated that the day when AES can be completely cracked by brute force attacks is not far away.

[0004] In addition, with the continuous upgrading of hardware, artificial intelligence has now reached the stage of commercialization. Through the processing performance of hardware and the powerful computing power of artificial intelligence, the encryption standards widely used today are likely to be cracked by artificial intelligence through a large number of calculations. For the above reasons, it is necessary to improve the existing encryption technology. Summary of the invention

[0005] In order to solve the above problems, the present application provides a parallel computing encryption and decryption system, which includes a sending end device and a receiving end device. The sending end device includes a data generation module and a data encryption module. The data encryption module includes an encryption key setter and a five-layer parallel encryptor, the encryption key setter includes an internal key encryption mode and an external key encryption mode, the encryption key setter is used to select the internal key encryption mode or the external key encryption mode, the data encryption module obtains at least one data packet from the data generation module, encrypts the data packet through the internal key encryption mode or the external key encryption mode selected by the five-layer parallel encryptor, and then outputs an encrypted sequence. The receiving end device includes a data target module and a data decryption module. The data decryption module includes a decryption key setter and a five-layer parallel decryptor. The decryption key setter includes an internal key decryption mode and an external key decryption mode. The decryption key setter selects the internal key decryption mode or the external key decryption mode according to a preset mode or a mode selected by the encryption key setter. The data decryption module obtains the encryption sequence from the sending end device, decrypts the encryption sequence through the internal key decryption mode or the external key decryption mode selected by the five-layer parallel decryptor, and then outputs the restored data packet to the data target module.

[0006] The present application further provides a transmitting end device, which includes a data generation module and a data encryption module. The data encryption module includes an encryption key setter and a five-layer parallel encryptor, the encryption key setter includes an internal key encryption mode and an external key encryption mode, the encryption key setter is used to select the internal key encryption mode or the external key encryption mode, the data encryption module obtains at least one data packet from the data generation module, encrypts the data packet through the internal key encryption mode or the external key encryption mode selected by the five-layer parallel encryptor, and then outputs an encryption sequence.

[0007] The present application further provides a receiving end device, which includes a data target module and a data decryption module. The data decryption module includes a decryption key setter and a five-layer parallel decryptor, the decryption key setter includes an internal key decryption mode and an external key decryption mode, the decryption key setter selects the internal key decryption mode or the external key decryption mode according to a preset or a mode selected by the encryption key setter, the data decryption module obtains an encryption sequence from the sending end device, decrypts the encryption sequence through the internal key decryption mode or the external key decryption mode selected by the five-layer parallel decryptor, and then outputs the restored data packet to the data target module.

[0008] It can be seen that compared with the prior art, the present application can switch the key used to be an internal key or an external key according to the required encryption method, and can implement different encryption methods through a set of hardware. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0010] Figure 1 A schematic diagram of the modules of the parallel computing encryption and decryption system provided in an embodiment of the present application.

[0011] Figure 2 A module schematic diagram of a data encryption module provided in an embodiment of the present application.

[0012] Figure 3 A module schematic diagram of an external encryption key input device provided in an embodiment of the present application.

[0013] Figure 4 A module diagram of another embodiment of the external encryption key input device provided in an embodiment of the present application.

[0014] Figure 5 A schematic diagram of the logical operations of a five-layer encryptor provided in an embodiment of the present application.

[0015] Figure 6 A module schematic diagram of a data decryption module provided in an embodiment of the present application.

[0016] Figure 7 A schematic diagram of a module of an external decryption key input device provided in an embodiment of the present application.

[0017] Figure 8 A module diagram of another embodiment of the external decryption key input device provided in an embodiment of the present application.

[0018] Fig. 9 A schematic diagram of the logical operation of a five-layer decryptor provided in an embodiment of the present application.

[0019] Fig.10 A schematic diagram of the process flow of the parallel computing encryption and decryption system provided in an embodiment of the present application.

[0020] Fig.11 A schematic diagram of the encryption process of a five-layer parallel encryptor provided in an embodiment of the present application.

[0021] Fig.12A schematic diagram of the decryption process of a five-layer parallel decryptor provided in an embodiment of the present application.

[0022] 100: Parallel operation encryption and decryption system; 10: Transmitter device; 12: Data generation module; 14: Data encryption module; 142: Encryption key setter; 144: Five-layer parallel encryptor; 1441: Eight-bit encryption operand generator; 1441L: Encryption linear feedback shift register; 1441G: Generate encryption logic gate; 1441E: Encryption operand; 1442: Sixteen-bit encryption operand generator; 1442L: Encryption linear feedback shift register; 1442G: Generate encryption logic gate; 1442E: Encryption operand; 1443: Thirty-two-bit encryption operand generator; 1443L: Encryption linear feedback shift register; 1443G: Generate encryption logic gate; 1443E: Encryption operand 1444: 64-bit encryption operand generator; 1444L: encryption linear feedback shift register; 1444G: encryption logic gate generator; 1444E: encryption operand; 1445: 128-bit encryption operand generator; 1445L: encryption linear feedback shift register; 1445G: encryption logic gate generator; 1445E: encryption operand; 1446: external encryption key input device; 14462: encryption key generator; 14464: encryption controller; 1447: internal encryption key storage; G1: first logic operator; G12: encryption logic operation module; G14: data encryption logic gate; 20: receiving end device; 22: data target module; 24: data decryption module; 242: decryption key setter; 244: five-layer parallel decryptor; 2441: eight-bit decryption operand generator; 2441L: decryption linear feedback shift register; 2441G: generate decryption logic gate; 2441E: decryption operand; 2442: sixteen-bit decryption operand generator; 2442L: decryption linear feedback shift register; 2442G: generate decryption logic gate; 2442E: decryption operand; 2443: thirty-two-bit decryption operand generator; 2443L: decryption linear feedback shift register; 2443G: generate decryption logic gate; 2443E: decryption operand; 2444: sixty-four-bit decryption operand generator; 2444L: decryption linear feedback shift register; 2 444G: Generate decryption logic gate; 2444E: Decryption operand; 2445: One hundred and twenty-eight-bit decryption operand generator; 2445L: Decryption linear feedback shift register; 2445G: Generate decryption logic gate; 2445E: Decryption operand; 2446: External decryption key input; 24462: Decryption key generator; 24464: Decryption controller; 2447: Internal decryption key storage; 30: Encryption input controller; 32: Encryption input; 34: Encryption controller; 40: Decryption input controller; 42: Decryption input; 44: Decryption controller; G2: Second logic operator; G22: Decryption logic operation module; G24: Data decryption logic gate; ES: Encryption sequence. DETAILED DESCRIPTION

[0023] The detailed description and technical content of this application are described below with reference to the accompanying drawings. Figure 1 , is a module diagram of the parallel computing encryption and decryption system of this application, as shown in the figure:

[0024] This embodiment mainly discloses a parallel computing encryption and decryption system 100, which is used for encrypting and decrypting the data transmitted by the devices when multiple devices transmit data to each other. The device that generates or receives data can be a computer, a server, a mobile device, an Internet of Things device (for example, a monitor, a television, a cloud hard drive, a lamp, etc.), a large number of manufacturing equipment or machines, etc., which are not limited in this application. In this application, the device is defined as a sending device 10 as a data transmission source and a receiving device 20 corresponding to the sending device 10 for receiving the data of the sending device 10 based on the signal transmission and reception. It should be noted that this application is not limited to the sending device 10 only performing the data encryption function and the receiving device 20 only performing the data decryption function. Specifically, the sending device 10 and the receiving device 20 described herein generally have encryption and decryption functions at the same time to ensure that the data is encrypted or decrypted with each other's keys during the two-way transmission process, which must be explained in advance.

[0025] The data can be transmitted between the transmitting device 10 and the receiving device 20 via a wired or wireless network.

[0026] In one preferred embodiment, the transmitting device 10 and the receiving device 20 can transmit data through the Internet, a local area network, or between any wired or wireless communication ports, which is not limited in this application. In order to complete the functions of data encryption, decryption and transmission, the transmitting device 10 and the receiving device 20 should at least include a processor, a storage unit, and a communication unit to cooperate with each other to complete the corresponding functions, such as a physical line network card, a wireless network card, a Bluetooth module, a Zigbee module, etc. The transmission method and transmission interface of the signal are not within the scope of the application.

[0027] In one embodiment, the combination of modules, devices or units described in the parallel computing encryption and decryption system 100 of the present application and the corresponding functions can be executed by a single chip or a combination of multiple chips, and the number of chip configurations is not within the scope of the present application. In addition, the chip can be, but is not limited to, a processor, a central processing unit (CPU), a microprocessor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a programmable logic device (PLD), and other similar devices or combinations of these devices that can process, convert or have special purposes for information or signals, which are not limited in the present application.

[0028] In one embodiment, the transmitting device 10 mainly includes a data generation module 12 and a data encryption module 14. The data generation module 12 may be, for example, a cache memory, a dynamic random access memory (DRAM), or a persistent memory for storing and managing data to be transmitted and encrypted. The data encryption module 14 obtains at least one data packet from the data generation module 12. The data encryption module 14 may be a processor or a microprocessor for performing encryption calculation processing, which is not limited in the present application. Finally, the data encryption module 14 outputs the encrypted data packet to the receiving device 20. The encrypted data packet output by the data encryption module 14 is defined as an encryption sequence.

[0029] In one embodiment, please refer to Figure 2, the data encryption module 14 includes an encryption key setter 142 and a five-layer parallel encryptor 144. The input end of the five-layer parallel encryptor 144 is connected to the output end of the encryption key setter 142. The encryption key setter 142 includes an internal key encryption mode and an external key encryption mode, and the encryption key setter 142 is used to select the internal key encryption mode or the external key encryption mode according to the user or the default value. The five-layer parallel encryptor 144 includes an eight-bit encryption operand generator 1441, a sixteen-bit encryption operand generator 1442, a thirty-two-bit encryption operand generator 1443, a sixty-four-bit encryption operand generator 1444, a one hundred and twenty-eight-bit encryption operand generator 1445, an external encryption key input 1446, an internal encryption key storage 1447 and a first logic operator G1. (It is defined here that the upper level of the eight-bit encryption operand generator 1441, the sixteen-bit encryption operand generator 1442, the thirty-two-bit encryption operand generator 1443, the sixty-four-bit encryption operand generator 1444, and the one hundred and twenty-eight-bit encryption operand generator 1445 are collectively referred to as the encryption operand generator). Among them, the input end of the external encryption key input 1446 is connected to the output end of the encryption key setter 142, and the output end of the external encryption key input 1446 is connected to the input end of the encryption operand generator. The input end of the internal encryption key storage 1447 is connected to the other output end of the encryption key setter 142, and the output end of the internal encryption key storage 1447 is respectively connected to the other input end of the encryption operand generator. The encryption key setter 142 is used to start the external encryption key input 1446 according to the external key encryption mode and output the external encryption key, and start the internal encryption key storage 1447 according to the internal key encryption mode and output the internal encryption key. Among them, the eight-bit encryption operand generator 1441, the sixteen-bit encryption operand generator 1442, the thirty-two-bit encryption operand generator 1443, the sixty-four-bit encryption operand generator 1444, and the one hundred and twenty-eight-bit encryption operand generator 1445 respectively generate encryption operands according to the external encryption key generated by the external encryption key inputter 1446 or the internal encryption key stored in the internal encryption key storage 1447. The encryption operands and the data packets are operated via the first logic operator G1 to obtain the encryption sequence ES.

[0030] In one embodiment, see Figure 3, the external encryption key input device 1446 includes an encryption key generator 14462 and an encryption controller 14464. The encryption key generator 14462 can be (but not limited to) a key generator (Key Generator), a random number generator (Random Number Generator, RNG) or a pseudo-random number generator (Pseudorandom Number Generator, PRNG) and other devices that can generate various sequences, which are not limited in this application. The encryption key generator 14462 generates an external encryption key according to the external key encryption mode. The encryption controller 14464 can be (but not limited to) a controller (Controller) or other devices that can control signal output, which are not limited in this application. The encryption controller 14464 outputs the external encryption key to the encryption operand generator according to the external key encryption mode.

[0031] In another embodiment, see Figure 4 , the external encryption key input device 1446 is an encryption input controller 30, and the encryption input controller includes an encryption input device 32 and an encryption controller 34. The encryption input device 32 can be (but not limited to) an input device (Input Device), a keyboard (Keyboard), a computer (Computer) or other devices that can be used to provide data and control signals, which are not limited in this application. The encryption input device 32 is used to input an external encryption key. The encryption controller 34 can be (but not limited to) a controller (Controller) or other devices that can control signal output. The encryption controller 34 outputs the external encryption key to the encryption operand generator according to the input external encryption key and the external key encryption mode.

[0032] In one embodiment, please refer to Figure 2 The internal encryption key storage 1447 may be (but not limited to) a persistent memory or other device that can be used to store and manage data, which is not limited in this application. The input end of the internal encryption key storage 1447 is connected to the output end of the encryption key setter 142, and the output end of the internal encryption key storage 1447 is connected to the encryption operand generator. The internal encryption key storage 1447 outputs the internal encryption key of the encryption operand generator according to the internal encryption key mode.

[0033] In one embodiment, see Figure 5The eight-bit encryption operand generator 1441 includes an encryption linear feedback shift register 1441L (stores an eight-bit encryption key a[1] to a[8], a[n] is the nth bit of the eight-bit encryption key) and generates an encryption logic gate 1441G. The sixteen-bit encryption operand generator 1442 includes an encryption linear feedback shift register 1442L (stores a sixteen-bit encryption key b[1] to b

[16] , b[n] is the nth bit of the sixteen-bit encryption key) and generates an encryption logic gate 1442G. The thirty-two-bit encryption operand generator 1443 includes an encryption linear feedback shift register 1443L (stores a thirty-two-bit encryption key c[1] to c

[32] , c[n] is the nth bit of the thirty-two-bit encryption key) and generates an encryption logic gate 1443G, a sixty-four-bit encryption operand generator 1444 includes an encryption linear feedback shift register 1444L (storing a sixty-four-bit encryption key d[1] to d

[64] , d[n] being the nth bit of the sixty-four-bit encryption key) and a generated encryption logic gate 1444G, a one hundred and twenty-eight-bit encryption operand generator 1445 includes an encryption linear feedback shift register 1445L (storing a one hundred and twenty-eight-bit encryption key e[1] to e

[128] , e[n] being the nth bit of the one hundred and twenty-eight-bit encryption key) and a generated encryption logic gate 1445G, wherein the eight-bit encryption key, the sixteen-bit encryption key, the thirty-two-bit encryption key, the sixty-four-bit encryption key and the one hundred and twenty-eight-bit encryption key can be internal encryption keys or external encryption keys. The encryption linear feedback shift register 1441L performs a logic operation on multiple encryption bit taps of an eight-bit encryption key through a generated encryption logic gate 1441G to obtain an encryption operand 1441E; the encryption linear feedback shift register 1442L performs a logic operation on multiple encryption bit taps of a sixteen-bit encryption key through a generated encryption logic gate 1442G to obtain an encryption operand 1442E; the encryption linear feedback shift register 1443L performs a logic operation on multiple encryption bit taps of a thirty-two-bit encryption key through a generated encryption logic gate 1443G to obtain an encryption operand 1443E. The encryption linear feedback shift register 1444L performs a logic operation on multiple encryption bit taps of a sixty-four-bit encryption key through a generated encryption logic gate 1444G to obtain an encryption operand 1444E; the encryption linear feedback shift register 1445L performs a logic operation on multiple encryption bit taps of a one hundred and twenty-eight-bit encryption key through a generated encryption logic gate 1445G to obtain an encryption operand 1445E.

[0034] In one embodiment, the generated encryption logic gates 1441G, 1442G, 1443G, 1444G, 1445G and logic operations all use exclusive OR gates (XOR) as operations. In other embodiments, the generated encryption logic gates 1441G, 1442G, 1443G, 1444G, 1445G and logic operations can be implemented using AND gates, OR gates, other logic gates or a combination of multiple logic gates, which are not limited in this application.

[0035] In one embodiment, the number of bits of the encryption bit tap is two. In other embodiments, the number of the encryption bit tap may be an even number.

[0036] In one embodiment, please refer to Figure 2The first logic operator G1 includes an encryption logic operation module G12 and a data encryption logic gate G14. The input end of the encryption logic operation module G12 is connected to the output end of the encryption operand generator. The encryption logic operation module G12 receives the encryption operands 1441E, 1442E, 1443E, 1444E, and 1445E and calculates to obtain a parallel encryption operand. The encryption logic operation module G12 includes a plurality of logic gates. In one embodiment, the encryption logic operation module G12 includes a first encryption logic gate, a second encryption logic gate, a third encryption logic gate, and a fourth encryption logic gate (not shown). The output end of the eight-bit encryption operand generator 1441 and the output end of the sixteen-bit encryption operand generator 1442 are connected to the input end of the first encryption logic gate, the output end of the first encryption logic gate and the output end of the thirty-two-bit encryption operand generator 1443 are connected to the input end of the second encryption logic gate, the output end of the second encryption logic gate and the output end of the sixty-four-bit encryption operand generator 1444 are connected to the input end of the third encryption logic gate, the output end of the third encryption logic gate and the output end of the one hundred and twenty-eight-bit encryption operand generator 1445 are connected to the input end of the fourth encryption logic gate, and the output end of the fourth encryption logic gate is connected to the data encryption logic gate G14. The arrangement and combination of the first encryption logic gate, the second encryption logic gate, the third encryption logic gate, and the fourth encryption logic gate in the encryption logic operation module G12 and their number are not within the scope of the present application. The input end of the data encryption logic gate G14 is connected to the output end of the encryption logic operation module G12 to receive the parallel encryption operand, and the other input end of the data encryption logic gate G14 is connected to the output end of the data generation module 12 to receive the data packet. The data encryption logic gate G14 is used to encrypt the data packet through the parallel encryption operand and output the encryption sequence ES. In one embodiment, the first encryption logic gate, the second encryption logic gate, the third encryption logic gate, the fourth encryption logic gate and the data encryption logic gate G14 all use exclusive or gates (Exclusive Or, XOR) as operations.

[0037] In other embodiments, the first logic gate, the second logic gate, the third logic gate, the fourth logic gate and the data encryption logic gate G14 can be implemented using AND gates, OR gates, other logic gates or a combination of multiple logic gates, which is not limited in the present application.

[0038] In one embodiment, please refer to Figure 1, the receiving end device 20 includes a data target module 22 and a data decryption module 24. The data target module 22 can also be a cache memory, a dynamic random access memory (DRAM), or a persistent memory for storing and managing the received data. The data decryption module 24 can be a processor or a microprocessor for performing decryption calculation processing, which is not limited in the present application. Finally, the data decryption module 24 is used to decrypt the received encrypted sequence ES through the internal key decryption mode and the external decryption key encryption mode corresponding to the internal key encryption mode and the external key encryption mode, and then output the restored original data packet to the data target module 22 for storage.

[0039] In one embodiment, please refer to Figure 6, the data decryption module 24 includes a decryption key setter 242 and a five-layer parallel decryptor 244. The input end of the five-layer parallel decryptor 244 is connected to the output end of the decryption key setter 242. The decryption key setter 242 includes an internal key decryption mode and an external key decryption mode, and the decryption key setter 242 is used to select the internal key decryption mode or the external key decryption mode according to a preset mode or a mode selected by the encryption key setter 142. The five-layer parallel decryptor 244 includes an eight-bit decryption operand generator 2441, a sixteen-bit decryption operand generator 2442, a thirty-two-bit decryption operand generator 2443, a sixty-four-bit decryption operand generator 2444, a one hundred and twenty-eight-bit decryption operand generator 2445, an external decryption key input 2446, an internal decryption key storage 2447 and a second logic operator G2. (It is defined here that the upper bits of the eight-bit decryption operand generator 2441, the sixteen-bit decryption operand generator 2442, the thirty-two-bit decryption operand generator 2443, the sixty-four-bit decryption operand generator 2444, and the one hundred and twenty-eight-bit decryption operand generator 2445 are collectively referred to as the decryption operand generator. Among them, the input end of the external decryption key input 2446 is connected to the output end of the decryption key setter 242, and the output end of the external decryption key input 2446 is connected to the input end of the decryption operand generator. The input end of the internal decryption key storage 2447 is connected to the other output end of the decryption key setter 242, and the output end of the internal decryption key storage 2447 is respectively connected to the other input end of the decryption operand generator. The decryption key setter 242 is used to start the external decryption key input 2446 according to the internal key decryption mode and output the external decryption key, and start the internal decryption key storage 2447 according to the internal decryption key mode and output the internal decryption key. Among them, the eight-bit decryption operand generator 2441, the sixteen-bit decryption operand generator 2442, the thirty-two-bit decryption operand generator 2443, the sixty-four-bit decryption operand generator 2444, and the one hundred and twenty-eight-bit decryption operand generator 2445 respectively generate decryption operands based on the external decryption key generated by the external decryption key inputter 2446 or the internal decryption key stored in the internal decryption key storage 2447. The decryption operands and the encryption sequence ES are decrypted via the second logic operator G2 and the restored data packets are output to the data target module 22.

[0040] In one embodiment, see Figure 7, the external decryption key input device 2446 includes a decryption key generator 24462 and a decryption controller 24464. The decryption key generator 24462 can be (but not limited to) a key generator (Key Generator), a random number generator (Random Number Generator, RNG) or a pseudo-random number generator (Pseudorandom Number Generator, PRNG) and other devices that can generate various sequences, which are not limited in this application. The decryption key generator 24462 generates an external decryption key according to the external key decryption mode. The decryption controller 24464 can be (but not limited to) a controller (Controller) or other devices that can control signal output, which are not limited in this application. The decryption controller 24464 outputs the external decryption key to the decryption operand generator according to the external key decryption mode.

[0041] In another embodiment, see Figure 8 , the external decryption key input device 2446 is a decryption input controller 40, and the decryption input controller 40 includes a decryption input device 42 and a decryption controller 44. The decryption input device 42 can be (but not limited to) an input device (Input Device), a keyboard (Keyboard), a computer (Computer) or other devices that can be used to provide data and control signals, which is not limited in this application. The decryption input device 42 is used to input an external decryption key. The decryption controller 44 can be (but not limited to) a controller (Controller) or other devices that can control signal output. The decryption controller 44 outputs the external decryption key to the decryption operand generator according to the external key decryption mode.

[0042] In one embodiment, please refer to Figure 6 The internal decryption key storage 2447 can be (but not limited to) a device that can be used to store and manage data, such as a persistent memory, and is not limited in this application. The input end of the internal decryption key storage 2447 is connected to the output end of the decryption key setter 242, and the output end of the internal decryption key storage 2447 is connected to the decryption operand generator. The internal decryption key storage 2447 outputs the internal encryption key of the decryption operand generator according to the internal decryption key mode.

[0043] In one embodiment, see Fig. 9The eight-bit decryption operand generator 2441 includes a decryption linear feedback shift register 2441L (stores eight-bit decryption keys a[1] to a[8], a[n] is the nth bit of the eight-bit decryption key) and generates a decryption logic gate 2441G. The sixteen-bit decryption operand generator 2442 includes a decryption linear feedback shift register 2442L (stores sixteen-bit decryption keys b[1] to b

[16] , b[n] is the nth bit of the sixteen-bit decryption key) and generates a decryption logic gate 2442G. The thirty-two-bit decryption operand generator 2443 includes a decryption linear feedback shift register 2443L (stores thirty-two-bit decryption keys c[1] to c[3 2], c[n] is the nth bit of the thirty-two-bit decryption key) and generates a decryption logic gate 2443G, a sixty-four-bit decryption operand generator 2444 includes a decryption linear feedback shift register 2444L (storing sixty-four-bit decryption keys d[1] to d

[64] , d[n] is the nth bit of the sixty-four-bit decryption key) and generates a decryption logic gate 2444G, and a one hundred and twenty-eight-bit decryption operand generator 2445 includes a decryption linear feedback shift register 2445L (storing one hundred and twenty-eight-bit decryption keys e[1] to e

[128] , e[n] is the nth bit of the one hundred and twenty-eight-bit decryption key) and generates a decryption logic gate 2445G. Among them, the eight-bit decryption key, the sixteen-bit decryption key, the thirty-two-bit decryption key, the sixty-four-bit decryption key, and the one hundred and twenty-eight-bit decryption key can be an internal decryption key or an external decryption key. In principle, the eight-bit decryption key, the sixteen-bit decryption key, the thirty-two-bit decryption key, the sixty-four-bit decryption key, and the one hundred and twenty-eight-bit decryption key will use the same key as the eight-bit encryption key, the sixteen-bit encryption key, the thirty-two-bit encryption key, the sixty-four-bit encryption key, and the one hundred and twenty-eight-bit encryption key (for example, when the eight-bit encryption key is an internal encryption key, the eight-bit decryption key is also the internal decryption key, and the key data of the internal encryption key and the internal decryption key are the same, so when the eight-bit encryption operand generator 1441 is in the internal key encryption mode, the eight-bit decryption operand generator 2441 is also in the internal key decryption mode). The decryption linear feedback shift register 2441L performs a logical operation on multiple decryption bit taps of an eight-bit decryption key through a generated decryption logic gate 2441G to obtain a decryption operand 2441E; the decryption linear feedback shift register 2442L performs a logical operation on multiple decryption bit taps of a sixteen-bit decryption key through a generated decryption logic gate 2442G to obtain a decryption operand 2442E; the decryption linear feedback shift register 2443L performs a logical operation on multiple decryption bit taps of a thirty-two-bit decryption key through a generated decryption logic gate 2443G to obtain a decryption operand 2443E.The decryption linear feedback shift register 2444L performs a logic operation on the multiple decryption bit taps of the sixty-four-bit decryption key through the generation decryption logic gate 2444G to obtain the decryption operand 2444E; the decryption linear feedback shift register 2445L performs a logic operation on the multiple decryption bit taps of the one hundred and twenty-eight-bit decryption key through the generation decryption logic gate 2445G to obtain the decryption operand 2445E. In principle, the generation decryption logic gates 2441G, 2442G, 2443G, 2444G, and 2445G in the five-layer parallel decryptor 244 must perform an inverse logic operation with the five-layer parallel encryptor 144 (for example, if the five-layer parallel encryptor 144 is AND, then the five-layer parallel decryptor 244 is NAND).

[0044] In one embodiment, the number of the decryption bit taps is two. In other embodiments, the number of the decryption bit taps may be an even number.

[0045] In one embodiment, please refer to Figure 6The second logic operator G2 includes a decryption logic operation module G22 and a data decryption logic gate G24. The input end of the decryption logic operation module G22 is connected to the decryption operand generator, and the decryption logic operation module G22 receives the decryption operand and calculates to obtain a parallel decryption operand. The decryption logic operation module G22 includes a plurality of logic gates. In one embodiment, the decryption logic operation module G22 includes a first decryption logic gate, a second decryption logic gate, a third decryption logic gate, and a fourth decryption logic gate (not shown). The output end of the eight-bit decryption operand generator 2441 and the output end of the sixteen-bit decryption operand generator 2442 are connected to the input end of the first decryption logic gate, the output end of the first decryption logic gate and the output end of the thirty-two-bit decryption operand generator 2443 are connected to the input end of the second decryption logic gate, the output end of the second decryption logic gate and the output end of the sixty-four-bit decryption operand generator 2444 are connected to the input end of the third decryption logic gate, the output end of the third decryption logic gate and the output end of the one hundred and twenty-eight-bit decryption operand generator 2445 are connected to the input end of the fourth decryption logic gate, and the output end of the fourth decryption logic gate is connected to the data decryption logic gate G24. The arrangement and number of the logic gates in the decryption logic operation module G22 are not within the scope of the present application. In principle, the second decryption logic gate, the second decryption logic gate, the third decryption logic gate, the fourth decryption logic gate and the data decryption logic gate G24 must perform reverse logic operations with the five-layer parallel encryptor 144 (for example, if the five-layer parallel encryptor 144 is AND, then the five-layer parallel decryptor 244 is NAND). The input end of the data decryption logic gate G24 is connected to the output end of the decryption logic operation module G22 to receive the parallel decryption operand, and the other input end of the data decryption logic gate G24 receives the encrypted sequence ES. The data decryption logic gate G24 is used to decrypt the encrypted sequence ES through the parallel decryption operand and output the restored data packet to the data target module 22. In other embodiments, the first decryption logic gate, the second decryption logic gate, the third decryption logic gate, the fourth decryption logic gate and the data decryption logic gate G24 can be implemented using AND gates, OR gates, other logic gates or a combination of multiple logic gates to implement operations, which is not limited in this application.

[0046] The above is a description of a specific embodiment of the hardware architecture of the present application. The working procedure of the present application will be further described below. Please refer to Fig.10 , is a flowchart of the parallel computing encryption and decryption system of this application:

[0047] Before data transmission, the encryption key setter 142 and the decryption key setter 242 will set the same external key encryption / decryption mode and internal key encryption / decryption mode according to user settings / automatic configuration. For example: when the encryption key setter 142 selects the eight-bit encryption operand generator 1441 of the five-layer parallel encryptor 144 as the external key encryption mode, the sixteen-bit encryption operand generator 1442 as the external key encryption mode, the thirty-two-bit encryption operand generator 1443 as the external key encryption mode, the sixty-four-bit encryption operand generator 1444 as the internal key encryption mode, and the one hundred and twenty-eight-bit encryption operand generator 1445 as the internal key encryption mode (setting three external key encryption modes and two internal key encryption modes), the decryption key setter 242 selects the eight-bit decryption operand generator 2441 of the five-layer parallel decryptor 244 as the external key decryption mode, the sixteen-bit decryption operand generator 2442 as the external key decryption mode, the thirty-two-bit decryption operand generator 2443 as the external key decryption mode, the sixty-four-bit decryption operand generator 2444 as the internal key decryption mode, and the one hundred and twenty-eight-bit decryption operand generator 2445 as the internal key decryption mode (setting three external key decryption modes and two internal key decryption modes).

[0048] Specifically, the encryption operand generator can be various permutations and combinations of external key encryption mode and internal key encryption mode; the decryption operand generator can be various permutations and combinations of external key decryption mode and internal key decryption mode matched with the encryption operand generator. Specifically, any one or more of the encryption operand generators can be set to external encryption key mode or internal encryption key mode according to the aforementioned permutations and combinations; any one or more of the decryption operand generators can be set to external decryption key mode or internal decryption key mode according to the matching of the encryption operand generator. The aforementioned various permutations, combinations and changes are not within the scope of the present application (for example: when two external key encryption modes and three internal key encryption modes are set, two external key decryption modes and three internal key decryption modes will be set accordingly; when one external key encryption mode and four internal key encryption modes are set accordingly, one external key decryption mode and four internal key decryption modes will be set accordingly; when four external key encryption modes and one internal key encryption mode are set accordingly, four external key decryption modes and one internal key decryption mode will be set accordingly; when five external key encryption modes are set accordingly, five external key decryption modes will be set accordingly; when five internal key encryption modes are set accordingly, five internal key decryption modes will be set accordingly).

[0049] First, in the transmitting device 10, the data packet is output from the data generating module 12 to the data encrypting module 14 (step S201).

[0050] The data packet PK is received by the five-layer parallel encryptor 144 of the data encryption module 14 and is encrypted according to the external key encryption mode or the internal encryption key mode set by the encryption key setter 142 (step S202).

[0051] The encrypted data packet PK is outputted as an encrypted sequence ES by the five-layer parallel encryptor 144 to the receiving device 20 (step S203).

[0052] The encrypted sequence ES is decrypted by the five-layer parallel decryptor 244 in the data decryption module 24 according to the external key decryption mode or internal decryption key mode corresponding to the external key encryption mode or internal encryption key mode set by the decryption key setter 242 (step S204).

[0053] The decrypted encrypted sequence ES is outputted by the five-layer parallel decryptor 244 as a restored data packet to the data target module 22 for storage (step S205).

[0054] The following specifically lists an embodiment, in which the five-layer parallel encryptor 144 has an eight-bit encryption operand generator 1441, a sixteen-bit encryption operand generator 1442, a thirty-two-bit encryption operand generator 1443, a sixty-four-bit encryption operand generator 1444, a one hundred and twenty-eight-bit encryption operand generator 1445, an external encryption key input device 1446, an internal encryption key storage device 1447, and a first logic operator G1 for encryption; the five-layer parallel decryptor 244 has an eight-bit decryption operand generator 2441, a sixteen-bit decryption operand generator 2442, a thirty-two-bit decryption operand generator 2443, a sixty-four-bit decryption operand generator 2444, a one hundred and twenty-eight-bit decryption operand generator 2445, an external decryption key input device 2446, an internal decryption key storage device 2447, and a second logic operator G2 for decryption. , see Fig.11 , Fig.12 , which is a schematic diagram of the encryption process of the five-layer parallel encryptor 144 and the decryption process of the five-layer parallel decryptor 244 of the present application.

[0055] The aforementioned step S202 can be replaced by steps S2021-S2022 according to the encryption level; step S204 can be replaced by steps S2041-S2042 according to the decryption level. The contents of the steps described previously will not be repeated and are explained here first.

[0056] In this embodiment, the logic operation of the five-layer parallel encryptor 144 is XOR; the logic operation described in the five-layer parallel decryptor 244 is XOR (corresponding to the logic operation of the five-layer parallel encryptor 144). In other embodiments, the aforementioned logic operation can be AND, NAND and other logic operations, which are not limited in this application; in this embodiment, the two encryption tap bits selected by the encryption linear feedback shift register and the two decryption tap bits and the number selected by the decryption feedback shift register are only one embodiment, and the encryption / decryption tap bits can be selected and changed in quantity according to actual needs (for example: select the first and seventh bits as encryption / decryption tap bits; select the fourth and thirty-fourth bits as encryption / decryption tap bits; select the second and seventy-ninth bits when there are more bits, etc.), and the selection of the encryption / decryption tap bits is not within the scope of the application. The aforementioned decryption tap bits will be selected corresponding to the encryption tap bits to match the decryption.

[0057] The following describes steps S2021-S2022. Please refer to Figure 5 and Fig.11 The five-layer parallel encryptor 144 generates encryption operands according to the internal key encryption mode or the external key encryption mode selected by the encryption key setter 142 (step S2021).

[0058] In one embodiment, the eight-bit encryption operand generator 1441, the sixteen-bit encryption operand generator 1442, the thirty-two-bit encryption operand generator 1443, and the sixty-four-bit encryption operand generator 1444 are in the external key encryption mode, and the one hundred and twenty-eight-bit encryption operand generator 1445 is in the internal key encryption mode. The key in the encryption operand generator in the external key encryption mode is provided by the external encryption key input 1446, and the key in the encryption operand generator in the internal key encryption mode is provided by the internal encryption key storage 1447. The encrypted linear feedback shift register 1441L in the eight-bit encrypted operand generator 1441 extracts the second bit a[2] and the seventh bit a[7] and performs a logic operation through the generated encryption logic gate 1441G to obtain the encrypted operand 1441E; the encrypted linear feedback shift register 1442L in the sixteen-bit encrypted operand generator 1442 extracts the second bit b[2] and the fifteenth bit b

[15] and performs a logic operation through the generated encryption logic gate 1442G to obtain the encrypted operand 1442E; the encrypted linear feedback shift register 1443L in the thirty-two-bit encrypted operand generator 1443 extracts the first bit c[1] and the thirty-first bit c

[15] and performs a logic operation through the generated encryption logic gate 1442G to obtain the encrypted operand 1442E; The bit c

[31] is subjected to a logical operation via the generated encryption logic gate 1443G to obtain the encryption operand 1443E; the encryption linear feedback shift register 1444L in the sixty-four-bit encryption operand generator 1444 extracts the first bit d[1] and the sixty-second bit d

[62] and performs a logical operation via the generated encryption logic gate 1444G to obtain the encryption operand 1444E; the encryption linear feedback shift register 1445L in the one hundred and twenty-eight-bit encryption operand generator 1445 extracts the second bit e[2] and the one hundred and twenty-eight bit e

[128] and performs a logical operation via the generated encryption logic gate 1445G to obtain the encryption operand 1445E.

[0059] The data packet and the encryption operand are operated via the first logic operator G1 to obtain an encryption sequence ES (step S2022).

[0060] In one embodiment, the encryption operands 1441E, 1442E, 1443E, 1444E, and 1445E are logically operated by the encryption logic operation module G12 to obtain parallel encryption operands. The parallel encryption operands and data packets are encrypted by the data encryption logic gate G14 to obtain an encryption sequence ES.

[0061] The following describes steps S2041-S2042. Please refer to Fig. 9 and Fig.12 The five-layer parallel decryptor 144 generates a decryption operand according to the internal key decryption mode or the external key decryption mode selected by the decryption key setter 142 (step S2041).

[0062] In one embodiment, the eight-bit decryption operand generator 2441, the sixteen-bit decryption operand generator 2442, the thirty-two-bit decryption operand generator 2443, and the sixty-four-bit decryption operand generator 2444 are in the external key decryption mode, and the one hundred and twenty-eight-bit decryption operand generator 2445 is in the internal key decryption mode. The key in the decryption operand generator in the external key decryption mode is provided by the external decryption key input 2446, and the key in the decryption operand generator in the internal key decryption mode is provided by the internal decryption key storage 2447. The decryption linear feedback shift register 2441L in the eight-bit decryption operand generator 2441 extracts the second bit a[2] and the seventh bit a[7] and performs a logic operation through the generated decryption logic gate 2441G to obtain the decryption operand 2441E; the decryption linear feedback shift register 2442L in the sixteen-bit decryption operand generator 2442 extracts the second bit b[2] and the fifteenth bit b

[15] and performs a logic operation through the generated decryption logic gate 2442G to obtain the decryption operand 2442E; the decryption linear feedback shift register 2443L in the thirty-two-bit decryption operand generator 2443 extracts the first bit c[1] and the thirty-first bit c

[15] and performs a logic operation through the generated decryption logic gate 2442G to obtain the decryption operand 2442E; The bit c

[31] is subjected to a logical operation via the generated decryption logic gate 2443G to obtain the decryption operand 2443E. The decryption linear feedback shift register 2444L in the sixty-four-bit decryption operand generator 2444 extracts the first bit d[1] and the sixty-second bit d

[62] and performs a logical operation via the generated decryption logic gate 2444G to obtain the decryption operand 2444E. The decryption linear feedback shift register 2445L in the one hundred and twenty-eight-bit decryption operand generator 2445 extracts the second bit e[2] and the one hundred and twenty-eight bit e

[128] and performs a logical operation via the generated decryption logic gate 2445G to obtain the decryption operand 2445E.

[0063] The encryption sequence ES and the decryption operand are operated via the second logic operator G2 to obtain a restored data packet (step S2042).

[0064] In one embodiment, the decryption operands 2441E, 2442E, 2443E, 2444E, and 2445E are logically operated by the decryption logic operation module G22 to obtain parallel decryption operands. The parallel decryption operands and the encryption sequence ES are decrypted by the data decryption logic gate G24 to obtain the restored data packet.

[0065] Compared with the prior art, the present application can switch the key used to be an internal key or an external key according to the required encryption method, and can implement different encryption methods through a set of hardware.

[0066] The present application has been described in detail above. However, what is described above is only a preferred embodiment of the present application and should not be used to limit the scope of implementation of the present application. That is, all equivalent changes and modifications made according to the scope of the patent application of the present application should still fall within the scope of the patent application of the present application.

Claims

1. A parallel computing encryption and decryption system, It is characterized in that include: A transmitting end device, comprising a data generation module and a data encryption module, wherein the data encryption module comprises an encryption key setter and a five-layer parallel encryptor, wherein the encryption key setter comprises an internal key encryption mode and an external key encryption mode, wherein the encryption key setter is used to select the internal key encryption mode or the external key encryption mode, wherein the data encryption module obtains at least one data packet from the data generation module, encrypts the data packet via the internal key encryption mode or the external key encryption mode selected by the five-layer parallel encryptor, and then outputs an encryption sequence; and A receiving end device, comprising a data target module and a data decryption module, wherein the data decryption module comprises a decryption key setter and a five-layer parallel decryptor, wherein the decryption key setter comprises an internal key decryption mode and an external key decryption mode, wherein the decryption key setter selects the internal key decryption mode or the external key decryption mode according to a preset setting or according to a mode selected by the encryption key setter, wherein the data decryption module obtains the encryption sequence from the sending end device, decrypts the encryption sequence through the internal key decryption mode or the external key decryption mode selected by the five-layer parallel decryptor, and then outputs the restored data packet to the data target module; The five-layer parallel encryptor includes an eight-bit encryption operand generator, a sixteen-bit encryption operand generator, a thirty-two-bit encryption operand generator, a sixty-four-bit encryption operand generator, a one hundred and twenty-eight-bit encryption operand generator, an external encryption key input device, an internal encryption key storage device, and a first logic operator, wherein the eight-bit encryption operand generator, the sixteen-bit encryption operand generator, the thirty-two-bit encryption operand generator, the sixty-four-bit encryption operand generator, and the one hundred and twenty-eight-bit encryption operand generator respectively generate encryption operands according to an external encryption key generated by the external encryption key input device or an internal encryption key stored in the internal encryption key storage device, and the encryption operands and the data packet are operated by the first logic operator to obtain the encryption sequence; The five-layer parallel decryptor includes an eight-bit decryption operand generator, a sixteen-bit decryption operand generator, a thirty-two-bit decryption operand generator, a sixty-four-bit decryption operand generator, a one hundred and twenty-eight-bit decryption operand generator, an external decryption key input device, an internal decryption key storage device and a second logic operator, wherein the eight-bit decryption operand generator, the sixteen-bit decryption operand generator, the thirty-two-bit decryption operand generator, the sixty-four-bit decryption operand generator and the one hundred and twenty-eight-bit decryption operand generator respectively generate decryption operands according to the external decryption key generated by the external decryption key input device or the internal decryption key stored in the internal decryption key storage device, and the decryption operands and the encryption sequence are operated by the second logic operator to obtain the data packet.

2. The parallel computing encryption and decryption system according to claim 1, It is characterized in that The external encryption key input device includes an encryption key generator and an encryption controller, the encryption key generator generates the external encryption key according to the external key encryption mode, and the encryption controller outputs the external encryption key according to the external key encryption mode; the external decryption key input device includes a decryption key generator and a decryption controller, the decryption key generator generates the external decryption key according to the external key decryption mode, and the decryption controller outputs the external decryption key according to the external key decryption mode.

3. The parallel computing encryption and decryption system as claimed in claim 1, It is characterized in that The external encryption key input device is an encryption input controller, which includes an encryption input device and an encryption controller. The encryption input device is used to input the external encryption key, and the encryption controller outputs the external encryption key according to the external key encryption mode; the external decryption key input device is a decryption input controller, which includes a decryption input device and a decryption controller. The decryption input device is used to input the external decryption key, and the decryption controller outputs the external decryption key according to the external key decryption mode.

4. The parallel computing encryption and decryption system according to claim 2 or 3, It is characterized in that The eight-bit encryption operand generator, the sixteen-bit encryption operand generator, the thirty-two-bit encryption operand generator, the sixty-four-bit encryption operand generator, and the one hundred and twenty-eight-bit encryption operand generator respectively include an encryption linear feedback shift register and one or more generation encryption logic gates, the encryption linear feedback shift register has the internal encryption key or the external encryption key, and the encryption linear feedback shift register performs a logic operation on multiple encryption bit taps of the internal encryption key or the external encryption key through the generation encryption logic gate to obtain the encryption operand; the eight-bit decryption operand generator, the sixteen-bit decryption operand generator, the thirty-two-bit decryption operand generator, the sixty-four-bit decryption operand generator, and the one hundred and twenty-eight-bit decryption operand generator respectively include a decryption linear feedback shift register and one or more generation decryption logic gates, the decryption linear feedback shift register has the internal decryption key or the external decryption key, and the decryption linear feedback shift register performs a logic operation on multiple decryption bit taps of the internal decryption key or the external decryption key through the generation decryption logic gate to obtain the decryption operand.

5. The parallel computing encryption and decryption system as claimed in claim 4, It is characterized in that The number of bits of the encryption bit tap and the decryption bit tap is two.

6. Transmitter device, It is characterized in that include: Data generation module; as well as A data encryption module, the data encryption module includes an encryption key setter and a five-layer parallel encryptor, the encryption key setter includes an internal key encryption mode and an external key encryption mode, the encryption key setter is used to select the internal key encryption mode or the external key encryption mode, the data encryption module obtains at least one data packet from the data generation module, encrypts the data packet through the internal key encryption mode or the external key encryption mode selected by the five-layer parallel encryptor, and then outputs an encryption sequence; The five-layer parallel encryptor includes an eight-bit encryption operand generator, a sixteen-bit encryption operand generator, a thirty-two-bit encryption operand generator, a sixty-four-bit encryption operand generator, a one hundred and twenty-eight-bit encryption operand generator, an external encryption key input device, an internal encryption key storage device and a first logic operator, wherein the eight-bit encryption operand generator, the sixteen-bit encryption operand generator, the thirty-two-bit encryption operand generator, the sixty-four-bit encryption operand generator and the one hundred and twenty-eight-bit encryption operand generator respectively generate encryption operands according to the external encryption key generated by the external encryption key input device or the internal encryption key stored in the internal encryption key storage device, and the encryption operands and the data packet are operated by the first logic operator to obtain the encryption sequence.

7. The transmitting end device according to claim 6, It is characterized in that The external encryption key input device includes an encryption key generator and an encryption controller. The encryption key generator generates the external encryption key according to the external key encryption mode, and the encryption controller outputs the external encryption key according to the external key encryption mode.

8. The transmitting end device according to claim 6, It is characterized in that The external encryption key input device is an encryption input controller, which includes an encryption input device and an encryption controller. The encryption input device is used to input the external encryption key, and the encryption controller outputs the external encryption key according to the external key encryption mode.

9. The transmitting end device according to claim 7 or 8, It is characterized in that The eight-bit encryption operand generator, the sixteen-bit encryption operand generator, the thirty-two-bit encryption operand generator, the sixty-four-bit encryption operand generator and the one hundred and twenty-eight-bit encryption operand generator respectively include an encryption linear feedback shift register and one or more encryption logic gates for generating encryption. The encryption linear feedback shift register has the internal encryption key or the external encryption key. The encryption linear feedback shift register performs a logical operation on multiple encryption bit taps of the internal encryption key or the external encryption key through the encryption logic gates for generating encryption to obtain the encryption operand.

10. The transmitting end device according to claim 9, It is characterized in that The number of bits of the encryption bit tap is two.

11. Receiving device, It is characterized in that include: Data target module; as well as A data decryption module, the data decryption module includes a decryption key setter and a five-layer parallel decryptor, the decryption key setter includes an internal key decryption mode and an external key decryption mode, the decryption key setter selects the internal key decryption mode or the external key decryption mode according to a preset or a mode selected by the encryption key setter, the data decryption module obtains an encryption sequence from a transmitting end device, decrypts the encryption sequence through the internal key decryption mode or the external key decryption mode selected by the five-layer parallel decryptor, and then outputs a restored data packet to the data target module; The five-layer parallel decryptor includes an eight-bit decryption operand generator, a sixteen-bit decryption operand generator, a thirty-two-bit decryption operand generator, a sixty-four-bit decryption operand generator, a one hundred and twenty-eight-bit decryption operand generator, an external decryption key input device, an internal decryption key storage device and a second logic operator, wherein the eight-bit decryption operand generator, the sixteen-bit decryption operand generator, the thirty-two-bit decryption operand generator, the sixty-four-bit decryption operand generator and the one hundred and twenty-eight-bit decryption operand generator respectively generate decryption operands according to the external decryption key generated by the external decryption key input device or the internal decryption key stored in the internal decryption key storage device, and the decryption operands and the encryption sequence are operated by the second logic operator to obtain the data packet.

12. The receiving device according to claim 11, It is characterized in that The external decryption key input device includes a decryption key generator and a decryption controller. The decryption key generator generates the external decryption key according to the external key decryption mode, and the decryption controller outputs the external decryption key according to the external key decryption mode.

13. The receiving device according to claim 11, It is characterized in that The external decryption key input device is a decryption input controller, which includes a decryption input device and a decryption controller. The decryption input device is used to input the external decryption key, and the decryption controller outputs the external decryption key according to the external key decryption mode.

14. The receiving end device according to claim 11 or 13, It is characterized in that The eight-bit decryption operand generator, the sixteen-bit decryption operand generator, the thirty-two-bit decryption operand generator, the sixty-four-bit decryption operand generator, and the one hundred and twenty-eight-bit decryption operand generator respectively include a decryption linear feedback shift register and one or more generation decryption logic gates, the decryption linear feedback shift register has the internal decryption key or the external decryption key, and the decryption linear feedback shift register performs a logical operation on multiple decryption bit taps of the internal decryption key or the external decryption key through the generation decryption logic gates to obtain the decryption operand.

15. The receiving device according to claim 14, It is characterized in that The number of bits of the decryption bit tap is two.

Citation Information

Patent Citations

  • Data encryption method and device, data decryption method and device and electronic equipment

    CN111639354A

  • Encrypting method and encrypting apparatus for image processing apparatus

    CN1735127A