Security authentication method based on distributed heterogeneous lattice sieve
By using distributed heterogeneous lattice sieve technology, the task of reducing lattice vector pairs is delegated to the graphics processor, while candidate verification and database updates are completed on the central processing unit side. This solves the problem of serial fixed overhead of the central processing unit and improves the efficiency of security strength assessment of lattice cipher parameter sets.
Patent Information
- Application Number
- CN202611506067.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-25
- Publication Date
- 2026-11-27
AI Technical Summary
In existing multi-node lattice sieve methods, when the lattice vector pair reduction task is completed by the central processing unit, there is a serial fixed overhead that becomes a bottleneck restricting the overall solution efficiency. In particular, when the size of the lattice vector database exceeds the memory capacity of a single machine, the computing power of the graphics processor is not effectively utilized.
By using distributed heterogeneous lattice sieve technology, the task of reducing lattice vector pairs is handed over to the graphics processor, while candidate verification and database updates are completed on the central processing unit. The bucket data exchanged across nodes carries the sign bit and the square length of the lattice vector, reducing the serial fixed overhead of the central processing unit.
With the same computing node and thread configuration, the total solution time for the shortest vector problem on a lattice is shortened, and the efficiency of security strength assessment of lattice cryptography parameter sets is improved.
Smart Images

