A distributed data signature verification method and device
By segmenting the digital signature and matching it with the cloud server by geographical location number, distributed parallel processing is achieved, solving the problems of low efficiency and high cost of data signature verification in the existing technology, and improving the computing power utilization of cloud services. rate and data storage speed.
Patent Information
- Application Number
- CN202310896689.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-20
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2043-07-20
AI Technical Summary
Existing technologies for data signature verification in the big data era are costly and inefficient, making it difficult to meet rapid verification and storage requirements. Especially in face recognition applications, multiple calculations and server participation are required, resulting in a waste of resources.
By segmenting the digital signature into N segments of values, and numbering the cloud server into M segments of values according to geographical location, matching is performed to select the appropriate server for verification, and hash operations are used to increase random discreteness and achieve distributed parallel processing. , give full play to the computing power of cloud services.
It improves the efficiency of signature calculation and verification, reduces the occupation of hardware and communication resources, realizes fast data storage and verification, and avoids resource accumulation and congestion.
Smart Images

Figure CN117134918B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing, and in particular to a distributed data signature verification method and device. Background Art
[0002] In the era of big data, cloud services are the foundation of big data. Various data are generated, transmitted, and stored in the network, so the authenticity of all these data needs to be identified and verified. Efficient methods and technologies are needed to achieve the best results in data applications. For example, in face recognition applications, how can we quickly find the corresponding information in the database for the collected facial feature information? Because the amount of data will be relatively large, and it needs to be verified and calculated many times, many servers are needed to participate in the signature operation of big data in order to store more data.
[0003] Existing technical solutions basically rely on the computing power of CA certification centers and the expansion of network bandwidth to meet the increasing number of big data signatures and verification processing, and there are also methods that use offline calculation verification. These methods require a relatively large investment in infrastructure upgrades, or increase the cost of terminals to achieve stronger verification capabilities. Summary of the invention
[0004] In response to the above technical problems, the present invention provides a distributed data signature verification method and device to ensure higher efficiency of signature calculation and signature verification.
[0005] A first aspect of the present invention provides a distributed data signature verification method, comprising:
[0006] The digital signature value is segmented into N segments of values, and the digital signature belongs to CA authentication;
[0007] Numbering the cloud servers that perform CA authentication, and segmenting the number into M segments of values;
[0008] At least one of the N numerical values of the digital signature is matched with the M numerical values of the number. If the match is successful, the cloud server corresponding to the successfully matched number is selected to verify the digital signature; wherein N and M are both greater than 1.
[0009] In an optional implementation manner, the segmentation of the digital signature value into N segments of values includes:
[0010] A hash operation is performed on the value of the digital signature to obtain H_SIGN, so as to increase the random discreteness of the value of the digital signature.
[0011] In an optional implementation manner, the segmentation of the digital signature value into N segments of values includes:
[0012] The H_SIGN is divided into four segments, each segment contains four bytes.
[0013] In an optional implementation manner, the cloud servers that perform CA authentication are numbered, and the numbering is segmented into M segments of values, including:
[0014] The cloud servers are numbered according to their geographical locations, and the numbers are segmented into four sections, wherein the first section represents the province, the second section represents the city, the third section represents the district, and the fourth section represents the IP address of the cloud server.
[0015] In an optional embodiment, each of the N segments of numerical values includes a four-byte numerical range, and the number range of provinces where cloud servers are installed corresponds to the four-byte numerical range; the number range of the cities corresponding to the provinces corresponds to the four-byte numerical range; and the number range of the areas corresponding to the cities corresponds to the four-byte numerical range.
[0016] In an optional implementation, the province numbers include eight, and the four-byte numerical values 0 to 4294967295 are divided into eight segments, each segment corresponding to a number.
[0017] In an optional embodiment, the distributed data signature verification method further includes storing a characteristic value corresponding to the digital signature, and storing the characteristic value in a corresponding cloud server based on a matching result between at least one of the N segments of the digital signature and the M segments of the numbered values.
[0018] A second aspect of the present invention provides a distributed data signature verification device, comprising:
[0019] A first segment processing module, used for segmenting the numerical value of the digital signature into N segments of numerical values, wherein the digital signature belongs to CA authentication;
[0020] A second segment processing module is used to number the cloud servers that perform CA authentication, and segment the number into M segments of values;
[0021] A verification module is used to match at least one of the N segments of the digital signature with the M segments of the number. If the match is successful, the cloud server corresponding to the successfully matched number is selected to verify the digital signature; wherein N and M are both greater than 1.
[0022] According to a third aspect of the present invention, there is provided an electronic device, comprising:
[0023] At least one processor; and at least one memory communicatively connected to the processor, wherein: the memory stores program instructions executable by the processor, and the processor calls the program instructions to execute the method described in the first aspect of the embodiment of the present invention.
[0024] According to a fourth aspect of the present invention, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a computer, the method according to the first aspect of the embodiment of the present invention is executed.
[0025] Based on the existing facilities, the present invention adopts the computing power of multiple decentralized authentication centers to participate in signing and verification at the same time, so as to achieve the effect of distributed parallel processing and give full play to the computing power of cloud services; at the same time, it ensures that the signature operation and signature verification are more efficient, faster and in a shorter time. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 The figure is a flow chart of a distributed data signature verification method in an embodiment of the present invention.
[0027] Figure 2 The figure is a flow chart of another distributed data signature verification method in an embodiment of the present invention.
[0028] Figure 3 The figure is a flow chart of another distributed data signature verification method in an embodiment of the present invention.
[0029] Figure 4 Schematic diagram of a module of a distributed data signature verification device in an embodiment of the present invention. DETAILED DESCRIPTION
[0030] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0031] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0032] A digital signature (also known as a public key digital signature) is a string of numbers that can only be generated by the sender of the information and cannot be forged by others. This string of numbers is also an effective proof of the authenticity of the information sent by the sender. It is a method for authenticating digital information, similar to an ordinary physical signature written on paper, but implemented using public key encryption technology. A set of digital signatures usually defines two complementary operations, one for signing and the other for verification. Digital signatures are the application of asymmetric key encryption technology and digital summary technology.
[0033] When sending a message, the sender uses a hash function to generate a message digest from the message text, and then encrypts the digest with the sender's private key. The encrypted summary will be sent to the receiver together with the message as the digital signature of the message. The receiver first uses the same hash function as the sender to calculate the message digest from the original message received, and then uses the public key to decrypt the digital signature attached to the message. If the two digests are the same, the receiver can confirm that the message is from the sender.
[0034] Based on the existing facilities, the present invention uses the computing power of multiple decentralized authentication centers to participate in signing and verification at the same time, achieving the effect of distributed parallel processing, so that the computing power of cloud services can be fully utilized. In the present invention, the feature information is layered into multiple levels, and the corresponding storage server is found through the layered method, and then verified and queried in the server. In this way, different layered information can divert facial feature information, and these feature information have good randomness, so the diversion results will not be clustered, thereby improving efficiency.
[0035] See also Figure 1 The present invention provides a distributed data signature verification method, comprising:
[0036] Step 110: Segment the numerical value of the digital signature into N segments of numerical values (N is greater than 1), and the digital signature belongs to CA certification.
[0037] A digital signature is also called a digital digest and has a fixed length. The present invention performs a hash operation on the result of the digital signature to obtain H_SIGN. H_SGN is the calculation result obtained by performing a hash operation on the data. The hash operation is a secure hash algorithm (English: Secure Hash Algorithm, abbreviated as SHA), which is a family of cryptographic hash functions and a secure hash algorithm certified by FIPS. It is an algorithm that can calculate a fixed-length string (also called a message digest) corresponding to a digital message. And if the input messages are different, the probability that they correspond to different strings is very high.
[0038] In this step, the digital signature value is hashed to obtain H_SIGN to increase the random discreteness of the digital signature value. Because the numerical characteristic of the digital signature is a highly discrete value with a very low repetition rate, the random discreteness will be enhanced after the HASH operation. Using the characteristics of this random discrete characteristic value, H_SIGN is further segmented to facilitate matching different cloud servers to process CA authentication services. Usually H_SIGN is a 16-byte data, which can be divided into 4 segments, each with 4 bytes.
[0039] Step 120: number the cloud servers that perform CA authentication, and segment the number into M (M is greater than 1) segments.
[0040] For example, the cloud servers are numbered according to their geographical locations, and are also numbered in four sections. For example, the first section represents the province, the second section represents the city, the third section represents the district, and the fourth section represents the specific cloud server IP.
[0041] Step 130: Match at least one of the N numerical values of the digital signature with the M numerical values of the number. If the match is successful, select the cloud server corresponding to the successfully matched number to verify the digital signature.
[0042] Specifically, the first three segments of the H_SIGN value are matched with the first three segments of the cloud server number. Once matched, the cloud server IP corresponding to the fourth segment is selected to call the cloud server to verify the signature data.
[0043] For details, please refer to Figure 2 , the distributed data signature verification method comprises the following steps:
[0044] Step 210: Divide the H_SIGN into four segments, each segment contains four bytes.
[0045] 4 bytes can represent values from 0 to 4294967295, and the four segments are four values from 0 to 4294967295 respectively.
[0046] Step 220: Divide the number into four value ranges.
[0047] For example, if there are 8 provinces in China with data centers, 0-4294967296 is divided into 8 segments, and different segments correspond to different provinces. If the province number contains eight, the four-byte value 0 to 4294967295 is divided into eight segments, and each value range corresponds to a number.
[0048] Accordingly, the cloud servers are numbered according to their geographical locations, and the numbers are segmented into four segments, wherein the first segment represents the province, the second segment represents the city, the third segment represents the district, and the fourth segment represents the IP address of the cloud server.
[0049] For example, 4294967296 is divided into four segments, and the value of each segment is 1073741824. 1073741824--2147483648--3221225472--4294967296 are the four segment extreme values; if it is divided into eight segments, the value of each segment is 536870912. For example, Sichuan Province has 32 cities, so 0-4294967296 can be divided into 32 segments, and the divisions can also be divided in the same way, with as many segments as there are districts and cities. Of course, not every urban area has a server, so the number of segments can be determined based on the actual situation. For example, the segment range of cities and districts can be 0-4294967296, which includes all four-byte values.
[0050] Step 230: Match the four bytes with the four value ranges respectively.
[0051] From the above, it can be seen that each of the N segments of numerical values contains a four-byte numerical range, and the number range of the provinces where cloud servers are installed corresponds to the four-byte numerical range; the number range of the cities corresponding to the provinces corresponds to the four-byte numerical range; and the number range of the areas corresponding to the cities corresponds to the four-byte numerical range.
[0052] Step 240: If the four bytes of the digital signature match the four-segment number, the cloud server IP corresponding to the four-segment number is called to verify the digital signature. The first three segments of the H_SIGN value are matched with the first three segments of the cloud server number. Once they match, the cloud server IP corresponding to the fourth segment is selected to call the cloud server responsible for verifying the signature data.
[0053] Based on the existing cloud server facilities, the present invention uses the computing power of multiple decentralized authentication centers to participate in signing and verification at the same time, achieving the effect of distributed parallel processing, so that the computing power of cloud services can be fully utilized. In the present invention, the feature information is layered into multiple levels, and the corresponding storage server is found through the layered method, and then verified and queried in the server. In this way, different layered information can divert facial feature information, and these feature information have good randomness, so the diversion results will not be clustered, thereby improving efficiency.
[0054] Furthermore, the present invention also includes verifying the digital signature that needs to save the characteristic value. Figure 3 As shown,
[0055] Step 310: Divide the H_SIGN into four segments, each segment contains four bytes.
[0056] Step 320: Divide the number into four value ranges.
[0057] Step 330: Match the four segments of bytes with the four segments of value ranges respectively.
[0058] Step 340: If the four bytes of the digital signature match the four-segment number, the cloud server IP corresponding to the four-segment number is called to verify the digital signature.
[0059] Step 350: Store the characteristic value corresponding to the digital signature, and store the characteristic value in the corresponding cloud server according to the matching result of at least one of the N value segments of the digital signature and the M value segments of the number.
[0060] For digital signatures that need to save feature values, when the signature is first generated, the above method is also used to calculate H_SIGN, and then the same segmentation method is used to find the matching server and store the feature value in the corresponding server. Each subsequent verification will also be done through matching to find the corresponding server for verification. This allows data storage and verification calculations to use server resources in a balanced manner without crowding and congestion, greatly improving the utilization of hardware and communication resources.
[0061] See also Figure 4 The present invention also provides a distributed data signature verification device, comprising:
[0062] A first segment processing module 41 is used to segment the value of the digital signature into N segments of values, wherein the digital signature belongs to CA authentication;
[0063] A second segment processing module 42 is used to number the cloud servers that perform CA authentication, and segment the number into M segments of values;
[0064] The verification module 43 is used to match at least one of the N segments of the digital signature with the M segments of the number. If the match is successful, the cloud server corresponding to the successfully matched number is selected to verify the digital signature; wherein N and M are both greater than 1.
[0065] Furthermore, the first segment processing module 41 is further configured to perform a hash operation on the value of the digital signature to obtain H_SIGN, so as to increase the random discreteness of the value of the digital signature; and to divide the H_SIGN into four segments, each segment containing four bytes.
[0066] The second segment processing module 42 is also used to number the cloud servers according to their geographical locations, and segment the numbers into four segments, where the first segment represents the province, the second segment represents the city, the third segment represents the district, and the fourth segment represents the IP address of the cloud server.
[0067] Each of the N value segments includes a four-byte value range, and the number range of the province where the cloud server is located corresponds to the four-byte value range. The province number includes eight, and the four-byte value corresponding to 0 to 4294967295 is divided into eight segments, and each segment corresponds to a number.
[0068] The storage verification module 43 is also used to correspond the number range of the city corresponding to the province to the range of the four-byte value; and to correspond the number range of the area corresponding to the city to the range of the four-byte value. The distributed data signature verification device also includes a storage verification module, which is used to store the characteristic value corresponding to the digital signature, and store the characteristic value in the corresponding cloud server according to the matching result of at least one of the N value segments of the digital signature and the M value segments of the number.
[0069] The present invention also provides an electronic device, comprising:
[0070] At least one processor; and at least one memory in communication with the processor, wherein: the memory stores program instructions that can be executed by the processor, and the processor calls the program instructions to execute the above-mentioned distributed data signature verification method.
[0071] The present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the above-mentioned distributed data signature verification method is implemented.
[0072] It can be understood that computer-readable storage media may include: any entity or device capable of carrying a computer program, recording media, USB flash drives, mobile hard disks, magnetic disks, optical disks, computer memory, read-only memory (ROM), random access memory (RAM), and software distribution media, etc. A computer program includes computer program code. The computer program code may be in source code form, object code form, executable file, or some intermediate form, etc. A computer-readable storage medium may include: any entity or device capable of carrying a computer program code, recording media, USB flash drives, mobile hard disks, magnetic disks, optical disks, computer memory, read-only memory (ROM), random access memory (RAM), and software distribution media, etc.
[0073] In certain embodiments of the present invention, the device may include a controller, which is a single-chip microcomputer chip that integrates a processor, a memory, a communication module, etc. The processor may refer to a processor included in the controller. The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc.
[0074] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present invention belong.
[0075] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0076] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A distributed data signature verification method, characterized in that: include: The digital signature value is segmented into N segments of values, and the digital signature belongs to CA authentication; Numbering the cloud servers that perform CA authentication, and segmenting the number into M segments of values; Matching at least one of the N segments of the digital signature with the M segments of the number, and if the match is successful, selecting the cloud server corresponding to the successfully matched number to verify the digital signature; Where N and M are both greater than 1; The digital signature value is segmented into N segments of values, including: Perform a hash operation on the value of the digital signature to obtain H_SIGN, so as to increase the random discreteness of the value of the digital signature; The digital signature value is segmented into N segments of values, including: Divide the H_SIGN into four segments, each segment contains four bytes; The step of numbering the cloud servers that perform CA authentication and segmenting the number into M value segments includes: The cloud servers are numbered according to their geographical locations, and the numbers are segmented into four segments, wherein the first segment represents the province, the second segment represents the city, the third segment represents the district, and the fourth segment represents the IP address of the cloud server; Each of the N segments of values includes a four-byte value range, and the number range of the province where the cloud server is located corresponds to the four-byte value range; the number range of the city corresponding to the province corresponds to the four-byte value range; the number range of the district corresponding to the city corresponds to the four-byte value range; The province codes include eight, and the four-byte values 0 to 4294967295 are divided into eight segments, each segment corresponding to a number; It also includes storing a characteristic value corresponding to the digital signature, and storing the characteristic value in a corresponding cloud server according to a matching result between at least one of the N value segments of the digital signature and the M value segments of the number.
2. A distributed data signature verification device, characterized in that: include: A first segment processing module, used for segmenting the numerical value of the digital signature into N segments of numerical values, wherein the digital signature belongs to CA authentication; A second segment processing module is used to number the cloud servers that perform CA authentication, and segment the number into M segments of values; A verification module, used to match at least one of the N value segments of the digital signature with the M value segments of the number, and if the match is successful, select the cloud server corresponding to the successfully matched number to verify the digital signature; Where N and M are both greater than 1; The digital signature value is segmented into N segments of values, including: Perform a hash operation on the value of the digital signature to obtain H_SIGN, so as to increase the random discreteness of the value of the digital signature; The digital signature value is segmented into N segments of values, including: Divide the H_SIGN into four segments, each segment contains four bytes; The step of numbering the cloud servers that perform CA authentication and segmenting the number into M value segments includes: The cloud servers are numbered according to their geographical locations, and the numbers are segmented into four segments, wherein the first segment represents the province, the second segment represents the city, the third segment represents the district, and the fourth segment represents the IP address of the cloud server; Each of the N segments of values includes a four-byte value range, and the number range of the province where the cloud server is located corresponds to the four-byte value range; the number range of the city corresponding to the province corresponds to the four-byte value range; the number range of the district corresponding to the city corresponds to the four-byte value range; The province codes include eight, and the four-byte values 0 to 4294967295 are divided into eight segments, each segment corresponding to a number; It also includes storing a characteristic value corresponding to the digital signature, and storing the characteristic value in a corresponding cloud server according to a matching result between at least one of the N value segments of the digital signature and the M value segments of the number.
3. An electronic device, characterized in that: include: at least one processor; And at least one memory communicatively connected to the processor, wherein: the memory stores program instructions executable by the processor, and the processor calls the program instructions to execute the distributed data signature verification method as described in claim 1.
4. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is run by a computer, the distributed data signature verification method as claimed in claim 1 is executed.
Citation Information
Patent Citations
RAID5 based security authentication method in object storage system
CN105404560A
Information calling method
CN107222559A
Service tracking method and apparatus, terminal device and storage medium
CN108418790A
Terminal device trusted verification method and device, and terminal device
CN108965315A
File distributed storage method and device, node server
CN109408463A
