PDF file digital signature and verification method and system
A digital signature and file technology, applied in digital transmission systems, transmission systems, digital data protection, etc., can solve problems such as hidden signature invalidation, and achieve the effect of security guarantee
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0044] see Figure 4 Shown, a kind of PDF file digital signature method comprises the following steps:
[0045] Step S101 , acquiring the data to be authenticated (Array) of the PDF file to be signed and the data length (Length) of the data to be authenticated.
[0046] As a preferred embodiment, the data to be authenticated obtained in the present invention can be the entire content of the PDF file to be signed; the data length of the obtained data to be authenticated can be the length of the PDF file to be signed .
[0047] Step S102, constructing the original text (Text) of the digital signature according to the data to be authenticated Array and the data length Length; the details can be as follows: Text=Length||Array; where the || symbol represents a concatenation operation; Length is a 32-bit integer value .
[0048] Step S103, calculating a digital signature value according to the original text of the digital signature, the user's public key certificate and the user'...
Embodiment 2
[0058] By adding a hidden signature to the PDF file in the first embodiment above, any original PDF text can be authenticated. This embodiment provides a method in which the added hidden signature only authenticates the data bound by UR3. see Figure 5 Shown, a kind of PDF file digital signature method comprises the following steps:
[0059] Step S201, obtain the UR3 dictionary of the PDF file to be signed, and read the byte range (ByteRange) in the UR3 dictionary, and then go to step S202.
[0060] Step S202, calculate the data length of the PDF file according to the byte range ByteRange, and obtain the data to be authenticated of the PDF file according to the data length. Specifically, since the ByteRange format of UR3 is {Offset1, Length1, Offset2, Length2}, the data length Length=Offset2+Length2 can be calculated accordingly; and starting from offset address 0, read the data Array of Length bytes ( That is, data to be authenticated), these data are form data with UR3 si...
Embodiment 3
[0067] Corresponding to Embodiment 1 and Embodiment 2 above, the present invention also provides a PDF file digital signature system, such as Image 6 shown, including:
[0068] Data obtaining module 101, for obtaining the data to be authenticated and the data length of the PDF file to be signed;
[0069] Original text construction module 102, for constructing the original text of digital signature according to described data to be authenticated and data length;
[0070] The digital signature value calculation module 103 is used to calculate the digital signature value according to the original text of the digital signature, the user public key certificate and the user private key;
[0071] A digital signature adding module 104, configured to write the digital signature value into the PDF file.
[0072] As a preferred embodiment, the digital signature adding module 104 may include:
[0073] The digital signature dictionary adding module is used to add a digital signature di...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com