Method, device and medium for detecting the total data integrity of a single set of electronic archive files

Through the combination of electronic signature and national cryptographic encryption algorithm, the data integrity of electronic archive files is detected and ensured, which solves the problem that existing systems cannot detect the number of file bytes and total number of files, and realizes the integrity of electronic archive data.

CN117910011BActive Publication Date: 2024-11-12CHONGQING AOXIONG INFORMATION TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410076060.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-18
Publication Date
2024-11-12
Estimated Expiration
2044-01-18

AI Technical Summary

Technical Problem

When the existing electronic file handover and receiving system detects the integrity of the total amount of electronic file data, it cannot effectively detect the number of file bytes, and the total number of pieces may be tampered with during the transmission process, failing to ensure the integrity of the data.

Method used

Through electronic signature verification, electronic seal verification, and original handwriting electronic signature verification, electronic signature, electronic seal, and original handwriting electronic signature, establish an electronic file handover and reception registration form, obtain basic information metadata of electronic files, and perform file solidification and source value Comparison, the national cryptographic encryption algorithm is used to generate a unique HASH value to ensure the integrity of the number of bytes and total bytes of electronic files.

Benefits of technology

It realizes the integrity detection of the total amount of electronic file data, ensures the data integrity of electronic file during the handover and reception process, prevents data tampering, and complies with the General Requirements for the Management of Single Set of Electronic Files (DA/T 92-2022 )》Four-sex testing requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117910011B_ABST
    Figure CN117910011B_ABST
Patent Text Reader

Abstract

The present invention proposes a method for detecting the integrity of the total amount of data of a single set of electronic archive files. The method includes receiving the electronic archive files transferred by the business system, performing electronic signature verification, electronic seal verification, and original handwriting electronic signature verification, and then extracting a series of electronic signatures, electronic seals, and original handwriting electronic signatures; establishing an electronic file transfer and reception registration form, obtaining the basic information metadata of the electronic files, and converting them into fixed format files respectively to solidify the files; and performing source value comparison by a numerical comparison unit to complete the consistency detection of the total amount of transferred electronic file data. By detecting the "total amount of electronic file data integrity" of the number of files, the basic information metadata value of the electronic files, the total number of bytes of the electronic files, etc. of the received single set of electronic archive electronic files, the total amount of electronic file data of the electronic archive electronic files is guaranteed to be complete during the transfer of a single set of electronic files by the filing unit and during the reception of a single set of electronic files by the archiving unit.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of computer information processing, and in particular to a method for detecting the total amount integrity of a single set of electronic archive file data. Background Art

[0002] In the electronic archive transfer process, the filing unit logs in to the electronic archive transfer and receiving system, selects the archive item to be transferred, and fills in the electronic archive to be transferred, the name of the transfer unit, the number of transfer volumes (items), the name of the transferor, the name of the approver, the transfer date, the electronic seal image information of the filing archive, etc. on the form page generated by the system. At the same time, a file named "Basic Information Metadata of Electronic Archives.XML" is generated, which contains a list of electronic archive names, the name of the transfer unit, the number of transfer volumes (items), the name of the transferor, the name of the approver, the transfer date, the electronic seal image information of the filing archive, and the electronic file storage address information. When submitting the electronic archive transfer, the data is transmitted to the archiving unit receiving database through the data interface, and the electronic archive basic information metadata.XML file is transmitted and transferred to the archiving unit file receiving server.

[0003] In the electronic archive receiving stage, the archiving unit sends a review request to the receiving server, reviews the data submitted by the filing unit to the archiving unit's receiving database through the data interface, and parses the electronic archive basic information metadata .XML file received in the file receiving server.

[0004] The parsed electronic archive basic information metadata .XML file metadata is compared with the electronic archive name list, transfer unit name, number of transferred volumes (items), transferor name, approver name, transfer date, and file electronic seal image information transmitted to the receiving database through the data interface.

[0005] Download the electronic file to the receiving server of the archiving unit from the address corresponding to the electronic file storage address parsed from the .XML file of the basic information metadata of the electronic file, and parse the downloaded electronic file name and file quantity to see whether they correspond to the list of electronic file names and the number of transferred volumes (items) handed over by the filing unit. If all the names match and the quantities are the same, the integrity of the electronic file handover is verified to be passed; otherwise, the integrity of the electronic file is deemed to have failed.

