Hardware-accelerated encryption methods, systems, devices, and media based on PCIe encryption cards
By employing the dual-plane encryption architecture and physical location binding verification mechanism of the PCIe encryption card, the systemic security risks caused by a single encryption channel are resolved, achieving high security and isolation during data transmission.
Patent Information
- Application Number
- CN202611474268.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-21
- Publication Date
- 2026-11-10
AI Technical Summary
In existing technologies, once the encryption scheme of a single encrypted channel is breached, the security of the entire system will be completely compromised, and it will be unable to effectively prevent unauthorized access and malicious attacks on data during transmission.
A dual-plane encryption architecture based on a PCIe encryption card is adopted, establishing separate encryption channels for the business plane and management plane. Data streams are encrypted through hardware-based encryption logic units, and combined with a physical location binding verification mechanism, the security of data transmission and the isolation of device management and control are ensured.
It achieves high security during data transmission, avoids systemic security risks caused by the destruction of a single encrypted channel, ensures complete isolation between business processing and equipment management and control at the cryptographic level, and improves the security and reliability of data transmission.
Smart Images

Figure CN123074832A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of network security technology, specifically to a hardware-accelerated encryption method, system, device, and medium based on a PCIe encryption card. Background Technology
[0002] With the increasing severity of cybersecurity threats and the frequent occurrence of data breaches, enterprises, government agencies, and critical infrastructure are constantly raising their requirements for data transmission security. In particular, in application scenarios involving sensitive information and confidential data, how to ensure the confidentiality and integrity of data during transmission and prevent unauthorized access and malicious attacks has become a key technical problem that urgently needs to be solved in the field of cybersecurity.
[0003] Currently, the aforementioned technical problems are mainly addressed by deploying dedicated hardware security modules or encryption cards. These solutions provide higher security and processing performance than software encryption by implementing encryption algorithms in dedicated hardware. However, these solutions use a single encryption channel to process all types of data, with business data and management control instructions sharing the same encryption resources. Once the encryption channel is compromised, the security of the entire system will completely fail, and the security of data during transmission is insufficient. Summary of the Invention
[0004] This application provides a hardware-accelerated encryption method, system, device, and medium based on a PCIe encryption card to improve data security during transmission.
[0005] Firstly, this application provides a hardware-accelerated encryption method based on a PCIe encryption card. The method includes: embedding a national cryptographic algorithm into an FPGA chip within the PCIe encryption card using a hardware description language to form a hardware-based encryption logic unit; establishing a dual-plane encryption architecture in the data transmission link between the host system and an external network using the PCIe encryption card, the dual-plane encryption architecture including: a service plane encryption channel and a management plane encryption channel; wherein the service plane encryption channel is the channel for encrypting and decrypting data streams in the data transmission link, and the management plane encryption channel is a channel between the PCIe encryption card and an external controller independent of the service data channel; when the data stream passes through the data transmission link, the hardware-based encryption logic unit... The encryption unit encrypts the data stream in the service plane encryption channel and independently encrypts and transmits the management commands of the external controller through the management plane encryption channel, so as to isolate the service processing and device management control of data transmission between the host system and the external network; it obtains the physical location information of the PCIe encryption card and binds and verifies the physical location information with the security certificate stored in the PCIe encryption card; when the physical location information changes, it sends a location change verification request to the external controller through the management plane encryption channel according to the binding verification result, and adjusts the encryption permissions of the hardware encryption logic unit for the data stream in the data transmission link according to the location change verification request result.
[0006] By adopting the above technical solution, and embedding the national cryptographic algorithm into an FPGA chip to form a hardware-based encryption logic unit, hardware-level security protection at the algorithm level is achieved, avoiding the problem that software encryption is vulnerable to malicious attacks and system vulnerabilities. The dual-plane encryption architecture establishes separate encryption channels for the business plane and management plane, ensuring complete cryptographic isolation between the business processing of data flow and the device management control of the external controller. Even if the security of one channel is compromised, it will not affect the normal operation of the other channel, fundamentally solving the systemic security risks caused by a single encryption channel and improving data security during transmission.
[0007] Secondly, this application provides a hardware-accelerated encryption system based on a PCIe encryption card. The system includes a scanning module, an establishment module, an encryption module, an acquisition module, and a verification module. The scanning module is used to embed the national cryptographic algorithm into the FPGA chip within the PCIe encryption card using a hardware description language, forming a hardware-based encryption logic unit. The establishment module is used to establish a dual-plane encryption architecture in the data transmission link between the host system and the external network through the PCIe encryption card. The dual-plane encryption architecture includes a service plane encryption channel and a management plane encryption channel. The service plane encryption channel is the channel for encrypting and decrypting data streams in the data transmission link, and the management plane encryption channel is a channel between the PCIe encryption card and an external controller, independent of the service data channel. The encryption module is used to, when the data stream passes through the external network... During the data transmission link, the hardware-based encryption logic unit encrypts the data stream in the service plane encryption channel, and independently encrypts and transmits the management commands of the external controller through the management plane encryption channel, so that the service processing and device management control of data transmission between the host system and the external network are isolated from each other; the acquisition module is used to acquire the physical location information of the PCIe encryption card and bind and verify the physical location information with the security certificate stored in the PCIe encryption card; the verification module is used to send a location change verification request to the external controller through the management plane encryption channel when the physical location information changes, based on the binding verification result, and adjust the encryption permissions of the hardware-based encryption logic unit for the data stream in the data transmission link based on the location change verification request result.
[0008] Thirdly, this application provides an electronic device that adopts the following technical solution: including a processor, a memory, a user interface, and a network interface, wherein the memory is used to store instructions, the user interface and the network interface are used to communicate with other devices, and the processor is used to execute the instructions stored in the memory to enable the electronic device to execute a computer program of any of the above-mentioned hardware-accelerated encryption methods based on a PCIe encryption card.
[0009] Fourthly, this application provides a computer-readable storage medium that employs the following technical solution: storing a computer program capable of being loaded by a processor and executing any of the aforementioned hardware-accelerated encryption methods based on a PCIe encryption card.
[0010] In summary, this application includes at least one of the following beneficial technical effects: By embedding national cryptographic algorithms into FPGA chips to form hardware-based encryption logic units, hardware-level security protection at the algorithm level is achieved, avoiding the vulnerability of software encryption to malicious attacks and system vulnerabilities. The dual-plane encryption architecture establishes separate encryption channels for the business plane and management plane, ensuring complete cryptographic isolation between data flow processing and external controller device management. Even if the security of one channel is compromised, the normal operation of the other channel will not be affected, fundamentally solving the systemic security risks caused by a single encryption channel and improving data security during transmission. Attached Figure Description
[0011] Figure 1 This is a schematic diagram of a scenario provided in an embodiment of this application; Figure 2 This is a schematic flowchart of a hardware-accelerated encryption method based on a PCIe encryption card provided in an embodiment of this application; Figure 3 This is a schematic diagram of a hardware-accelerated encryption system based on a PCIe encryption card, provided in an embodiment of this application. Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.
[0012] Explanation of reference numerals in the attached figures: 1000, electronic device; 1001, processor; 1002, communication bus; 1003, user interface; 1004, network interface; 1005, memory. Detailed Implementation
[0013] To enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments.
[0014] In the description of the embodiments in this application, words such as "illustrative," "for example," or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as "illustrative," "for example," or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or designs. Rather, the use of words such as "illustrative," "for example," or "for example" is intended to present the relevant concepts in a specific manner.
[0015] Figure 1 This is a schematic diagram of a scenario provided in an embodiment of this application. For example... Figure 1 As shown, a dedicated PCIe encryption card is inserted between the host system and the external network to efficiently and securely handle data encryption and decryption tasks.
[0016] First, the main data flow in the diagram is referred to as the "business plane encryption channel," illustrating how business data is processed: When the host system needs to send data to an external network, the data is first sent to the PCIe encryption card. Within the card's FPGA chip, there is a "hardware-based encryption logic unit" that embeds the national cryptographic algorithm, enabling hardware-level encryption of the data. The encrypted data is then sent to the external network via the PCIe card, and vice versa, thus achieving high-performance hardware encryption and decryption of the business data flow.
[0017] Secondly, the solution includes a "management plane encryption channel" independent of the business data flow for secure control of the encryption card. An "external controller" can send "management commands" to the encryption card through this channel. More importantly, this mechanism includes a key security feature: physical location binding. Internally, the "security certificate" and "physical location information" are strongly bound. Once the encryption card detects a possible change in its physical location, it immediately triggers a security alarm and suspends its encryption function. At this time, it sends a "location change verification request" to the "external controller" through the management channel. Upon receiving the request, the external controller verifies it and sends the "verification result" back to the encryption card. If the verification result indicates that the location change is unauthorized, the encryption card will perform an "adjustment of encryption permissions," such as completely disabling the encryption function, thereby ensuring that even if the hardware is stolen or illegally moved, it cannot be used to steal or decrypt sensitive data, guaranteeing the physical and data security of the entire system.
[0018] Figure 2 This is a schematic flowchart illustrating a hardware-accelerated encryption method based on a PCIe encryption card, as provided in an embodiment of this application. Figure 1 As shown, the method includes S101-S105: S101 embeds the national cryptographic algorithm into the FPGA chip within the PCIe encryption card using a hardware description language, forming a hardware-based encryption logic unit.
[0019] The system first needs to embed the national cryptographic algorithm into the FPGA chip within the PCIe encryption card using a hardware description language, forming a hardware-based encryption logic unit. This hardware embedding method is adopted because traditional software encryption implementations have significant security vulnerabilities. Software encryption algorithms leave analyzable traces in memory during runtime, allowing attackers to obtain implementation details and key information through reverse engineering, memory dumping, and other techniques, thereby cracking the encryption protection. Embedding the encryption algorithm directly into the hardware circuitry fundamentally avoids exposing the algorithm logic at the software level, achieving true black-box encryption.
[0020] In the implementation process, system developers first use hardware description languages such as VHDL or Verilog to model and describe the Chinese national cryptographic algorithms, which mainly refer to commercial Chinese cryptographic algorithms such as SM1, SM2, SM3, and SM4. A hardware description language is a specialized language used to describe the logical behavior and structure of digital circuits. It can convert the mathematical operation logic of an algorithm into a hardware circuit description that can be implemented in an FPGA chip. During the modeling process, each operation step in the national cryptographic algorithm needs to be decomposed into basic logic gate operations, including core operation units such as XOR operations, permutation operations, and S-box transformations. Then, these operation units are organized into a complete encryption algorithm circuit using a hardware description language.
[0021] Next, the system uses the FPGA development toolchain to synthesize, place, and route the hardware description language code, transforming the abstract algorithm description into a concrete FPGA configuration file. An FPGA, or Field-Programmable Gate Array, is a reconfigurable digital circuit chip containing a large number of programmable logic blocks and configurable interconnect resources. It can reorganize its internal circuit structure according to the configuration file to implement specific digital logic functions. During the configuration process, the various operational modules of the Chinese national cryptographic algorithm are mapped into logic blocks within the FPGA, forming a dedicated hardware circuit for executing the algorithm. This hardware circuit is the so-called hardware-based encryption logic unit.
[0022] Once the hardware-based encryption logic unit is configured in the FPGA chip, it becomes part of the chip's hardware structure. The execution of the national cryptographic algorithm is achieved entirely through signal propagation and logical operations of the hardware circuit, without relying on any software program. When encryption is required, the data to be encrypted is directly input to the input port of the hardware-based encryption logic unit. After parallel processing by the chip's internal circuitry, the encryption result is directly generated from the output port. The entire process is completed entirely at the hardware level.
[0023] Based on the above embodiments, as an optional implementation method, in S101, the step of embedding the national cryptographic algorithm into the FPGA chip within the PCIe encryption card using a hardware description language to form a hardware-based encryption logic unit specifically includes: A true random number generator module is integrated into the FPGA chip to generate encryption keys. The operation logic of the national cryptographic algorithm is transformed into hardware circuits through a hardware description language, and the hardware circuits and the true random number generator module are configured in the FPGA chip to form a hardware-based encryption logic unit.
[0024] The system first integrates a specially designed true random number generator module within the FPGA chip. This module is a hardware random number generation circuit designed based on physical noise sources, utilizing thermal noise, quantum noise, or other physical random phenomena within the FPGA chip to generate truly random number sequences. Unlike traditional pseudo-random number generators, the random numbers generated by the true random number generator module are unpredictable and unreproducible, fundamentally guaranteeing the randomness strength of the encryption key. This module includes noise acquisition circuitry, digitization processing circuitry, randomness detection circuitry, and output control circuitry, enabling it to continuously generate high-quality random numbers for encryption key generation.
[0025] Next, the system uses a hardware description language (HDL) to transform the computational logic of the Chinese national cryptographic algorithm into dedicated hardware circuits. A HDL is a programming language specifically designed to describe the behavior and structure of digital circuits, capable of accurately converting complex algorithmic logic into hardware circuit implementations. During the transformation process, each computational step in the Chinese national cryptographic algorithm, including data transformation, key expansion, and round function operations, is converted into corresponding hardware logic gates and register structures. This transformation not only ensures the correctness of the algorithm implementation but also optimizes for the specific architecture of the FPGA chip, fully utilizing the FPGA's parallel processing capabilities and reconfigurability.
[0026] After the hardware circuit is implemented, the system deeply integrates the converted hardware circuit with the true random number generator module. This configuration process is not a simple physical connection, but rather establishes a collaborative working mechanism between the two at the logical level. The random numbers generated by the true random number generator module are directly transmitted to the national cryptographic algorithm hardware circuit via a dedicated internal bus for key generation and algorithm parameter initialization. The entire process is completed within the FPGA chip, without the need for external interfaces or software-level processing. Simultaneously, the system designs a unified clock domain and control signals for both modules to ensure their synchronous and coordinated operation.
[0027] S102 establishes a dual-plane encryption architecture in the data transmission link between the host system and the external network through a PCIe encryption card. The dual-plane encryption architecture includes a service plane encryption channel and a management plane encryption channel. The service plane encryption channel is the channel for encrypting and decrypting data streams in the data transmission link, while the management plane encryption channel is a channel between the PCIe encryption card and the external controller that is independent of the service data channel.
[0028] The dual-plane encryption architecture solves the aforementioned problems at the architectural level by completely separating data processing and management control functions. Dual-plane architecture refers to building two logically independent communication planes within the same physical device. Each plane has its own independent data processing channel, encryption key, and access control mechanism. There is no overlap or sharing of information between the two planes, thus achieving dual protection of functional and security isolation.
[0029] In practical implementation, the PCIe encryption card first divides its internal hardware architecture into two independent processing areas: a service-plane encryption channel and a management-plane encryption channel. The service-plane encryption channel is specifically responsible for handling the business data streams transmitted between the host system and the external network. These data streams include user application data, file transfers, network communications, and other actual business content. The system allocates dedicated hardware-based encryption logic units for the service-plane encryption channel within the PCIe encryption card's FPGA chip. These logic units are directly connected in series at key nodes in the data transmission link, enabling real-time encryption processing without latency as data streams pass through. The service-plane encryption channel adopts a streaming processing architecture, supporting high-throughput continuous data encryption to ensure it does not become a performance bottleneck for data transmission.
[0030] Meanwhile, the management plane encryption channel is designed as a completely independent communication tunnel, specifically for exchanging management information between the PCIe encryption card and an external controller. The external controller typically refers to a network management system, SD-WAN controller, or security management center—an entity with device management authority—which needs to send configuration commands, security policy updates, key management commands, and other management information to the PCIe encryption card. In terms of hardware implementation, the management plane encryption channel has an independent network interface, independent processor resources, and independent storage space, and is completely physically isolated from the service plane encryption channel. The management plane encryption channel also implements a two-way authentication mechanism, ensuring that only authorized external controllers can establish management connections with the PCIe encryption card, preventing malicious entities from attacking the encryption system by forging management commands.
[0031] In the specific deployment of the data transmission link, the service-plane encryption channel is transparently embedded into the host system's network protocol stack. When an application sends data to an external network, the data packet is automatically encrypted via the PCIe encryption card's service-plane encryption channel before leaving the host system. The encrypted data packet then continues to be transmitted to its destination via the normal network path. On the receiving side, encrypted data packets received from the external network are first decrypted via the PCIe encryption card's service-plane encryption channel. Only the decrypted plaintext data is then transmitted to the host system's application. The entire process is completely transparent to the application; the application can enjoy the protection of hardware encryption without making any modifications.
[0032] The management plane encryption channel establishes a secure management tunnel independent of the business data flow. External controllers use this tunnel to send various management commands to the PCIe encryption card, including encryption algorithm configuration, key updates, security policy adjustments, and device status queries. The management plane encryption channel uses completely different encryption keys and algorithms than the business plane, ensuring that even if the business plane encryption is breached, the management plane communication security remains guaranteed. Simultaneously, the management plane encryption channel implements a command integrity verification mechanism. Each management command carries a digital signature or message authentication code. Before executing a command, the PCIe encryption card verifies its integrity and source credibility to prevent tampering during transmission.
[0033] Based on the above embodiments, as an optional implementation, in S102, establishing a dual-plane encryption architecture in the data transmission link between the host system and the external network via a PCIe encryption card specifically includes: Within the PCIe encryption card, separate encryption keys and encryption algorithm instances are assigned to the business plane encryption channel and the management plane encryption channel, respectively. The business plane encryption channel uses the first encryption key to perform real-time encryption and decryption of the data stream, while the management plane encryption channel uses the second encryption key to encrypt and transmit management commands. The first and second encryption keys are independent of each other and are updated periodically.
[0034] The system assigns independent first and second encryption keys to the business plane encryption channel and the management plane encryption channel respectively within the PCIe encryption card, and configures corresponding independent encryption algorithm instances. The reason for adopting a dual-key independent design is to prevent a single point of key leakage from causing the entire system to fail, and to ensure that business data transmission and device management control are completely isolated at the cryptographic level.
[0035] The system generates two completely independent encryption keys using a true random number generator module. The first encryption key is dedicated to real-time encryption and decryption of data streams in the business plane encryption channel, while the second encryption key is dedicated to the encrypted transmission of management commands in the management plane encryption channel. The two keys are generated using different random seeds to ensure that there is no mathematical correlation between them. Simultaneously, the system creates two independent instances of the national cryptographic algorithm within the hardware-based encryption logic unit, using different hardware circuit resources and control logic to provide dedicated encryption processing capabilities for each of the two channels.
[0036] To maintain long-term security, the system employs independent periodic update strategies for the two keys. The first encryption key is updated based on business data transmission volume and security assessments, while the second encryption key is updated more frequently at fixed time intervals. During key updates, a completely new key is regenerated using a true random number generator module, rather than based on changes to the old key.
[0037] S103, when the data stream passes through the data transmission link, the data stream is encrypted in the business plane encryption channel through the hardware encryption logic unit, and the management instructions of the external controller are independently encrypted and transmitted through the management plane encryption channel, so as to isolate the business processing and device management control of data transmission between the host system and the external network.
[0038] When data flows through the data transmission link, the PCIe encryption card first classifies the received data packets using its built-in traffic identification mechanism. The data transmission link refers to the complete data transmission path from the host system to the external network, including the host system's network interface, the PCIe encryption card, network devices, and the final network connection. The traffic identification mechanism analyzes the source address, destination address, port number, and protocol type of the data packets to accurately distinguish between service data streams requiring encryption and management commands from the external controller. For the identified service data streams, the system directs them to the service plane encryption channel for processing, while management commands are directed to the management plane encryption channel for processing.
[0039] In the processing of the business plane encryption channel, the hardware-based encryption logic unit plays a crucial role. When business data flows into the business plane encryption channel, the hardware-based encryption logic unit immediately performs real-time encryption processing on the data stream. Because the hardware-based encryption logic unit is a dedicated encryption circuit directly embedded in the FPGA chip, it can perform parallel encryption of data at hardware processing speed with extremely low processing latency. Specifically, during the encryption process, the hardware-based encryption logic unit first obtains high-quality random numbers from its built-in true random number generator as encryption parameters, and then encrypts the data stream block by block according to the pre-configured national cryptographic algorithm. Due to the hardware pipeline design, multiple data blocks can be processed simultaneously at different stages of the encryption logic unit, greatly improving encryption throughput. The encrypted data stream continues to be transmitted to the external network along the original data transmission link, where the receiver can use the corresponding decryption key to decrypt and restore the data.
[0040] Meanwhile, the management plane encrypted channel independently processes management commands from external controllers. External controllers refer to remote control systems with configuration and management permissions for the PCIe encryption card, typically including network security management platforms, SD-WAN controllers, and key management centers. When an external controller needs to send management commands to the PCIe encryption card, these commands first undergo authentication and authorization verification mechanisms within the management plane encrypted channel. The management plane encrypted channel uses completely different encryption keys and algorithm instances than the business plane, ensuring no key association or algorithm dependency exists between the two channels. Management commands are independently encrypted before transmission. The encryption process also utilizes encryption resources specifically allocated to the management plane within the hardware-based encryption logic unit, but uses an independent key management system and encryption parameters.
[0041] In its implementation, the PCIe encryption card incorporates a precise resource scheduling mechanism to coordinate the parallel operation of the two channels. The hardware-based encryption logic unit is divided into multiple independent processing units. Most resources are allocated to the service-plane encryption channel to ensure high-throughput service data processing capabilities, while a smaller but sufficient amount of resources are allocated to the management-plane encryption channel to ensure timely processing of management commands. The two channels use different clock domains and control signals, achieving complete logical isolation at the hardware level. When the service-plane encryption channel processes a large volume of data, the management-plane encryption channel maintains its independent processing capabilities, ensuring that fluctuations in service data do not affect the transmission efficiency of management commands.
[0042] To ensure isolation between business processing and device management and control, the system employs a multi-layered isolation mechanism in its design. At the physical level, the two channels utilize different hardware resource areas within the FPGA chip, including different logic blocks, memory blocks, and I / O interfaces, avoiding cross-use of hardware resources. At the logical level, the two channels use completely independent data processing flows, state machines, and control logic; a change in the state of one channel will not affect the normal operation of the other. At the protocol level, the two channels use different communication protocol stacks and data formats, ensuring communication independence even at the network level.
[0043] S104, Obtain the physical location information of the PCIe encryption card, and bind and verify the physical location information with the security certificate stored in the PCIe encryption card.
[0044] The system needs to obtain the physical location information of the PCIe encryption card and bind and verify this information with the security certificate stored within the PCIe encryption card. The fundamental reason for implementing this security mechanism is that traditional encryption devices rely solely on keys and certificates for authentication, lacking awareness and control over the device's physical environment. This deficiency provides an opportunity for malicious attackers. Attackers may physically steal encryption devices and then attempt to crack or abuse their encryption functions from different geographical locations. They might even deploy the stolen devices in hostile environments for reverse engineering analysis. More seriously, in application scenarios with strict geographical location security requirements, such as military communications, government agencies, or core financial systems, encryption devices must ensure they only operate within authorized physical areas; any unauthorized changes in geographical location should be considered a potential security threat.
[0045] The system first obtains the device's physical location information through a geolocation module integrated within the PCIe encryption card. This geolocation module is a specially designed hardware component, typically containing a GPS receiver, base station positioning chip, or other satellite positioning system receiver. It can acquire the precise geographic coordinates of the device containing the PCIe encryption card in real time, including parameters such as longitude, latitude, altitude, and positioning accuracy. To ensure the reliability and tamper-proof nature of the location information, the geolocation module is designed as an independent hardware security module with its own processor, memory, and communication interface, maintaining physical and logical isolation from other functional modules of the PCIe encryption card. When acquiring location information, the positioning module also simultaneously acquires timestamp information to ensure the timeliness and traceability of the location data.
[0046] Upon obtaining the current physical location information, the system immediately initiates the binding and verification process with the security certificate. The security certificate is a digital certificate stored in the secure storage area of the PCIe encryption card, containing key security parameters such as the device's identity information, authorization permissions, validity period, and a preset legal geographical location range. The secure storage area is a special storage space inside the PCIe encryption card, employing hardware encryption protection and tamper-proof design to ensure that the security certificate and sensitive data stored therein cannot be maliciously read or modified. The binding and verification process first performs a precise matching and comparison between the currently obtained physical location coordinates and the preset geographical location range in the security certificate.
[0047] The specific verification algorithm employs geospatial calculation methods to determine the geometric relationship between the current location coordinates and the legal geographical area defined in the security certificate. The preset geographical area may be a circular area, a rectangular area, or a complex polygonal area defined by multiple coordinate points. The verification algorithm needs to calculate whether the current location point falls within these predefined safe areas. To improve the accuracy and fault tolerance of the verification, the system also considers practical factors such as GPS positioning errors and signal drift, setting a reasonable error tolerance range during the verification process. When the current physical location coordinates are within the preset geographical area, the system considers the location verification successful and continues with further verification of the security certificate's validity, including standard PKI verification processes such as digital signature verification, validity period check, and issuing authority certification.
[0048] If the current physical location coordinates exceed the preset geographical location range defined in the security certificate, the system immediately generates a location anomaly flag and triggers the corresponding security response mechanism. The location anomaly flag is a special security status indicator used to mark the current PCIe encryption card as being in an abnormal state of unauthorized geographical location. Once a location anomaly flag is generated, the system immediately restricts the encryption function of the hardware-based encryption logic unit to prevent encryption operations from being performed in unauthorized environments. These restrictions include multi-level functional degradation such as disabling advanced encryption algorithms, reducing key strength, and reducing processing throughput, ensuring that even if the device is maliciously used, it cannot exert its full encryption capabilities.
[0049] Once location verification is successful, the system determines the specific encryption processing permission level of the hardware encryption logic unit based on the permission configuration information in the security certificate. The permission level is a multi-dimensional security parameter system, including specific technical parameters such as the types of encryption algorithms that can be used, the key length range, the upper limit of data processing rate, and supported encryption modes. Different geographical locations may correspond to different security level requirements. For example, in high-security core areas, the PCIe encryption card is authorized to use the highest strength encryption algorithm and the longest key length, while in general-security areas, it may only be authorized to use the standard strength encryption configuration. The system automatically determines and configures the corresponding encryption processing permission level based on the mapping relationship between the current location and the geographic security policy defined in the security certificate.
[0050] The entire binding verification process also includes an integrity protection mechanism to ensure that location information and verification results are not maliciously tampered with. The system digitally signs the acquired location information using the private key inside the PCIe encryption card, ensuring the authenticity and integrity of the location information. Each step of the verification process generates corresponding log records, which are stored in a secure storage area and synchronized to the external controller through an encrypted management plane channel, providing reliable data support for subsequent security audits and event analysis.
[0051] Based on the above embodiments, as an optional implementation, in S104, obtaining the physical location information of the PCIe encryption card and binding and verifying the physical location information with the security certificate stored in the PCIe encryption card specifically includes S41-S44: S41 obtains the location coordinates of the device where the PCIe encryption card is located through the geolocation module integrated in the PCIe encryption card.
[0052] The system obtains the device's real-time location coordinates through a geolocation module integrated into the PCIe encryption card. This geolocation module is a dedicated hardware component containing a GPS receiver or other satellite positioning equipment, capable of acquiring precise latitude and longitude coordinates, altitude, and location timestamps. Designed as an independent hardware security unit, this module is tamper-proof, ensuring the acquired location information is authentic, reliable, and cannot be maliciously modified.
[0053] S42, Match and verify the physical location coordinates with the preset geographical location range stored in the secure storage area of the PCIe encryption card.
[0054] The system matches and verifies the acquired current physical location coordinates against a preset geographical location range stored within the secure storage area. The secure storage area is the protected storage space inside the PCIe encryption card, employing hardware encryption and access control mechanisms. The preset geographical location range is a pre-configured legal geographical area, which may be circular, rectangular, or polygonal, defining the geographical boundaries by which the device is authorized to operate. The matching and verification process uses a geospatial calculation algorithm to accurately determine whether the current location falls within the authorized area, while also considering GPS positioning errors and setting a reasonable tolerance range.
[0055] S43, when the current physical location coordinates exceed the preset geographical location range, generate a location anomaly flag and restrict the encryption function of the hardware encryption logic unit.
[0056] When the system detects that the current location coordinates exceed the preset geographical range, it immediately generates a location anomaly flag and restricts the functionality of the hardware-based encryption logic unit. The location anomaly flag is a security status indicator that marks the device as being in an unauthorized location. Restrictions include multi-level functional degradation, such as disabling advanced encryption algorithms, reducing key strength, and decreasing data processing capabilities, ensuring that the device cannot perform its full encryption capabilities in unauthorized environments and preventing malicious exploitation.
[0057] S44. When the current physical location coordinates are within the preset geographical location range, verify the validity of the security certificate and determine the encryption processing permission level of the hardware encryption logic unit according to the permission configuration of the security certificate.
[0058] Once location verification is successful, the system further verifies the validity of the security certificate, including standard verification procedures such as the certificate's digital signature, validity period, and issuing authority. After successful verification, the system determines the specific encryption processing permission level of the hardware encryption logic unit based on the permission configuration information in the security certificate. The permission level includes parameters such as available encryption algorithm types, key length range, and data processing rate. The system will automatically configure the corresponding encryption capabilities based on the security level corresponding to the current location.
[0059] S105, when the physical location information changes, according to the binding verification result, a location change verification request is sent to the external controller through the management plane encryption channel. According to the location change verification request result, the encryption permissions of the hardware encryption logic unit for the data stream in the data transmission link are adjusted.
[0060] The system first detects changes in the physical location of the PCIe encryption card through a continuously running location monitoring mechanism. This mechanism relies on real-time data acquisition from the geolocation module. The system periodically acquires the current physical location coordinates and compares them precisely with the coordinates recorded during the last successful verification. To avoid false positives due to GPS signal fluctuations or positioning errors, the system employs an intelligent location change detection algorithm. This algorithm not only calculates the straight-line distance between two locations but also considers factors such as time, the reasonableness of movement speed, and the continuity of location changes. When the system detects an offset distance exceeding a preset threshold between the current physical location coordinates and the previously verified physical location coordinates, it considers a significant location change to have occurred and initiates the location change verification process.
[0061] Once a significant location change is confirmed, the system immediately determines the subsequent processing strategy based on the current binding verification result. The binding verification result refers to the matching status between the current location and the preset geographical location range in the security certificate. Possible results include the location still within the authorized range, the location exceeding the authorized range, and the location being in an area with ambiguous boundaries. For different verification results, the system will employ corresponding risk assessment and response strategies. If the current location is still within the preset geographical location range, the system will send a location update notification; if the location has clearly exceeded the authorized range, the system will send an emergency location change verification request; if the location is in a boundary area, the system will send a location confirmation request.
[0062] Next, the system sends a location change verification request to the external controller via the management plane encrypted channel. The management plane encrypted channel plays a crucial role in this process because location change verification involves sensitive security policy adjustments and must be conducted through a secure and reliable communication channel. The location change verification request is a complex data packet containing multiple pieces of information, including current location coordinates, device identification, timestamps, location change history, and current device status. The device identification includes parameters that uniquely identify the device, such as the PCIe encryption card's unique hardware serial number, security certificate fingerprint, and device manufacturing information, ensuring that the external controller can accurately identify the device sending the request. To prevent the request from being tampered with or replayed during transmission, the system encrypts the entire request using a dedicated encryption key from the management plane encrypted channel and adds a digital signature and an anti-replay serial number.
[0063] Upon receiving a location change verification request, the external controller initiates a complex security assessment and decision-making process. First, the external controller verifies the completeness and authenticity of the request. Then, based on pre-configured security policies, the device's historical behavior records, the current security threat landscape, and the security level of the new location, it determines whether to approve the location change. Security policies may include various rules such as geographic whitelists, blacklists, time window restrictions, and movement frequency restrictions. The assessment process may also involve coordination with other security systems, such as threat intelligence systems, device management systems, and user behavior analysis systems, to obtain a more comprehensive security assessment.
[0064] Based on the security assessment results, the external controller will return a location change verification response via the management plane encrypted channel. The location change verification response includes the verification result status, the new preset geographic location range, updated security certificate configuration information, and corresponding permission adjustment instructions. If the location change is approved, the response will include security configuration parameters applicable to the new location, which may include new encryption algorithm selection, key length requirements, access control policies, etc. If the location change is rejected, the response will include the reason for the rejection and the security measures the device should take. If further verification is required, the response will include additional verification requirements and waiting time.
[0065] Upon receiving the location change verification response, the PCIe encryption card begins adjusting the encryption permissions of the hardware encryption logic unit (HLU) based on the response content. This permission adjustment process is a fine-grained configuration management process involving multiple aspects of the HLU. When the location change verification is successfully authorized, the system dynamically updates the operating parameters of the HLU based on the permission configuration information returned by the external controller. This includes reconfiguring the available encryption algorithm types, adjusting the key strength level, modifying data processing priority settings, and updating the access control list. This process must ensure that ongoing data transmission is not affected during permission adjustments; therefore, the system employs hot-switching technology, enabling a smooth switch to the new security configuration without service interruption.
[0066] When a location change verification request is rejected, the system downgrades the encryption privileges of the hardware-based encryption logic unit to restricted mode. Restricted mode is a security protection state where the PCIe encryption card still provides basic encryption functions, but these functions are strictly limited, allowing only basic-level encryption processing for preset data types. Specific restrictions include disabling advanced encryption algorithm instances, retaining only basic national cryptographic algorithms; reducing the complexity of keys generated by the true random number generator module and shortening the effective usage period of the keys; limiting the data processing throughput of the business plane encryption channel to below a preset security threshold; and adding special permission identifiers to all processed data streams to indicate that these data have undergone restricted permission processing.
[0067] If a location change verification request times out without a response, the system will activate a temporary access mode to balance security and availability. Temporary access mode allows the PCIe encryption card to maintain its current encryption access level within a preset time window, preventing service interruptions due to network issues or temporary external controller failures. During temporary access mode, the system will periodically resend the location change verification request until a clear response is received or the maximum number of retries is reached. The time window and retry policy of temporary access mode are configurable security parameters and need to be adjusted according to specific application scenarios and security requirements.
[0068] The entire permission adjustment process is logged in detail and synchronized to the external controller via an encrypted channel on the management plane, ensuring that all security operations have a complete audit trail. The log information includes detailed records of location changes, complete content of verification requests and responses, specific operations performed during permission adjustments, and the system status after the adjustments. This information is of significant value for subsequent security analysis, compliance checks, and incident investigations.
[0069] Based on the above embodiments, as an optional implementation, in S105, when the physical location information changes, sending a location change verification request to the external controller through the management plane encrypted channel according to the binding verification result specifically includes S51-S55: S51, detect the offset distance between the current physical location coordinates of the PCIe encryption card and the physical location coordinates that were last verified.
[0070] The system continuously monitors the offset distance between the current physical location coordinates and the physical location coordinates recorded when the last verification was successful. The geolocation module periodically acquires real-time location data, and the system uses geospatial calculation algorithms to accurately calculate the straight-line distance between two coordinate points, while taking into account geographical factors such as the curvature of the Earth to ensure calculation accuracy. The physical location coordinates of the last successful verification are stored as a reference point in a secure storage area, and this reference coordinate is automatically updated after each successful location verification.
[0071] S52, when the offset distance exceeds the preset threshold, a location change verification request containing the current location coordinates and device identification is sent to the external controller through the management plane encrypted channel.
[0072] When the offset distance exceeds a preset threshold, the system immediately sends a location change verification request to the external controller via the management plane encrypted channel. The preset threshold is a distance parameter pre-configured based on the device's usage scenario and security requirements, used to determine whether a location change requires re-verification. The location change verification request includes key data such as current location coordinates, device identification, timestamp, and location change history. The device identification includes unique identifiers such as the PCIe encryption card's hardware serial number and security certificate fingerprint, ensuring the external controller can accurately identify the request's source.
[0073] S53 receives a location change verification response returned by an external controller through the management plane encrypted channel. The location change verification response contains the new preset geographical location range and updated security certificate configuration information.
[0074] The system receives a location change verification response from an external controller via an encrypted management plane channel. Upon receiving the request, the external controller performs a security assessment, including verifying the device's identity, analyzing the legitimacy of the location change, and checking security policies. The location change verification response includes the verification result, the new preset geographic location range, and updated security certificate configuration information. The new preset geographic location range is a recalculated authorized work area based on the device's new location, and the security certificate configuration information includes encryption permission parameters applicable to the new location.
[0075] S54, based on the location change verification response, updates the preset geographical location range and security certificate in the secure storage area of the PCIE encryption card, and reconfigures the encryption processing permission level of the hardware encryption logic unit.
[0076] When location change verification is authorized, the system updates the configuration information in the secure storage area and reconfigures the hardware encryption logic unit based on the response. The update process includes replacing the old preset geographical location range, installing a new security certificate, and adjusting the encryption processing permission level. Permission reconfiguration involves modifying available encryption algorithms, adjusting key strength, and updating access control policies to ensure that the device can provide appropriate encryption services in the new location.
[0077] S55: When location change verification fails, the PCIe encryption card is switched to secure mode, and the data encryption function of the hardware encryption logic unit is disabled until a valid location change authorization is obtained.
[0078] When location change verification fails, the system immediately switches the PCIe encryption card to secure mode. Secure mode is a protective operating state where the data encryption function of the hardware-based encryption logic unit is completely disabled, and the device retains only basic management communication capabilities. The purpose of secure mode is to prevent the device from being maliciously used in unauthorized locations while maintaining communication connectivity with the external controller for subsequent re-authorization. The device will remain in secure mode until valid location change authorization is received or manual intervention by the administrator is achieved.
[0079] Based on the above embodiments, as an optional implementation, in S105, adjusting the encryption permissions of the hardware encryption logic unit for the data stream in the data transmission link according to the location change verification request result specifically includes S61-S64: S61, when the location change verification request is authorized, the encryption algorithm type, key strength and data processing priority of the hardware encryption logic unit are updated according to the permission configuration information returned by the external controller.
[0080] When a location change verification request is authorized by the external controller, the system performs a comprehensive update of the hardware-based encryption logic unit based on the returned permission configuration information. This permission configuration information includes security parameters applicable to the new location, which the system uses to update the encryption algorithm type. This may involve upgrading from the basic SM4 algorithm to a higher-security algorithm combination, or making corresponding adjustments based on the location's security level. Key strength adjustments involve reconfiguring the key length, updating key generation parameters, and adjusting the key update frequency. Data processing priority updates are made based on the network environment and security requirements of the new location, adjusting the processing priority and resource allocation strategies for different types of data streams to ensure that critical data receives priority processing.
[0081] S62, when the location change verification request is rejected, the encryption permission of the hardware encryption logic unit is downgraded to restricted mode. In restricted mode, only basic-level encryption processing is allowed for data of preset types.
[0082] When a location change verification request is rejected by the external controller, the system immediately switches the hardware-based encryption logic unit to restricted mode. Restricted mode is a security protection state that strictly limits the device's encryption processing capabilities, allowing only basic-level encryption processing on preset data types. Specific restrictions include disabling advanced encryption algorithms, reducing key complexity, limiting data processing rate, and narrowing the range of data types that can be processed. This restriction strategy aims to minimize the risk of malicious use of the device in unauthorized environments while preserving basic communication capabilities for subsequent re-authorization.
[0083] Based on the above embodiments, as an optional implementation method, in S62, downgrading the encryption privilege of the hardware encryption logic unit to a restricted mode specifically includes: Disable advanced encryption algorithm instances in the hardware-based encryption logic unit, while retaining the encryption function of the basic national cryptographic algorithm; reduce the complexity of the key generated by the true random number generator module and shorten the effective usage period of the key; limit the data processing throughput of the business plane encryption channel to below a preset security threshold; in restricted mode, add permission identifiers to the data streams processed through the PCIe encryption card to indicate that the data streams have been processed with restricted permissions.
[0084] S63, when the location change verification request times out without response, the temporary permission mode of the PCIe encryption card is activated, the current encryption permission level is maintained within a preset time window, and the location change verification request is resent periodically.
[0085] When a location change verification request times out without a response, the system activates a temporary access mode to balance security and availability requirements. Temporary access mode allows the PCIe encryption card to maintain its current encryption access level for a preset time window, preventing service interruptions due to network failures or temporary unavailability of the external controller. The preset time window is a configurable security parameter, typically determined based on business continuity requirements and security risk assessments. During temporary access mode, the system periodically resends the location change verification request, attempting to re-establish communication with the external controller and obtain a definitive verification result until the timeout window expires or a valid response is received.
[0086] S64, record the log information of the encryption permission adjustment process, and synchronize the log information to the external controller through the management plane encryption channel.
[0087] The system meticulously logs the entire encrypted permission adjustment process and synchronizes these logs to the external controller via an encrypted management channel. The log information includes the specific coordinates of the location change, the complete content of the verification request and response, detailed permission adjustment operations, and a comparison of the system status before and after the adjustment. These logs not only provide a complete operational tracker for security audits but also serve as crucial evidence for subsequent security analysis, troubleshooting, and policy optimization. The log transmission utilizes an encrypted management channel to ensure the confidentiality and integrity of the log data, preventing sensitive security operation information from being stolen or tampered with during transmission.
[0088] Based on the above method, this application also discloses a hardware-accelerated encryption system based on a PCIe encryption card, such as... Figure 3 As shown, Figure 3This is a schematic diagram of a hardware-accelerated encryption system based on a PCIe encryption card, provided in an embodiment of this application. The system includes: a scanning module, an establishment module, an encryption module, an acquisition module, and a verification module. The scanning module is used to embed the national cryptographic algorithm into the FPGA chip within the PCIe encryption card using a hardware description language, forming a hardware-based encryption logic unit. The establishment module is used to establish a dual-plane encryption architecture in the data transmission link between the host system and the external network via the PCIe encryption card. The dual-plane encryption architecture includes: a service plane encryption channel and a management plane encryption channel. The service plane encryption channel is the channel for encrypting and decrypting the data flow in the data transmission link, and the management plane encryption channel is a channel between the PCIe encryption card and an external controller, independent of the service data channel. The encryption module... The hardware-based encryption logic unit encrypts the data stream in the service plane encryption channel when the data stream passes through the data transmission link, and independently encrypts and transmits management commands of the external controller through the management plane encryption channel, so as to isolate the service processing and device management control of data transmission between the host system and the external network; the acquisition module is used to acquire the physical location information of the PCIe encryption card and bind and verify the physical location information with the security certificate stored in the PCIe encryption card; the verification module is used to send a location change verification request to the external controller through the management plane encryption channel when the physical location information changes, based on the binding verification result, and adjust the encryption permissions of the hardware-based encryption logic unit for the data stream in the data transmission link based on the location change verification request result.
[0089] It should be noted that the above embodiments of the apparatus are only illustrated by the division of the above functional modules. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the apparatus and method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process can be found in the method embodiments, which will not be repeated here.
[0090] It should be noted that the system provided in the above embodiments is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the system and method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process can be found in the method embodiments, which will not be repeated here.
[0091] Please see Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Figure 4As shown, the electronic device 1000 may include: at least one processor 1001, at least one network interface 1004, a user interface 1003, a memory 1005, and at least one communication bus 1002.
[0092] The communication bus 1002 is used to realize the connection and communication between these components.
[0093] The user interface 1003 may include a display screen and a camera. Optionally, the user interface 1003 may also include a standard wired interface and a wireless interface.
[0094] The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface).
[0095] The processor 1001 may include one or more processing cores. The processor 1001 connects to various parts of the server using various interfaces and lines, and performs various server functions and processes data by running or executing instructions, programs, code sets, or instruction sets stored in the memory 1005, and by calling data stored in the memory 1005. Optionally, the processor 1001 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor 1001 may integrate one or a combination of several of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the content required for display; and the modem handles wireless communication. It is understood that the modem may also not be integrated into the processor 1001 and may be implemented as a separate chip.
[0096] The memory 1005 may include random access memory (RAM) or read-only memory. Optionally, the memory 1005 may include a non-transitory computer-readable storage medium. The memory 1005 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 1005 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as touch function, sound playback function, image playback function, etc.), instructions for implementing the above-described method embodiments, etc.; the data storage area may store data involved in the above-described method embodiments, etc. Optionally, the memory 1005 may also be at least one storage device located remotely from the aforementioned processor 1001. Figure 4 As shown, the memory 1005, which serves as a computer storage medium, may include an operating system, a network communication module, a user interface module, and an application program based on a hardware-accelerated encryption method using a PCIe encryption card.
[0097] exist Figure 4 In the electronic device 1000 shown, the user interface 1003 is mainly used to provide an input interface for the user and to obtain the user input data; while the processor 1001 can be used to call an application program stored in the memory 1005 that is a hardware-accelerated encryption method based on a PCIe encryption card. When executed by one or more processors, the electronic device executes one or more of the methods described in the above embodiments.
[0098] An electronic device readable storage medium stores instructions that, when executed by one or more processors, cause the electronic device to perform one or more of the methods described in the above embodiments.
[0099] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.
[0100] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0101] In the several embodiments provided in this application, it should be understood that the disclosed apparatus can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual couplings, direct couplings, or communication connections may be through some service interfaces; indirect couplings or communication connections between devices or units may be electrical or other forms.
[0102] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0103] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0104] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage device (CMD). Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a memory and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned memory includes various media capable of storing program code, such as USB flash drives, portable hard drives, magnetic disks, or optical disks.
[0105] The foregoing description is merely an exemplary embodiment of this disclosure and should not be construed as limiting the scope of this disclosure. Any equivalent changes and modifications made in accordance with the teachings of this disclosure shall still fall within the scope of this disclosure. Other embodiments of this disclosure will be readily apparent to those skilled in the art upon consideration of the specification and practice of the disclosure herein. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not described herein. The specification and embodiments are to be considered exemplary only, and the scope and spirit of this disclosure are defined by the claims.
Claims
1. A hardware-accelerated encryption method based on a PCIe encryption card, characterized in that, The method includes: The national cryptographic algorithm is embedded into the FPGA chip in the PCIe encryption card through a hardware description language to form a hardware-based encryption logic unit. The PCIe encryption card establishes a dual-plane encryption architecture in the data transmission link between the host system and the external network. The dual-plane encryption architecture includes a service plane encryption channel and a management plane encryption channel. The service plane encryption channel is used to encrypt and decrypt data streams in the data transmission link, and the management plane encryption channel is a channel between the PCIe encryption card and the external controller that is independent of the service data channel. When the data stream passes through the data transmission link, the hardware-based encryption logic unit encrypts the data stream in the service plane encryption channel, and independently encrypts and transmits the management instructions of the external controller through the management plane encryption channel, so that the service processing and device management control of data transmission between the host system and the external network are isolated from each other. Obtain the physical location information of the PCIe encryption card, and bind and verify the physical location information with the security certificate stored in the PCIe encryption card; When the physical location information changes, a location change verification request is sent to the external controller through the management plane encryption channel based on the binding verification result. Based on the location change verification request result, the encryption permissions of the hardware encryption logic unit for the data stream in the data transmission link are adjusted.
2. The hardware-accelerated encryption method based on a PCIe encryption card according to claim 1, characterized in that, The process of embedding the national cryptographic algorithm into the FPGA chip within the PCIe encryption card using a hardware description language to form a hardware-based encryption logic unit includes: A true random number generator module is integrated within the FPGA chip, which is used to generate encryption keys; The computational logic of the national cryptographic algorithm is transformed into a hardware circuit using a hardware description language, and the hardware circuit and the true random number generator module are configured in the FPGA chip to form a hardware-based encryption logic unit.
3. The hardware-accelerated encryption method based on a PCIe encryption card according to claim 1, characterized in that, The establishment of a dual-plane encryption architecture in the data transmission link between the host system and the external network via the PCIe encryption card includes: Independent encryption keys and encryption algorithm instances are assigned to the service plane encryption channel and the management plane encryption channel respectively within the PCIE encryption card; The business plane encryption channel uses a first encryption key to perform real-time encryption and decryption of the data stream, and the management plane encryption channel uses a second encryption key to encrypt and transmit management instructions. The first encryption key and the second encryption key are independent of each other and are updated periodically.
4. The hardware-accelerated encryption method based on a PCIe encryption card according to claim 1, characterized in that, The step of obtaining the physical location information of the PCIe encryption card and binding and verifying the physical location information with the security certificate stored in the PCIe encryption card includes: The location coordinates of the device where the PCIe encryption card is located are obtained by the geolocation module integrated in the PCIe encryption card. The physical location coordinate information is matched and verified against a preset geographical location range stored in the secure storage area of the PCIe encryption card; When the current physical location coordinates exceed the preset geographical location range, a location anomaly identifier is generated, and the encryption function of the hardware encryption logic unit is restricted. When the current physical location coordinates are within the preset geographical location range, the validity of the security certificate is verified, and the encryption processing permission level of the hardware encryption logic unit is determined according to the permission configuration of the security certificate.
5. The hardware-accelerated encryption method based on a PCIe encryption card according to claim 1, characterized in that, When the physical location information changes, based on the binding verification result, a location change verification request is sent to the external controller through the management plane encrypted channel, including: Detect the offset distance between the current physical location coordinates of the PCIe encryption card and the physical location coordinates that were last verified; When the offset distance exceeds a preset threshold, a location change verification request containing the current location coordinates and device identification is sent to the external controller through the management plane encrypted channel. Receive a location change verification response returned by the external controller through the management plane encrypted channel. The location change verification response includes a new preset geographical location range and updated security certificate configuration information. Based on the location change verification response, update the preset geographical location range and security certificate within the secure storage area of the PCIE encryption card, and reconfigure the encryption processing permission level of the hardware encryption logic unit; When the location change verification fails, the PCIe encryption card is switched to secure mode, and the data encryption function of the hardware encryption logic unit is disabled until a valid location change authorization is obtained.
6. The hardware-accelerated encryption method based on a PCIe encryption card according to claim 1, characterized in that, The step of adjusting the encryption permissions of the hardware-based encryption logic unit for the data stream in the data transmission link based on the location change verification request result includes: When the location change verification request is authorized and passed, the encryption algorithm type, key strength and data processing priority of the hardware encryption logic unit are updated according to the permission configuration information returned by the external controller. When the location change verification request is rejected, the encryption permission of the hardware encryption logic unit is downgraded to restricted mode. In restricted mode, only basic-level encryption processing is allowed for data of preset types. When the location change verification request times out without response, the temporary permission mode of the PCIe encryption card is activated to maintain the current encryption permission level within a preset time window, and the location change verification request is resent periodically. The system records log information about the encryption permission adjustment process and synchronizes the log information to the external controller through the management plane encryption channel.
7. The hardware-accelerated encryption method based on a PCIe encryption card according to claim 6, characterized in that, The step of downgrading the encryption privileges of the hardware-based encryption logic unit to a restricted mode includes: Disable the advanced encryption algorithm instances in the hardware-based encryption logic unit, while retaining the encryption function of the basic national cryptographic algorithm; This reduces the complexity of the key generated by the true random number generator module and shortens the effective usage period of the key. Limit the data processing throughput of the encrypted business plane channel to below a preset security threshold; In restricted mode, an access identifier is added to the data stream processed by the PCIe encryption card to indicate that the data stream has been processed with restricted access.
8. A hardware-accelerated encryption system based on a PCIe encryption card, characterized in that, The system includes: a scanning module, an establishing module, an encryption module, an acquisition module, and a verification module; wherein, The scanning module is used to embed the national cryptographic algorithm into the FPGA chip in the PCIe encryption card through a hardware description language, forming a hardware-based encryption logic unit. The establishment module is used to establish a dual-plane encryption architecture in the data transmission link between the host system and the external network through the PCIe encryption card. The dual-plane encryption architecture includes: a service plane encryption channel and a management plane encryption channel; wherein, the service plane encryption channel is the channel for encrypting and decrypting the data stream in the data transmission link, and the management plane encryption channel is a channel between the PCIe encryption card and the external controller that is independent of the service data channel. The encryption module is used to encrypt the data stream in the service plane encryption channel through the hardware encryption logic unit when the data stream passes through the data transmission link, and to independently encrypt and transmit the management instructions of the external controller through the management plane encryption channel, so as to isolate the service processing and device management control of data transmission between the host system and the external network. The acquisition module is used to acquire the physical location information of the PCIe encryption card and bind and verify the physical location information with the security certificate stored in the PCIe encryption card. The verification module is used to send a location change verification request to the external controller through the management plane encryption channel when the physical location information changes, based on the binding verification result, and adjust the encryption permissions of the hardware encryption logic unit for the data stream in the data transmission link based on the location change verification request result.
9. An electronic device, characterized in that, The device includes a processor, a memory, a user interface, and a network interface. The memory is used to store instructions, the user interface and the network interface are used to communicate with other devices, and the processor is used to execute the instructions stored in the memory to cause the electronic device to perform the method as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer program is stored that can be loaded by a processor and executed as described in any one of claims 1-7.