Figure CN123184853A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to a technology in the field of information security, specifically a security authentication method based on distributed heterogeneous lattice sieves for parameter selection and security strength assessment of lattice-based public-key cryptography schemes. Background Technology
[0002] Solving the shortest vector problem on a lattice is a crucial computational step in evaluating the security of lattice cryptography schemes. When the lattice vector database processed by a lattice sieve exceeds the memory capacity of a single machine, the database needs to be sharded and stored across multiple computing nodes. In existing multi-node lattice sieve methods, lattice vector pair reduction is primarily performed by the central processing unit (CPU). Currently, there is no publicly available distributed heterogeneous implementation combining multi-node lattice sieves with GPU-based lattice vector pair reduction. When the lattice vector pair reduction task is delegated to a GPU, if the CPU still uses the traditional task organization, result processing, and state update process, a type of serial fixed overhead that does not change with the actual amount of reduction will become a bottleneck restricting the overall solution efficiency. Summary of the Invention
[0003] To address the shortcomings of existing technologies, this invention proposes a security authentication method based on distributed heterogeneous lattice sieves. By using distributed heterogeneous lattice sieve technology, the task of reducing lattice vector pairs is offloaded to the graphics processor and the serial fixed overhead on the central processing unit side, which is unrelated to the actual reduction amount, is eliminated. This reduces the verification time of a single lattice cryptographic parameter set under the same number of computing nodes and thread configuration.
[0004] This invention is achieved through the following technical solution:
[0005] This invention relates to a security authentication method based on a distributed heterogeneous lattice sieve. The method involves a security assessment platform receiving a set of lattice cryptographic parameters to be tested, constructing a corresponding shortest vector problem instance on the lattice based on the parameter set, solving for the shortest lattice vector using the distributed heterogeneous lattice sieve method, and determining the security strength test result of the lattice cryptographic parameter set under a given computing power budget.
[0006] The distributed heterogeneous lattice sieve method includes: sharding a lattice vector database and configuring it across multiple computing nodes, each equipped with a graphics processor (GPU). The GPU of the sending computing node performs local bucketing and provides the sign bit of the inner product between the lattice vector and the center of its assigned bucket. This sign bit, along with the existing squared length of the lattice vector, is transmitted to the receiving computing node along with the bucket data. The GPU of the receiving computing node performs orientation alignment and parallel reduction within the buckets, while the CPU performs candidate length verification and database updates. This eliminates the serial fixed overhead on the CPU side exposed after the lattice vector is reduced and migrated to the GPU, enabling the lattice sieve method to solve the problem when the lattice vector database is sharded and stored across multiple computing nodes.
[0007] The distributed heterogeneous lattice sieve method specifically includes:
[0008] S1. Instance Construction, Sharding, and Bucket Centers: The security assessment platform constructs a corresponding shortest vector problem instance on a lattice based on the parameter set of the lattice cipher to be tested. It generates a corresponding lattice basis based on the shortest vector problem instance on a lattice and generates an initial set of lattice vectors based on the lattice basis to form a lattice vector database to be screened. The lattice vector database to be screened is divided into multiple non-overlapping local database shards, and each local database shard is configured to multiple computing nodes. In each round of screening, each computing node selects one or more bucket centers and synchronizes them through set communication, so that each computing node holds all the bucket centers selected by the computing nodes in this round.
[0009] Each computing node includes: a central processing unit (CPU), a graphics processing unit (GPU), a local database sharding module, a sharding and bucket center module, a local bucketing and sign bit extraction module, a bucket data exchange module, a complete bucket construction and parallel reduction module, and a candidate verification and database update module. Specifically: the sharding and bucket center module holds the local database shards and synchronizes the bucket center; the local bucketing and sign bit extraction module uses the GPU to complete local bucketing and obtain the sign bit; the bucket data exchange module transmits local bucket data; the complete bucket construction and parallel reduction module uses the GPU to complete complete bucket construction, orientation alignment, and parallel reduction; and the candidate verification and database update module uses the CPU to complete candidate verification, attribution determination, and database update.
[0010] S2. Local Bucketing and Sign Bit Extraction: The sending compute node performs local bucketing on its own compute node's graphics processor and extracts the sign bit from the inner product result output by the graphics processor.
[0011] The graphics processor outputs the inner product between the grid vector and the center of the bucket in half-precision floating-point format. The host side reads the original bit pattern of the inner product as an unsigned 16-bit integer and extracts the highest bit of the original bit pattern of the inner product as the sign bit.
[0012] S3. Bucket Data Exchange: The sending compute node transmits the coordinates, sign bit, and existing squared length of the lattice vector in the local bucket along with the local bucket data to the corresponding receiving compute node through the message passing interface. It also receives local buckets sent by other compute nodes and merges the locally retained local buckets with the received local buckets to form a complete bucket. Specifically, this includes:
[0013] S31. Fixed-length entry construction: Bucket data is carried in a way that each grid vector corresponds to a fixed-length entry; the fixed-length entry includes a coordinate segment, a sign bit segment, and a square length segment, the length of which is determined according to the current sieve dimension, wherein: the sign bit segment carries the sign bit extracted in S2, and the square length segment carries the square length of the grid vector that is already in the local database shard; the message passing interface establishes the corresponding data type according to the fixed-length entry and reuses the data type in the data exchange process of this round of sieve method;
[0014] S32, Parallel Packaging and Exchange: The sending computing node divides the local bucket data into multiple packaging tasks according to the combination of the target computing node and the local bucket. It determines the starting offset of each packaging task in the sending buffer through pre-scanning, so that the writing intervals corresponding to different packaging tasks do not intersect. The packaging tasks are assigned to the thread pool and written to the sending buffer in parallel. The bucket data in the sending buffer is sent to the corresponding receiving computing node through the message passing interface.
[0015] S33. Complete Bucket Construction: The receiving compute node merges the local buckets it retains with the local buckets received from other compute nodes to form a complete bucket.
[0016] S4. Each computing node sends the lattice vector coordinates and sign bits of the complete bucket to the graphics processing and performs orientation alignment on the lattice vectors in the complete bucket according to the sign bits; the receiving computing node performs parallel reduction of lattice vector pairs on the orientation-aligned complete bucket through the graphics processor, and obtains a list of reduction results containing the first position index and the second position index of the complete bucket and the square length of the reduction result.
[0017] S5. Candidate Verification and Database Update: The central processing unit of the receiving computing node performs candidate verification on the lattice vector pairs based on the square length of the reduction result in the reduction result list, the square length of each of the two lattice vectors in the lattice vector pair, and the sign bit of each of the two lattice vectors. Based on the XOR result of the two sign bits, it determines the combination direction of the candidate lattice vectors as addition or union. Based on the square length, it derives the inner product between the lattice vectors and the square length of the candidate lattice vectors. It compares the square length of the candidate lattice vectors with the length boundary of the current round. The candidate lattice vectors that meet the length condition are written to the corresponding local database shards or sent to their respective computing nodes according to the existing distributed lattice sieving implementation rules. After completing the database update of this round, it enters the next round of sieving until the preset convergence condition is met and the shortest lattice vector is obtained.
[0018] The receiving computing node directly uses the received sign bit and square length without recalculating the sign bit and square length. When the preset convergence condition is met, the security assessment platform outputs the security strength test conclusion of the lattice cryptographic parameter set to be tested based on the obtained shortest lattice vector, the solution time and computing resource consumption.
[0019] When entering the next round of screening, if the graphics processor resource specifications required by the sending computing node in step S2 or the receiving computing node in step S4 are the same as those in the previous round of screening, the device memory, graphics processor stream, and computing library handle of the graphics processor already allocated in the previous round are reused; otherwise, the resources of the graphics processor already allocated in the previous round are released and the graphics processor resources are re-established according to the resource specifications required by the next round of screening.
[0020] Technical effect
[0021] This invention constructs multiple computing nodes equipped with graphics processors (GPUs) interconnected via a message passing interface. In a distributed heterogeneous lattice sieving process, the GPUs perform local bucketing, orientation alignment, and parallel reduction, while the central processing unit (CPU) completes candidate verification and database updates. Furthermore, the bucket data exchanged across computing nodes carries the sign bit and the existing square length of the lattice vector extracted by the sending computing node. This allows the sending computing node's GPU to obtain the sign bit and the existing square length of the lattice vector in the local bucketing, enabling the receiving computing node to perform orientation alignment and candidate length verification without recalculating these two items. This reduces the serial fixed overhead on the CPU side exposed when the GPU handles lattice vector reduction, shortening the overall solution time for the shortest vector problem on a lattice under the same computing node and thread configuration. Attached Figure Description
[0022] Figure 1 This is a flowchart of the present invention;
[0023] Figure 2 This is a schematic diagram of the main topology module structure of the distributed heterogeneous sieve system of the present invention;
[0024] Figure 3 This is a schematic diagram showing the layout of the bucket data entries in this invention;
[0025] Figure 4 This is a schematic diagram of the generation, carrying, and consumption of symbol bits. Detailed Implementation
[0026] like Figure 1 As shown, this embodiment provides a security authentication method based on a distributed heterogeneous lattice sieve. The method constructs an instance of the shortest vector problem on the lattice based on the parameter set of the lattice cryptography to be tested using a security assessment platform, solves it, and then achieves authentication. The distributed heterogeneous lattice sieve specifically includes:
[0027] Step 1) Establish a lattice vector database and divide it into partitions, specifically including:
[0028] 1.1 Configure p compute nodes, each numbered r=0,1,…,p−1; each compute node is configured with a thread pool consisting of D graphics processors and T worker threads, and the compute nodes are interconnected via a network supporting message passing interfaces. A graphics processor stream pool is established on each compute node for local bucketing, orientation alignment, and intra-bucket parallel reduction.
[0029] In this embodiment, the sieve dimension n=95, the number of computing nodes p=2, the number of graphics processors D=1, and the number of working threads T=32.
[0030] like Figure 2 As shown, each computing node includes: a central processing unit, a graphics processing unit, a local database sharding module, a sharding and bucket center module, a local bucketing and sign bit extraction module, a bucket data exchange module, a complete bucket construction and parallel reduction module, and a candidate verification and database update module.
[0031] In this embodiment, the sharding and bucket centering module adopts, but is not limited to, the technology described in "Scaling Lattice Sieves across Multiple Machines"; the complete bucket construction, orientation alignment and intra-bucket parallel reduction module adopts, but is not limited to, the technology described in "Advanced Lattice Sieving on GPUs, with Tensor Cores".
[0032] 1.2 Construct a lattice vector database to be screened based on upstream problem instances. Specifically, the parameters of the fault-tolerant learning problem to be evaluated are embedded to construct a unique shortest vector problem instance, and a lattice basis is generated and an initial lattice vector set is obtained by sampling.
[0033] 1.3 Divide the initial lattice vector set into p disjoint local database partitions, and compute node r holds a local database partition D. r It resides in its memory, and the lattice vector data held by each computing node is limited to its local database shards.
[0034] The local database sharding includes n coordinates of each grid vector at the current sieve dimension and an existing square length.
[0035] Step 2) Determine the number of bucket centers for each computing node in this round, select bucket centers and announce them among all computing nodes: After obtaining the number of bucket centers selected in this round based on the number of bucket centers X of each computing node in this round and the total number of p computing nodes, each computing node selects X grid vectors from its local database shard as the bucket centers for this round, and announces them to the other computing nodes through set communication, so that each computing node holds all the bucket centers.
[0036] In this embodiment, the number of bucket centers X=224, that is, the total number of bucket centers is p×X=448.
[0037] Step 3) For any bucket center, the computation node holding the grid vector to be bucketed is the sending computation node, and the computation node to which the bucket center belongs is the receiving computation node; the sending computation node completes the local bucketing on its graphics processor and extracts the sign bit from the inner product result output by the graphics processor, specifically including:
[0038] 3.1 Blocking and Bucketing: The sending compute node divides its local database into D blocks. r The grid vectors in the data are divided into multiple data blocks to be processed and sent to the graphics processor one by one. The graphics processor calculates the inner product between each grid vector and all the bucket centers and selects m bucket centers for each grid vector according to the absolute value of the inner product, where m is the multi-bucket coefficient.
[0039] In this embodiment, each data block to be processed contains 65,536 lattice vectors, and m=4.
[0040] 3.2 Sign Bit Extraction: The local bucketing and sign bit extraction module of the computing node allocates the lattice vector to the local buckets according to the absolute value of the inner product through the graphics processor. The host side extracts the sign bit from the highest bit of the original bit pattern of the half-precision inner product output by the graphics processor. The graphics processor divides the lattice vector corresponding to the center of each selected bucket into local database fragments D. r The position in the bucket and its inner product with the selected bucket center are written into the corresponding local bucket. After the sending computing node completes the local bucketing, it forms local buckets corresponding to all bucket centers. Among them, the local buckets corresponding to the bucket center of this computing node are kept in this computing node, and the local buckets corresponding to the bucket centers of other computing nodes are used as bucket data to be exchanged.
[0041] The inner product results in the local buckets are represented in half-precision floating-point format, with each inner product result occupying 16 bits. The host side reads the original bit pattern of the inner product as an unsigned 16-bit integer and extracts the highest bit of the original bit pattern as the sign bit, where the highest bit of 0 indicates positive and the highest bit of 1 indicates negative. The extracted sign bit corresponds one-to-one with the grid vector position in the local buckets and is stored on the host side as input for subsequent bucket data construction.
[0042] Step 4) Each compute node constructs bucket data based on the local buckets formed in Step 3, sends the local buckets intended for other compute nodes to the corresponding compute node, and receives local buckets sent by other compute nodes. It then merges the locally retained local buckets with the received local buckets to form a complete bucket. Specifically, this includes:
[0043] 4.1 Fixed-length entry construction: Each computing node, based on the local buckets formed in step 3 that are oriented towards other computing nodes, reads the coordinates of the corresponding grid vector and the existing square length, and combines them with the saved sign bit to construct a fixed-length entry consisting of n+3 sixteen-bit integers.
[0044] The first n hexadecimal integers of a fixed-length entry carry the n coordinates of the lattice vector; the least significant bit of the (n+1)th hexadecimal integer carries the sign bit, and the remaining bits are left empty; the (n+2)th and (n+3)th hexadecimal integers together carry the existing square length.
[0045] 4.2 Entry Count Exchange: Each computing node exchanges the number of entries in each local bucket formed in step 3 through the message passing interface and determines the capacity of the sending buffer and receiving buffer according to the number of entries to be sent and received respectively; the sending buffer and receiving buffer adopt the default initialization allocation method, and zero values are not written to the newly added space when adjusting the capacity.
[0046] 4.3 Parallel Packaging: Each computing node divides the local buckets formed in step 3, which are intended for other computing nodes, into multiple packaging tasks and writes the fixed-length entries corresponding to each packaging task into the send buffer in parallel. Specifically, this includes:
[0047] 4.3.1 Pre-scan: Each computing node establishes an offset accumulator and traverses the local buckets with the combination (q,c) of the target computing node q and the bucket center c as the task granularity; no packaging task is established for combinations with 0 entries, and a packaging task is established for local buckets with more than 0 entries, and the starting offset in the target computing node, local bucket, and sending buffer is recorded.
[0048] The initial value of the offset accumulator is 0; after each pre-scan of a non-empty local bucket is completed, the offset accumulator is incremented according to the fixed-length entry length and the number of entries in that local bucket, so that the write intervals of the send buffer corresponding to different packing tasks do not intersect.
[0049] 4.3.2 Parallel Writing: Each computing node assigns the packaged task to the thread pool. Each worker thread starts from the corresponding starting offset, reads the grid vector coordinates and existing square length from the local database according to the layout of fixed-length entries, and reads the corresponding sign bit, and writes them to the send buffer one by one.
[0050] When the number of worker threads in the thread pool is no greater than 1 or the number of packaged tasks is less than 4, the above writing is completed sequentially by the calling thread.
[0051] 4.4 Bucket Data Exchange: Each compute node sends the bucket data in its send buffer to the corresponding compute node via the message passing interface in a non-blocking full exchange manner and writes it into the corresponding receive buffer.
[0052] 4.5 Unpacking and Merging: Each receiving computing node reads the grid vector coordinates, sign bit, and square length of the fixed-length entries one by one according to the number of local bucket entries received and their starting offset in the receiving buffer, and merges them with the local local bucket entries retained locally; the local local bucket entries corresponding to the same bucket center and the local bucket entries received from other computing nodes together constitute a complete bucket.
[0053] The sign bit and square length in the complete bucket are directly adopted from the sign bit and square length of each entry in the complete bucket generated or received in step 3. For the partial bucket entries retained by this computing node, the corresponding data generated by this computing node in step 3 is directly adopted. For the received partial bucket entries, the corresponding data obtained from unpacking in 4.5 is directly adopted. Each computing node does not recalculate the sign bit and square length in this step and subsequent steps.
[0054] Step 5) The graphics processor of each computing node performs orientation alignment and intra-bucket parallel reduction based on the grid vector coordinates, sign bit, and square length in the complete bucket formed in Step 4. Specifically, this includes:
[0055] 5.1 Sign bit re-encoding and data upload: After each computing node encodes the sign bit in the complete bucket formed in step 4 into a half-precision floating-point number, each computing node uploads the grid vector coordinates, the encoded sign bit, and the square length to the graphics processor of its own computing node.
[0056] In the half-precision floating-point number, when the sign bit is 0, it is encoded as +1.0, and when the sign bit is 1, it is encoded as -1.0.
[0057] 5.2 Orientation Alignment: The graphics processor of this compute node performs orientation alignment on the grid vectors in the complete bucket according to the encoded sign bit. That is, when the encoding value is +1.0, the coordinates of the corresponding grid vector remain unchanged, and when the encoding value is -1.0, all the coordinates of the corresponding grid vector are inverted, so that the direction of the grid vectors in the same complete bucket is consistent with the direction of the center of the corresponding bucket.
[0058] 5.3 Parallel Reduction: The graphics processor of this computing node performs projection transformation and half-precision transformation on the orientation-aligned complete bucket. The tensor kernel of the graphics processor performs batch inner product operation on the grid vector pairs in the complete bucket and filters the grid vector pairs according to the inner product threshold. The post-processing kernel function calculates the square length of the corresponding difference vector based on the filtered grid vector pairs and writes the two position indices and the square length in the complete bucket into the output array of the graphics processor.
[0059] 5.4 Result Feedback: The graphics processor feeds back the number of reduction results, the two position indices within the complete bucket, and the corresponding square lengths to the host-side buffer; this compute node reads the above data from the host-side buffer and organizes it into a list of reduction results for this complete bucket.
[0060] Step 6) Based on the reduction result list output in Step 5, each computing node determines the combination direction of the candidate lattice vectors on the central processing unit according to the XOR result of the sign bit through the candidate verification and database update module, and completes the candidate length verification by combining the squared length of the reduction result. Then, the candidate lattice vectors are inserted into the database according to the existing database update rules, specifically including:
[0061] 6.1 Combination Direction Determination: Each computation node determines the first cell vector x from the corresponding complete bucket based on the first and second position indices recorded in the reduction result list within the complete bucket. i Second cell vector x j Specifically, the sign bits of the two lattice vectors are directly taken from the corresponding entries in the complete bucket without recalculation; then, an XOR operation is performed on the two sign bits: when the XOR result is 0, the candidate lattice vector is determined to be v=x. i -x j When the XOR result is 1, the candidate lattice vector is determined to be v=x. i +x j .
[0062] 6.2 Candidate Length Verification: Each computation node verifies the candidate length based on the squared length in the reduction result and the first grid vector x. i Second cell vector x j Given the square length of each element, derive x. i With x j The inner product between the two is calculated and the square length of the candidate lattice vector v is calculated according to the determined combination direction; the square length of the candidate lattice vector v is compared with the length boundary of the current round, and the candidate lattice vectors that meet the length condition are retained, while the rest of the candidate lattice vectors are discarded.
[0063] Step 7) Each computing node inserts the candidate lattice vectors retained in Step 6 into the database and determines whether the current round of sieving has reached the preset convergence condition. If the preset convergence condition is not reached, the current round of database update is completed and the next round of sieving is entered. If the preset convergence condition is reached, the shortest lattice vector in the database is output as the solution result and the security assessment platform outputs the security strength test result of the lattice cryptography parameter set to be tested based on the shortest lattice vector, the solution time, and the computational resource consumption.
[0064] When entering the next round of screening, if the graphics processor resource specifications required for the next round of screening are the same as those of the previous round, the graphics processor device memory, graphics processor stream, and compute library handles already allocated in the previous round are reused; if the graphics processor resource specifications change, the graphics processor resources already allocated in the previous round are released and the graphics processor resources are re-established according to the resource specifications required for the next round of screening.
[0065] To verify the technical effectiveness of this invention in assessing the security strength of lattice cryptography, instances of the shortest vector problem on lattices with different sieve dimensions were solved on the same computing platform using both an existing distributed central processing unit lattice sieve implementation and the distributed heterogeneous lattice sieve implementation of this invention. The computing platform used an Ubuntu 20.04.5 LTS operating system with a Linux 5.15 kernel, an Intel(R) Xeon(R) Gold 5218 processor with a clock speed of 2.3GHz, 1.5TB of memory, and an NVIDIA GeForce RTX3090 graphics processor. Both implementations used two computing nodes, each with 32 worker threads, and the number of bucket centers was configured in a gradient manner according to the sieve dimension and database size. Instances with different sieve dimensions were run until the same preset convergence condition was met.
[0066] Existing distributed CPU lattice sieve implementations employ two computing nodes, each with 32 worker threads. The distributed heterogeneous lattice sieve implementation of this invention employs two computing nodes, each configured with a graphics processor and using 32 worker threads. The graphics processor performs local bucketing, sign bit extraction, orientation alignment, and parallel reduction of lattice vector pairs, while the CPU performs candidate verification and database updates. Both implementations share the same solution objective, input instance type, and convergence criteria.
[0067] Under the above conditions, the total solution time and speedup for different sieve dimensions are shown in Table 1, where the speedup ratio is the ratio of the total solution time of the existing distributed central processing unit lattice sieve implementation to the total solution time of the distributed heterogeneous lattice sieve implementation of the present invention.
[0068] As shown in Table 1, as the sieve dimension increases from 85 to 95, the total solution time of the existing distributed CPU lattice sieve implementation increases from 67.64 seconds to 730.58 seconds, while the total solution time of the distributed heterogeneous lattice sieve implementation of this invention increases from 32.8975 seconds to 144.0696 seconds. The speedup of this invention compared to the existing distributed CPU lattice sieve implementation increases from 2.06 times to 5.07 times. This indicates that, when the size of the lattice vector database increases with the sieve dimension, this invention, by transmitting the sign bit and the existing square length at the sending end, utilizing the graphics processor to perform direction alignment and parallel reduction at the receiving end, and having the CPU complete the candidate verification, can reduce the serial fixed overhead in the heterogeneous lattice sieve process and achieve a more significant advantage in total solution time at higher sieve dimensions.
[0069] The experimental results above demonstrate that this invention does not merely shorten the time by changing the solution objective of the lattice sieve problem. Rather, under the same distributed lattice sieve solution task, it migrates the reduction of local buckets and lattice vector pairs to the graphics processor and carries the sign bit and existing square length through cross-node bucket data, avoiding the receiving central processor from repeatedly calculating related derived quantities. At the same time, it organizes cross-node bucket data exchange in parallel packaging, thereby reducing the serial fixed overhead on the central processor side and shortening the verification time of a single parameter set in the lattice cryptography security strength assessment.
[0070] Table 1
[0071] The above-described specific implementations can be partially adjusted by those skilled in the art in different ways without departing from the principles and purpose of the present invention. The scope of protection of the present invention is defined by the claims and is not limited to the above-described specific implementations. All implementation schemes within the scope of the claims are bound by the present invention.
Claims
1. A security authentication method based on distributed heterogeneous lattice sieves, characterized in that, The security assessment platform receives the lattice cryptography parameter set to be tested, constructs the corresponding shortest vector problem instance on the lattice based on the parameter set, and solves the shortest lattice vector by the distributed heterogeneous lattice sieve method. After calculating the solution time and computational resource consumption, the security strength test result of the lattice cryptography parameter set under a given computing power budget is determined. The distributed heterogeneous lattice sieve method includes: sharding a lattice vector database and configuring it across multiple computing nodes, each equipped with a graphics processor (GPU). The GPU of the sending computing node performs local bucketing and provides the sign bit of the inner product between the lattice vector and the center of its assigned bucket. This sign bit, along with the existing squared length of the lattice vector, is transmitted to the receiving computing node along with the bucket data. The GPU of the receiving computing node performs orientation alignment and parallel reduction within the buckets, while the CPU performs candidate length verification and database updates. This eliminates the serial fixed overhead on the CPU side exposed after the lattice vector is reduced and migrated to the GPU, enabling the lattice sieve method to solve the problem when the lattice vector database is sharded and stored across multiple computing nodes.
2. The security authentication method based on distributed heterogeneous lattice sieves according to claim 1, characterized in that, The distributed heterogeneous lattice sieve method specifically includes: S1. The security assessment platform constructs a corresponding shortest vector problem instance on a lattice based on the parameter set of the lattice cipher to be tested. It generates a corresponding lattice basis based on the shortest vector problem instance on a lattice and generates an initial set of lattice vectors based on the lattice basis to form a database of lattice vectors to be screened. The database of lattice vectors to be screened is then divided into multiple non-overlapping local database fragments and each local database fragment is configured to multiple computing nodes. Each computing node selects one or more bucket centers in each round of screening and synchronizes them through set communication, so that each computing node holds all the bucket centers selected by all computing nodes in this round. S2. The sending computing node performs local bucketing on its graphics processor and extracts the sign bit from the inner product result output by the graphics processor. S3. The sending computing node transmits the coordinates, sign bit, and existing square length of the grid vector in the local bucket to the corresponding receiving computing node through the message passing interface along with the local bucket data. It also receives local buckets sent by other computing nodes and merges the locally retained local buckets with the received local buckets to form a complete bucket. S4. Each computing node sends the lattice vector coordinates and sign bits of the complete bucket to the graphics processor and performs orientation alignment on the lattice vectors in the complete bucket according to the sign bits; the receiving computing node performs parallel reduction of lattice vector pairs on the orientation-aligned complete bucket through the graphics processor to obtain a list of reduction results containing the first position index and the second position index of the complete bucket and the square length of the reduction result. S5. The receiving computing node, located on the central processing unit, performs candidate verification on the lattice vector pairs based on the square length of the reduction result in the reduction result list, the square length of each of the two lattice vectors in the lattice vector pair, and the sign bit of each of the two lattice vectors. It determines the combination direction of the candidate lattice vectors as addition or subtraction based on the XOR result of the two sign bits and derives the inner product between the lattice vectors and the square length of the candidate lattice vectors based on the square length. It compares the square length of the candidate lattice vectors with the length boundary of the current round, and writes the candidate lattice vectors that meet the length condition into the corresponding local database shards or sends them to their respective computing nodes according to the existing distributed lattice sieving implementation's attribution rules. After completing this round of database updates, it enters the next round of sieving until the preset convergence condition is met, obtaining the shortest lattice vector.
3. The security authentication method based on distributed heterogeneous lattice sieves according to claim 1 or 2, characterized in that, Each compute node is configured with a central processing unit (CPU), a graphics processing unit (GPU), and a local database shard, including a sharding and bucket centering module, a local bucketing and sign bit extraction module, a bucket data exchange module, a complete bucket construction and parallel reduction module, and a candidate verification and database update module. Specifically: the sharding and bucket centering module holds the local database shards and synchronizes the bucket center; the local bucketing and sign bit extraction module uses the GPU to perform local bucketing and obtain the sign bit; the bucket data exchange module transmits local bucket data; the complete bucket construction and parallel reduction module uses the GPU to perform complete bucket construction, orientation alignment, and parallel reduction; and the candidate verification and database update module uses the CPU to perform candidate verification, attribution determination, and database update.
4. The security authentication method based on distributed heterogeneous lattice sieves according to claim 3, characterized in that, The graphics processor outputs the inner product between the grid vector and the center of the bucket in half-precision floating-point format. The host side reads the original bit pattern of the inner product as an unsigned 16-bit integer and extracts the highest bit of the original bit pattern of the inner product as the sign bit.
5. The security authentication method based on distributed heterogeneous lattice sieves according to claim 2, characterized in that, Step S3 specifically includes: S31. Fixed-length entry construction: Bucket data is carried in a way that each grid vector corresponds to a fixed-length entry; the fixed-length entry includes a coordinate segment, a sign bit segment, and a square length segment, the length of which is determined according to the current sieve dimension, wherein: the sign bit segment carries the sign bit extracted in S2, and the square length segment carries the square length of the grid vector that is already in the local database shard; the message passing interface establishes the corresponding data type according to the fixed-length entry and reuses the data type in the data exchange process of this round of sieve method; S32, Parallel Packaging and Exchange: The sending computing node divides the local bucket data into multiple packaging tasks according to the combination of the target computing node and the local bucket. It determines the starting offset of each packaging task in the sending buffer through pre-scanning, so that the writing intervals corresponding to different packaging tasks do not intersect. The packaging tasks are assigned to the thread pool and written to the sending buffer in parallel. The bucket data in the sending buffer is sent to the corresponding receiving computing node through the message passing interface. S33. Complete Bucket Construction: The receiving compute node merges the local buckets it retains with the local buckets received from other compute nodes to form a complete bucket.
6. The security authentication method based on distributed heterogeneous lattice sieves according to claim 5, characterized in that, The receiving computing node directly uses the received sign bit and square length, without recalculating the sign bit and square length at the receiving computing node; When the preset convergence condition is met, the security assessment platform outputs the security strength test conclusion of the lattice cryptographic parameter set to be tested based on the obtained shortest lattice vector, the solution time, and the computational resource consumption.
7. The security authentication method based on distributed heterogeneous lattice sieves according to claim 2, characterized in that, When entering the next round of screening, if the graphics processor resource specifications required by the sending computing node in step S2 or the receiving computing node in step S4 are the same as those in the previous round of screening, the device memory, graphics processor stream, and computing library handle of the graphics processor already allocated in the previous round are reused; otherwise, the resources of the graphics processor already allocated in the previous round are released and the graphics processor resources are re-established according to the resource specifications required by the next round of screening.
8. The security authentication method based on distributed heterogeneous lattice sieves according to claim 2, characterized in that, The complete bucket is obtained in the following way: 4.1 Fixed-length entry construction: Each computing node reads the coordinates of the corresponding grid vector and the existing square length based on the local bucket facing other computing nodes, and combines it with the saved sign bit to construct a fixed-length entry consisting of n+3 sixteen-bit integers. 4.2 Entry Count Exchange: Each computing node exchanges the number of entries in each local bucket formed in step 3 through the message passing interface, and determines the capacity of the sending buffer and receiving buffer according to the number of entries to be sent and received, respectively; The send and receive buffers use the default initialization allocation method, and zero values are not written to the newly added space when adjusting the capacity; 4.3 Parallel Packaging: Each computing node divides the local buckets formed in step 3, which are intended for other computing nodes, into multiple packaging tasks and writes the fixed-length entries corresponding to each packaging task into the send buffer in parallel. Specifically, this includes: 4.3.1 Pre-scan: Each computing node establishes an offset accumulator and traverses the local buckets with the combination (q,c) of the target computing node q and the bucket center c as the task granularity; no packaging task is established for combinations with 0 entries, and a packaging task is established for local buckets with more than 0 entries, and the starting offset in the target computing node, local bucket, and sending buffer is recorded. 4.3.2 Parallel writing: Each computing node assigns the packaged task to the thread pool. Each worker thread starts from the corresponding starting offset, reads the grid vector coordinates and existing square length from the local database according to the layout of fixed-length entries, and reads the corresponding sign bit, and writes them to the send buffer one by one. 4.4 Bucket Data Exchange: Each compute node sends the bucket data in its send buffer to the corresponding compute node via the message passing interface in a non-blocking full exchange manner and writes it into the corresponding receive buffer. 4.5 Unpacking and Merging: Each receiving computing node reads the grid vector coordinates, sign bit, and square length of the fixed-length entries one by one according to the number of local bucket entries received and their starting offset in the receiving buffer, and merges them with the local local bucket entries retained locally; the local local bucket entries corresponding to the same bucket center and the local bucket entries received from other computing nodes together constitute a complete bucket.
9. The security authentication method based on distributed heterogeneous lattice sieves according to claim 2, characterized in that, The aforementioned orientation alignment and in-bucket parallel reduction specifically include: 5.1 Sign bit re-encoding and data upload: After each computing node encodes the sign bit in the complete bucket formed in step 4 into a half-precision floating-point number, each computing node uploads the grid vector coordinates, the encoded sign bit, and the square length to the graphics processor of its own computing node. 5.2 Orientation Alignment: The graphics processor of this compute node performs orientation alignment on the grid vectors in the complete bucket according to the encoded sign bit. That is, when the encoding value is +1.0, the coordinates of the corresponding grid vector remain unchanged, and when the encoding value is -1.0, all the coordinates of the corresponding grid vector are inverted, so that the direction of the grid vectors in the same complete bucket is consistent with the direction of the center of the corresponding bucket. 5.3 Parallel Reduction: The graphics processor of this computing node performs projection transformation and half-precision transformation on the orientation-aligned complete bucket. The tensor kernel of the graphics processor performs batch inner product operation on the grid vector pairs in the complete bucket and filters the grid vector pairs according to the inner product threshold. The post-processing kernel function calculates the square length of the corresponding difference vector based on the filtered grid vector pairs and writes the two position indices and the square length in the complete bucket into the output array of the graphics processor. 5.4 Result Feedback: The graphics processor feeds back the number of reduction results, the two position indices within the complete bucket, and the corresponding square lengths to the host-side buffer; this compute node reads the above data from the host-side buffer and organizes it into a list of reduction results for this complete bucket.
10. The security authentication method based on distributed heterogeneous lattice sieves according to claim 2, characterized in that, The aforementioned candidate review specifically includes: 6.1 Combination Direction Determination: Each computation node determines the first cell vector x from the corresponding complete bucket based on the first and second position indices recorded in the reduction result list within the complete bucket. i Second cell vector x j Specifically, the sign bits of the two lattice vectors are directly taken from the corresponding entries in the complete bucket without recalculation; then, an XOR operation is performed on the two sign bits: when the XOR result is 0, the candidate lattice vector is determined to be v=x. i -x j When the XOR result is 1, the candidate lattice vector is determined to be v=x. i +x j ; 6.2 Candidate Length Verification: Each computation node verifies the candidate length based on the squared length in the reduction result and the first grid vector x. i Second cell vector x j Given the square length of each element, derive x. i With x j The inner product between the two is calculated and the square length of the candidate lattice vector v is calculated according to the determined combination direction; the square length of the candidate lattice vector v is compared with the length boundary of the current round, and the candidate lattice vectors that meet the length condition are retained, while the rest of the candidate lattice vectors are discarded.