[0006] The current electronic archive transfer and acceptance test on the "total amount of electronic file data integrity" is mainly based on whether the attribute data on the electronic archive transfer and acceptance form (electronic archive name list, transfer unit name, number of transferred volumes (items), transferor name, approver name, transfer date, file electronic seal image information, etc.) matches the generated "electronic archive basic information metadata.XML" content, and whether the name and quantity of the electronic file downloaded from the receiving server are consistent with the attribute data on the receiving form (electronic archive name list and quantity).

[0007] During the entire electronic archives "electronic file data total integrity" detection process:

[0008] Regarding electronic archives, "the total amount of electronic file data is tested. The fundamental purpose of the test is to ensure whether the total amount of electronic files and the total number of bytes of electronic file data are consistent in different links. The test method uses a computer system to automatically count the total number of items and the total number of bytes, and then compare the number with the relevant registration forms and metadata records to judge whether the total amount of data is consistent." Only the total number of items can be tested, but the total number of bytes is not. At the same time, whether the total number of items has been tampered with in the process is not reflected. Summary of the invention

[0009] In view of this, the present invention proposes a method for detecting the integrity of the total amount of data of a single set of electronic archive files. By detecting the "total amount of electronic file data integrity" of information such as the number of files in a single set of electronic archive electronic files, the metadata value of the basic information of the electronic files, and the total number of bytes of the electronic files, the method can ensure that the total amount of electronic file data of the electronic archives is complete during the transfer of a single set of electronic files by the filing unit and the receipt of a single set of electronic files by the archiving unit, and can ensure that the total number of items has not been tampered with during the process.

[0010] Specifically, a method for detecting the integrity of the total amount of data in a single set of electronic archive files, receiving the electronic archive files transferred by the business system, performing electronic signature verification, electronic seal verification, and original handwriting electronic signature verification, and then extracting a series of electronic signatures, electronic seals, and original handwriting electronic signatures; establishing an electronic file transfer and reception registration form, obtaining the basic information metadata of the electronic file, and converting them into fixed format files respectively; solidifying the number of bytes of the transferred electronic files, the total number of bytes, the number of bytes in the electronic file transfer and reception registration form format file, and the metadata format file; calling the numerical comparison service (Equals), the numerical comparison unit performs source value comparison, and completes the consistency detection of the total amount of transferred electronic file data.

[0011] Further preferably, the file solidification includes calling the national secret encryption algorithm to initialize the number of bytes of the received and transferred electronic files, the total number of bytes of the electronic files, and the number of bytes of the fixed-format electronic file transfer and reception registration form to generate a unique HASH value, using the sm9_init function to initialize the number of bytes of the original file, using the sm9_update function to update the number of bytes of the original file, appending the password identification sm9_compress_blocks unit to perform byte-appending password identification on the number of bytes of the transferred electronic files, the total number of bytes of the electronic files, and the number of bytes of the electronic file transfer and reception registration form converted into PDF, and using the block solidification in the sm9_finish function to implement the solidification of the number of bytes of the transferred electronic files, the total number of bytes of the electronic files, the number of bytes of the transfer and reception registration form, and the basic information metadata of the electronic files.

[0012] Further preferably, the source value comparison includes: the source value comparison String.equals unit calls functions sm9_init, sm9_update, and sm9_finish to respectively calculate the HASH value of the total number of electronic files in the transferred electronic file metadata set, the HASH value of the total number of electronic file bytes, and the number of bytes of the fixed format electronic file transfer and reception registration table, and encrypts and generates a HASH value, and compares them with the HASH value of the total number of electronic files, the HASH value of the total number of electronic file bytes, and the HASH value of the number of bytes of the electronic file transfer and reception registration table solidified in the archive file transfer package.

[0013] Further preferably, the electronic file transfer and reception registration form is converted into a unified format file, including: relying on the file application service component ActiveXComponent service, calling the getProperty method of the file object to receive the electronic file transfer and reception registration form file, obtaining the registration form file information, and converting the registration form file into a PDF format file, and converting the basic information metadata of the electronic file into an XML format file.

[0014] Further preferably, the initialization value of the number of bytes of the original file initialized using the sm9_init function includes but is not limited to 0x7380166F, 0x4914B2B9, 0x172442D7, 0xDA8A0600, 0xA96F30BC, 0x163138AA, 0xE38DEE4D, and 0xB0FB0E4E.

