CN110866285A - PDF batch seal verification method based on GPU - Google Patents
PDF batch seal verification method based on GPU Download PDFInfo
- Publication number
- CN110866285A CN110866285A CN201911010945.0A CN201911010945A CN110866285A CN 110866285 A CN110866285 A CN 110866285A CN 201911010945 A CN201911010945 A CN 201911010945A CN 110866285 A CN110866285 A CN 110866285A
- Authority
- CN
- China
- Prior art keywords
- electronic signature
- signature
- hash
- gpu
- hash value
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000012795 verification Methods 0.000 title claims abstract description 20
- 238000000034 method Methods 0.000 title claims abstract description 14
- 238000004364 calculation method Methods 0.000 abstract description 3
- 238000012545 processing Methods 0.000 abstract description 3
- 238000004891 communication Methods 0.000 abstract description 2
- 238000012790 confirmation Methods 0.000 abstract description 2
- 230000000694 effects Effects 0.000 abstract description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000007547 defect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/64—Protecting data integrity, e.g. using checksums, certificates or signatures
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Bioethics (AREA)
- General Health & Medical Sciences (AREA)
- Computer Hardware Design (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Storage Device Security (AREA)
Abstract
The invention discloses a confirmation method of digital communication, and particularly relates to a PDF batch seal verification method based on a GPU. Reading an electronic signature in an electronic signature form in PDF through equipment configured with a GPU; reading the data byte range protected by the signature, calculating the hash value of the electronic signature protection data, obtaining a hash value by using a public key and an asymmetric encryption algorithm, and comparing the two values to confirm whether the two values pass or not. The invention has the advantages that the effect of batch processing can be realized, and the safety of data is ensured by matching with the processes of Hash calculation and asymmetric decryption.
Description
Technical Field
The invention relates to a confirmation method of digital communication, in particular to a PDF batch seal verification method based on a GPU.
Background
The existing electronic signature verification technology uses a serial processor (such as a CPU) to complete a calculation task in a signature process, and serial verification refers to verifying one signature and then verifying the next. With the popularization of electronic signature technology, a large number of electronic signatures may need to be verified for one electronic contract at present, a long time is required for all electronic signatures in one electronic contract to be verified, and the requirement of electronic signature verification service is increasing. The efficiency of serial signature verification is too low.
In order to realize efficiency, particularly under the condition that mass electronic signatures need to be verified, how to realize high efficiency becomes a problem to be solved in the prior art; because the gap is not large if the number to be verified is not large.
A Graphics processor (abbreviated as GPU), also called a display core, a visual processor, and a display chip, is a microprocessor that is specially used for image and Graphics related operations on a personal computer, a workstation, a game machine, and some mobile devices (such as a tablet computer, a smart phone, etc.). When a large number of signatures need to be verified, the method has higher overall verification speed.
The principle is that the GPU has stronger parallel computing capability compared with the CPU, and the core of electronic signature verification is Hash computation and asymmetric decryption.
Disclosure of Invention
Aiming at the defects in the prior art, the invention provides a method for realizing efficient processing of seal verification.
The invention is realized by the following technical scheme:
a PDF batch seal verification method based on a GPU is characterized by comprising the following steps:
(1) reading an electronic signature in an electronic signature form in PDF through equipment configured with a GPU;
(2) reading a signature-protected data byte range from the electronic signature content; the digital signature is used for protecting data from tampering, and naturally has a data protection range;
(3) reading the protected data in the file according to the data byte range protected by the electronic signature;
(4) calculating a hash value of the electronic signature protection data according to the hash algorithm type marked in the electronic signature information, and marking the hash value as hash 1;
(5) decrypting the digital signature in the electronic signature content by using a public key provided in the electronic signature and the type of the asymmetric encryption algorithm to obtain a hash value, and recording the hash value as hash 2;
(6) compare if hash1 is equivalent to hash 2; if the two are the same, the verification is successful; if not, the verification fails.
In the present invention, Adobe software uses the expression "verify signature", which means to verify electronic signature, and here "signature" and "signature" have a semantic meaning. However, the digital signature is another thing, which is generated by cryptography, and is the core of the electronic signature, and the electronic signature is added with information such as a picture, a place, a signature reason and the like on the basis of the digital signature.
The hash referred to in this application may also be represented by a hash or digest. There are many algorithms for hashing, commonly known as sha1, sha256, md5, etc.; asymmetric encryption, which means that encryption and decryption use different keys, is called asymmetric encryption. Common asymmetric encryption algorithms are rsa, ecc, sm 2. And (3) a digital signature, wherein the most core content of the digital signature is obtained by encrypting the hash value by using asymmetric encryption.
Has the advantages that: in the invention, the GPU is used for verifying the electronic signature and the electronic signature, the effect of batch processing can be realized, and the safety of data is ensured by matching with the processes of Hash calculation and asymmetric decryption.
Drawings
FIG. 1 is a schematic flow chart of the implementation process of the invention
Detailed Description
The following detailed description of the invention is made with reference to the accompanying drawings:
example 1
The operation is carried out according to the flow shown in figure 1:
(1) reading an electronic signature in an electronic signature form in PDF through equipment configured with a GPU;
(2) reading a signature-protected data byte range from the electronic signature content; the digital signature is used for protecting data from tampering, and naturally has a data protection range;
(3) reading the protected data in the file according to the data byte range protected by the electronic signature;
(4) calculating a hash value of the electronic signature protection data according to the hash algorithm type marked in the electronic signature information, and marking the hash value as hash 1;
(5) decrypting the digital signature in the electronic signature content by using a public key provided in the electronic signature and the type of the asymmetric encryption algorithm to obtain a hash value, and recording the hash value as hash 2;
(6) compare if hash1 is equivalent to hash 2; if the two are the same, the verification is successful; if not, the verification fails.
With the PDF file containing an electronic signature as an example here, the electronic signature can be viewed and verified by opening using an Adobe or Foxit reader.
After the electronic signature is opened, 1 electronic signature can be seen, and the information of the electronic signature in the electronic signature can be checked by clicking and selecting the signature attribute.
And clicking the verification signature to verify.
Claims (1)
1. A PDF batch seal verification method based on a GPU is characterized by comprising the following steps:
(1) reading an electronic signature in an electronic signature form in PDF through equipment configured with a GPU;
(2) reading a signature-protected data byte range from the electronic signature content;
(3) reading the protected data in the file according to the data byte range protected by the electronic signature;
(4) calculating a hash value of the electronic signature protection data according to the hash algorithm type marked in the electronic signature information, and marking the hash value as hash 1;
(5) decrypting the digital signature in the electronic signature content by using a public key provided in the electronic signature and the type of the asymmetric encryption algorithm to obtain a hash value, and recording the hash value as hash 2;
(6) compare if hash1 is equivalent to hash 2; if the two are the same, the verification is successful; if not, the verification fails.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911010945.0A CN110866285A (en) | 2019-10-23 | 2019-10-23 | PDF batch seal verification method based on GPU |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911010945.0A CN110866285A (en) | 2019-10-23 | 2019-10-23 | PDF batch seal verification method based on GPU |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110866285A true CN110866285A (en) | 2020-03-06 |
Family
ID=69653122
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911010945.0A Pending CN110866285A (en) | 2019-10-23 | 2019-10-23 | PDF batch seal verification method based on GPU |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110866285A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101702150A (en) * | 2009-12-02 | 2010-05-05 | 江西金格网络科技有限责任公司 | Method for protecting, verifying and repealing content of PDF document page |
CN103324877A (en) * | 2012-03-16 | 2013-09-25 | 三星电子株式会社 | Apparatus and method for electronic signature verification |
CN105490802A (en) * | 2015-11-27 | 2016-04-13 | 桂林电子科技大学 | Improved SM4 parallel encryption and decryption communication method based on GPU (Graphics Processing Unit) |
CN109902505A (en) * | 2017-12-11 | 2019-06-18 | 方正国际软件(北京)有限公司 | A kind of storage of Electronic Signature, verification method and device |
-
2019
- 2019-10-23 CN CN201911010945.0A patent/CN110866285A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101702150A (en) * | 2009-12-02 | 2010-05-05 | 江西金格网络科技有限责任公司 | Method for protecting, verifying and repealing content of PDF document page |
CN103324877A (en) * | 2012-03-16 | 2013-09-25 | 三星电子株式会社 | Apparatus and method for electronic signature verification |
CN105490802A (en) * | 2015-11-27 | 2016-04-13 | 桂林电子科技大学 | Improved SM4 parallel encryption and decryption communication method based on GPU (Graphics Processing Unit) |
CN109902505A (en) * | 2017-12-11 | 2019-06-18 | 方正国际软件(北京)有限公司 | A kind of storage of Electronic Signature, verification method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9331856B1 (en) | Systems and methods for validating digital signatures | |
CN106919811B (en) | File detection method and device | |
CN103210396A (en) | Method and apparatus including architecture for protecting sensitive code and data | |
US11227037B2 (en) | Computer system, verification method of confidential information, and computer | |
US9338012B1 (en) | Systems and methods for identifying code signing certificate misuse | |
CN112347508A (en) | Block chain data sharing encryption and decryption method and system | |
CN111222178B (en) | Data signature method and device | |
WO2023142440A1 (en) | Image encryption method and apparatus, image processing method and apparatus, and device and medium | |
CN112346759A (en) | Firmware upgrading method and device and computer readable storage medium | |
CN107665314B (en) | The trusted processes method and device signed on the electronic document | |
CN113688399A (en) | Firmware digital signature protection method and device, computer equipment and storage medium | |
CN109299944B (en) | Data encryption method, system and terminal in transaction process | |
CN111585995A (en) | Method and device for transmitting and processing safety wind control information, computer equipment and storage medium | |
CN114553532A (en) | Data secure transmission method and device, electronic equipment and storage medium | |
CN114499859A (en) | Password verification method, device, equipment and storage medium | |
CN104639313B (en) | A kind of detection method of cryptographic algorithm | |
CN111368322B (en) | File decryption method and device, electronic equipment and storage medium | |
EP4084484A1 (en) | Method and device for encryption of video stream, communication equipment, and storage medium | |
CN116401718A (en) | Block chain-based data protection method and device, electronic equipment and storage medium | |
KR102017379B1 (en) | A method and apparatus for hash encryption using image vector processing | |
CN112567371A (en) | Authentication of documents | |
CN110866285A (en) | PDF batch seal verification method based on GPU | |
CN111935163B (en) | Data joint processing method and device for protecting privacy | |
CN115001768A (en) | Data interaction method, device and equipment based on block chain and storage medium | |
US9647846B1 (en) | Systems and methods for verifying the authenticity of graphical images |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200306 |