[0015] Further preferably, the file conversion service FileprocessingMLPackage service is called to execute the PDFExportAsFixedFormat.wdFormatPDF method to convert the electronic file transfer and reception registration form into a PDF format file to obtain an electronic file transfer and reception registration form in PDF format.

[0016] According to another aspect of the present application, an electronic device is proposed, comprising: a processor; and a memory for storing a program, wherein the program comprises instructions, which, when executed by the processor, cause the processor to execute the above-described method for detecting the integrity of the total amount of data in a single set of electronic archive files.

[0017] According to another aspect of the present application, the computer instructions are used to enable the computer to execute the above-mentioned method for detecting the integrity of the total amount of data in a single set of electronic archive files.

[0018] This method uses the implementation method of detecting the "total amount of electronic file data integrity" of a single set of electronic archives, which meets the four-quality detection requirements for the management of a single set of electronic archives in the "General Requirements for the Management of Single Sets of Electronic Archives (DA / T 92-2022)"; at the same time, through this method, the electronic files and electronic file metadata in a single set of electronic archives can complete the "total amount of electronic file data integrity" detection in the pre-archiving stage, ensuring that the total amount of electronic file data in the electronic archives is complete during the transfer of a single set of electronic archives by the filing unit and the receipt of a single set of electronic archives by the filing unit. Ensure the integrity of the total amount of electronic file data in the transfer and receipt of a single set of electronic archives. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 Schematic diagram of detecting the total amount of data integrity of a single set of electronic archive files in this exemplary embodiment;

[0020] Figure 2 Schematic diagram of detecting the total amount of electronic file data in the electronic archive in this exemplary embodiment;

[0021] Figure 3 Shown is a schematic diagram of the principle of an electronic device implementing the present application. DETAILED DESCRIPTION

[0022] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are 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 ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0023] In the following description of exemplary embodiments in conjunction with the accompanying drawings, more details, features and advantages of the present invention are disclosed. The following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0024] Unless otherwise specified, the terms (including technical terms) used herein have the commonly understood meanings to those skilled in the art. In addition, it is understood that the terms defined in commonly used dictionaries should be understood to have the same meanings as those in the context of the relevant fields, and should not be understood as idealized or overly formal meanings.

[0025] In order to make the technical content of the present invention clearer, the specific technical terms used in the present invention are explained below:

[0026] Electronic documents: Various information records in digital format that are formed, processed, transmitted and stored by computers and other electronic devices in the process of state agencies, social organizations or individuals performing their statutory duties or handling affairs. Electronic documents are composed of content, structure and background information.

[0027] Electronic files: Electronic files that have evidence, reference and preservation value and are archived.

[0028] Single electronic file: An original electronic file generated by an electronic device.

[0029] Integrity of the total amount of electronic file data: Integrity means that the information on the number of electronic files and the total number of bytes of electronic files in the electronic archives is complete and has not suffered any degree of damage.

[0030] Electronic seal: An electronic seal is a seal in the form of electronic data.

[0031] Electronic signature: Data contained or attached in electronic form in a data message that identifies the signatory and indicates that the signatory approves the content.

[0032] The present invention proposes a method for detecting the "total amount integrity of electronic file data" of a single set of electronic archives, and detects the "total amount integrity of electronic file data" of a single set of electronic archives transferred from a filing unit to an archiving unit (local archives). By detecting the "total amount integrity of electronic file data" of information such as the number of files in the received single set of electronic archives, metadata values ​​of basic information of the electronic files, and the total number of bytes of the electronic files, the total amount of electronic file data of the electronic archives is guaranteed to be complete during the transfer of the single set of electronic archives by the filing unit and during the reception of the single set of electronic archives by the archiving unit.

[0033] Figure 1 The figure shows a schematic diagram of a method for detecting the total amount of data integrity of a single set of electronic archives and electronic files in this exemplary embodiment. It includes:

[0034] Through electronic signature verification service, electronic seal verification service, original handwriting electronic signature verification service,

[0035] The detection of the total amount of electronic file data in electronic archives includes using file conversion PDF services to convert files into PDF format files, blockchain electronic file solidification services, and numerical comparison services.

[0036] Extract a series of electronic signatures, electronic seals, and original handwriting electronic signatures from electronic files that have been verified by electronic signatures, electronic seals, and original handwriting electronic signatures; convert electronic files into PDF format and other files; after numerical comparison services, compare the total amount of electronic file data calculated by the filing unit with the total amount of data calculated by the electronic file received by the archiving unit; call the blockchain solidification evidence service to complete the electronic file evidence and verification services; receive a single set of electronic files from the electronic file archiving unit; conduct a total amount of electronic data detection, and transfer a single set of electronic files from the electronic file filing unit.

[0037] According to the needs of certain links in the electronic documents transferred by the filing unit, electronic signature services are provided, including the use of digital signatures, original handwriting electronic signatures, and electronic seals.

[0038] First, in the detection of the total amount of data in a single set of electronic archive files, the electronic file transfer and acceptance registration form in the archive is first converted into a file in a unified format.

[0039] The file conversion PDF service converts the electronic file transfer and reception registration form file, the file application service component calls to obtain the file object to receive the electronic file transfer and reception registration form file, and references the file conversion service to convert the PDF file. The encryption algorithm is called to calculate the HASH value of the number of bytes of the transferred electronic file, the total number of bytes of the electronic file, the number of bytes of the electronic file transfer and reception registration form converted to PDF, and the electronic file basic information metadata XML format file.

[0040] For example, PDF and other file formats do not support conventional modification. If they are modified by technical means, the modified content of PDF can be traced. The modified content of PDF is stored in the text field and can be traced. Other files such as doc, docx, xls, xlsx, txt, etc. cannot be traced after modification. The PDF service for converting electronic files to PDF format files can also convert the transfer and reception registration form files to other file formats that do not support conventional modification, and convert the basic information metadata of electronic files into XML format files.

[0041] Relying on the file application service component ActiveXComponent service, call the getProperty method of the file object to receive the electronic file transfer and reception registration form file, obtain the registration form file information, and convert the registration form file into a PDF format file. Specifically, it can be done as follows: call the file conversion service FileprocessingMLPackage service, execute the PDF conversion method ExportAsFixedFormat.wdFormatPDF, convert the electronic file transfer and reception registration form into a PDF format file, and obtain a PDF format electronic file transfer and reception registration form.

[0042] The above method is used to prevent the electronic document transfer and acceptance registration form from being modified during the submission process.

[0043] Secondly, the electronic files are solidified by the number of bytes of the transferred electronic files, the total number of bytes of the electronic files, the number of bytes of the electronic file transfer and acceptance registration form after the format file is converted (such as PDF format), and the XML format file of the basic information metadata of the electronic files.

[0044] like Figure 2 Shown is a schematic diagram of detecting the total amount of electronic file data in an electronic archive in this exemplary embodiment.

[0045] For example, this exemplary embodiment uses the national encryption (SM9) algorithm to generate a unique HASH value, so as to realize the information solidification of the total number of bytes of electronic files, the number of bytes of the transfer and reception registration form, and the number of electronic files in the basic information metadata of electronic files.

[0046] First, the number of bytes of the electronic file received and transferred, the total number of bytes of the electronic file, the number of bytes of the electronic file transfer registration form converted into PDF, etc. are initialized and the initialization value is returned. For example, the initialization service sm9_init function can be used to initialize the number of bytes of the original file. The initialization value includes but is not limited to 0x7380166F, 0x4914B2B9, 0x172442D7, 0xDA8A0600, 0xA96F30BC, 0x163138AA, 0xE38DEE4D, and 0xB0FB0E4E. Secondly, use the update service s The m9_update function updates the number of bytes of the original file, and the password-appending sm9_compress_blocks unit adds a byte-appending password mark to the number of bytes of the transferred electronic file, the total number of bytes of the electronic file, and the number of bytes of the electronic file transfer and reception registration form converted into PDF; finally, the solidification lock block in the synthesis service sm9_finish function is used to solidify the number of bytes of the transferred electronic file, the total number of bytes of the electronic file, the number of bytes of the electronic file transfer and reception registration form converted into PDF, and the electronic file basic information metadata XML format file.

[0047] The above functions are used to solidify the number of bytes of electronic files, the total number of bytes, the number of bytes of the transfer and reception registration form, and the basic information metadata XML format file. The parameters in brackets in the figure are all custom input parameters (such as: Dispatchoc,"ExportAsFomat"pdffile wdF pmatPDF).

[0048] Finally, the numerical comparison service (Equals) is called in the electronic file receiving stage. The numerical comparison unit performs source value comparison String.equals to detect whether the number of archived electronic files has been changed.

[0049] In the source value comparison String.equals, the functions sm9_init, sm9_update, and sm9_finish are called again to solidify the total number of electronic files, the total number of electronic file bytes, and the number of bytes of the electronic file transfer and reception registration form converted into PDF in the received electronic file metadata set and obtain the encrypted HASH value, which is then compared with the HASH values ​​of the total number of electronic files, the total number of electronic file bytes, and the number of bytes of the electronic file transfer and reception registration form converted into PDF contained in the transfer package to complete the consistency test of the total amount of transferred electronic file data. In the String.equals test, the HASH values ​​of the total number of file bytes are compared respectively. The consistency of the HASH values ​​indicates that the number of electronic files, the number of electronic file bytes, the total number of electronic file bytes, and the number of bytes of the electronic file transfer and reception registration form converted into PDF are equal to the unique HASH value generated by the National Secret (SM9) encryption algorithm, and the file has not been tampered with.

[0050] For example, in the process of handing over and receiving electronic files of marriage registration business of the Civil Affairs Bureau, the filing file (Civil Affairs Bureau) needs to hand over and receive the electronic files online to the archiving unit (local archives).

[0051] During the electronic file transfer process, the Civil Affairs Bureau's business management system completes the marriage registration business and transfers the electronic files to the archiving unit (electronic files include but are not limited to: marriage registration review and processing form, application for marriage registration statement, marriage registration personal credit risk notice, marriage registration notice, identity card, household register, etc.). After selecting the electronic files that need to be archived, the electronic file transfer list is listed and converted into a PDF format electronic file transfer receipt (the receipt shall indicate but is not limited to: the total number of files, the number of bytes of a single file, and the total number of bytes of files). The filing unit shall add the electronic signature of the transferor's name on the filing unit side of the transfer receipt and stamp the electronic seal of the transferring unit.

[0052] At the same time, the electronic files listed on the electronic archive transfer receipt form, the electronic archive transfer receipt form (format: PDF), and the basic information metadata of the electronic files (format: XML, the metadata content includes but is not limited to: the list of electronic archive names, the name of the transfer unit, the number of transferred volumes (items), the number of file bytes, the total number of file bytes, the name of the transferor, the name of the approver, the transfer date, etc.) are solidified by calling the blockchain evidence solidification service, and the solidified HASH value is used to complete the electronic archive transfer work of the filing unit.

[0053] Electronic file receiving stage. The archiving unit (local archives) receives the electronic file transfer receipt, electronic files (including but not limited to: marriage registration review and processing form, marriage registration application statement, marriage registration personal credit risk notice, marriage registration notice, ID card, household register, etc.), electronic file basic information metadata XML format file, solidified HASH value, and electronic file interface transfer data from the filing unit (Civil Affairs Bureau). Through this invention, the "total amount of electronic file data integrity" of a single set of electronic files can be tested.

[0054] The present invention detects and processes only the number of electronic file bytes and the total number of electronic file bytes through the total amount of file data, thereby realizing the detection of the total amount of file data.

[0055] Furthermore, the present invention also provides an electronic device through exemplary embodiments, comprising: at least one processor; and a memory connected to the at least one processor in communication. The memory stores a computer program that can be executed by the at least one processor, and when the computer program is executed by the at least one processor, the electronic device executes the method for authenticity detection of a single set of electronic files described in the above-mentioned embodiments.

[0056] Furthermore, the present invention also provides a non-transitory computer-readable storage medium storing a computer program through an exemplary embodiment, wherein the computer program, when executed by a processor of a computer, is used to enable the computer to execute the method for authenticity detection of a single set of electronic files described in the aforementioned embodiments.

[0057] Above, a single set of electronic archive authenticity detection has been described in detail through a few exemplary embodiments. However, it is well known to those skilled in the art that, as defined by the accompanying patent claims, other embodiments other than the above disclosed embodiments of the present invention are equally within the scope of the present invention.

[0058] Generally, all descriptions of "a / said / the [means, components, etc.]" are open to interpretation as at least one instance of said means, components, etc., unless explicitly stated otherwise. The steps of any method disclosed herein do not necessarily have to be performed in the exact order disclosed, unless explicitly stated.

[0059] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0060] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0061] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0062] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0063] like Figure 3As shown, a schematic diagram of the principle of an electronic device according to an embodiment of the present application includes: at least one processor; and a memory connected to the at least one processor in communication. The memory stores a computer program that can be executed by the at least one processor, and the computer program is used to enable the electronic device to perform the method according to the embodiment of the present application when executed by the at least one processor.

[0064] The exemplary embodiments of the present application also provide a non-transitory computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor of a computer, is used to cause the computer to perform a method according to an embodiment of the present application.

[0065] The program code for implementing the method of the present application can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, implements the functions / operations specified in the flow chart and / or block diagram. The program code can be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0066] In the context of the present application, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0067] As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and / or device (e.g., disk, optical disk, memory, programmable logic device (PLD)) for providing machine instructions and / or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor.

[0068] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0069] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0070] A computer system may include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship to each other.

[0071] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.

Claims

1. A method for detecting the integrity of the total amount of data in a single set of electronic archive files, characterized in that: Receive the electronic archive files transferred by the business system, perform electronic signature verification and electronic seal verification, extract a series of electronic signatures and electronic seals, establish an electronic file transfer and reception registration form, obtain the electronic file basic information metadata, and convert them into fixed format files respectively; solidify the transferred electronic file byte count, total byte count, electronic file transfer and reception registration form format file byte count, and metadata format file; use the update service function to update the electronic file byte count, append the password identification unit to perform byte append password identification on the transferred electronic file byte count, total byte count of the electronic file, and PDF electronic file transfer and reception registration form byte count, and use the solidification lock to solidify the transferred electronic file byte count, total byte count of the electronic file, PDF electronic file transfer and reception registration form byte count, and electronic file basic information metadata XML format file; The source value comparison unit calls functions sm9_init, sm9_update, and sm9_finish to respectively calculate the HASH value of the total number of electronic files in the transferred electronic file metadata set, the HASH value of the total number of electronic file bytes, and the HASH value of the number of bytes of the fixed-format electronic file transfer and acceptance registration form, and encrypts them to generate HASH values, and compares them with the HASH value of the total number of electronic files, the HASH value of the total number of electronic file bytes, and the HASH value of the number of bytes of the electronic file transfer and acceptance registration form solidified in the archive file transfer package to complete the consistency test of the total amount of transferred electronic file data.

2. The method according to claim 1, characterized in that: File solidification includes calling the national secret encryption algorithm to initialize the data to generate a unique HASH value for the number of bytes of electronic files received and transferred, the total number of bytes of electronic files, and the number of bytes of the fixed-format electronic file transfer and reception registration form, using the sm9_init function to initialize the number of bytes of the original file, using the sm9_update function to update the number of bytes of the original file, using the additional password identifier sm9_compress_blocks to add byte password identifiers to the number of bytes of the transferred electronic files, the total number of bytes of electronic files, and the number of bytes of the electronic file transfer and reception registration form converted into PDF, and using block solidification in the sm9_finish function to solidify the number of bytes of the transferred electronic files, the total number of bytes of electronic files, the number of bytes of the transfer and reception registration form, and the basic information metadata of the electronic files.

3. The method according to claim 1, characterized in that: The conversion of the electronic file transfer and reception registration form into a unified format file includes: relying on the file application service component ActiveXComponent service, calling the getProperty method of the file object to receive the electronic file transfer and reception registration form file, obtaining the registration form file information, and converting the registration form file into a PDF format file, and converting the basic information metadata of the electronic file into an XML format file.

4. The method according to claim 2, characterized in that: The initialization values ​​of the original file byte number initialized using the sm9_init function include but are not limited to 0x7380166F, 0x4914B2B9, 0x172442D7, 0xDA8A0600, 0xA96F30BC, 0x163138AA, 0xE38DEE4D, and 0xB0FB0E4E.

5. The method according to any one of claims 1 to 4, characterized in that: Call the file conversion service FileprocessingMLPackage service, execute the PDFExportAsFixedFormat.wdFormatPDF method, convert the electronic file transfer and reception registration form into a PDF format file, and obtain a PDF format electronic file transfer and reception registration form.

6. An electronic device, characterized in that: include: processor; And a memory for storing a program, wherein the program includes instructions, which, when executed by the processor, cause the processor to execute the method for detecting the integrity of the total amount of data of a single set of electronic archive files according to any one of claims 1-5.

7. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to enable the computer to execute the method for detecting the integrity of the total amount of data of a single set of electronic archive files according to any one of claims 1-5.