BIOS-based computer system multi-level encryption method

Through a BIOS-based multi-level encryption method, combined with collaborative authentication and quantum key distribution technology, the problem that traditional dongles are easy to crack is solved, multi-level encryption protection of computer systems is achieved, and the security of hard disk data and keys are improved. unbreakability.

CN118761079AInactive Publication Date: 2024-10-11HPC TECH INC
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202411220901.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-02
Publication Date
2024-10-11
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Traditional computer dongles are easy to crack and rely on interface support reserved by the motherboard. It is difficult to achieve multi-level encryption protection and cannot effectively prevent hardware replacement and data leakage.

Method used

Adopt a multi-level encryption method based on BIOS, collect authentication information through device self-test and initialization, use collaborative authentication algorithm and quantum key distribution technology to encrypt and decrypt the hard disk serial number, divide the master BIOS and slave BIOS, and ensure the security of key data Security.

Benefits of technology

Improves the overall security of the computer system, prevents malicious hardware replacement and data leakage, ensures the confidentiality and integrity of hard drive data, enhances the security of keys, and prevents unauthorized access.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118761079A_ABST
    Figure CN118761079A_ABST
Patent Text Reader

Abstract

The invention relates to a computer system multi-level encryption method based on a BIOS (Basic Input / Output System). The method comprises the following steps: acquiring authentication information generated by equipment in a computer system; comprehensively judging the authentication information of the hardware equipment through a collaborative authentication algorithm; the method comprises the following steps: reading a hard disk serial number, comparing whether the hard disk serial number is backed up in a BIOS (Basic Input Output System), and carrying out encryption operation on the hard disk serial number which is not backed up through a preset encryption and decryption first program; based on the encrypted and stored hard disk serial number, obtaining a secret key, and encrypting data of a boot sector and a key area of a partition table in the hard disk through a preset encryption and decryption second program; and reading a hard disk serial number of the terminal user, comparing the hard disk serial number with the backup serial number to obtain a corresponding secret key for encrypting and decrypting the second program, reading the encrypted data into a memory for decryption, and entering an operating system. According to the invention, a multi-level encryption and authentication mechanism is realized, the data is prevented from being accessed without authorization, and the privacy and security of the user data are guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a computer multi-level encryption method based on BIOS, which aims to achieve multi-level encryption protection for a computer system and improve the overall security of data in the computer system. Background Art

[0002] With the development of computer technology, data security issues have become increasingly prominent, and the value of human wisdom and the various inventions and innovative new thinking and methods generated by wisdom is self-evident. It is urgent to protect various new methods and inventions from being stolen. In order to prevent scientific and technological achievements from being stolen, computer software and hardware manufacturers not only work hard on hardware design, but also invest a lot of manpower and material resources in software data confidentiality.

[0003] Traditional encryption methods such as dongles are easy to be tracked and cracked, and they also rely on the interface support reserved in the early stage of motherboard development. Therefore, a multi-level and more comprehensive encryption method is needed. Summary of the invention

[0004] To solve the above problems, the present invention provides a BIOS-based computer system multi-level encryption method that can implement multi-level encryption protection for the computer system to improve the security of data in the system.

[0005] To achieve the above object, the technical solution adopted by the present invention is: A multi-level encryption method for a computer system based on BIOS, comprising the following steps: S1. Complete device self-check and initialization based on BIOS, and collect authentication information generated by each device in the computer system, wherein the authentication information includes a unique identifier, hardware features, and configuration information of the device; S2, using the collected authentication information as input, and making a comprehensive judgment through a collaborative authentication algorithm; S3, by reading the hard disk serial number in the main BIOS, comparing whether the hard disk serial number has been backed up in the slave BIOS, performing encryption operation on the hard disk serial number that has not been backed up through a preset encryption and decryption first program, writing the encrypted hard disk serial number into the memory space reserved by the main BIOS, and dividing this part of the space into the slave BIOS; S4, based on the encrypted hard disk serial number, obtain the key and encrypt the data in the key area of ​​the boot sector and partition table of the hard disk through the preset second encryption and decryption program; S5, reading the hard disk serial number of the terminal user, and comparing the hard disk serial number of the terminal user with the serial number backed up from the BIOS to obtain the corresponding encryption and decryption key of the second program; The master BIOS refers to the BIOS before the hard disk serial number is written, and the slave BIOS refers to the BIOS after the hard disk information is written.

[0006] Furthermore, in step S1, the BIOS completes device self-check and initialization, which is used to detect whether the computer hardware meets the operating conditions and collect detailed information of the hardware device, wherein the detailed information of the hardware device includes authentication information, device model and manufacturer.

[0007] Furthermore, in step S2, the collected authentication information is used as input, and a comprehensive judgment is performed through a collaborative authentication algorithm, including the following steps: S21, using the collected authentication information as input, obtaining a generated initial hash value; S22. Perform comprehensive judgment through a collaborative authentication algorithm to authenticate the device information of the current system. The collaborative authentication algorithm adopts a hash chain authentication algorithm.

[0008] Furthermore, in step S21, the step of taking the collected authentication information as input and obtaining the generated initial hash value includes the following steps: S211, determining device identification information; S212, taking the unique identification information of the device as input, and performing hash calculation using a preset hash algorithm; S213. Verify the correctness of the generated initial hash value.

[0009] Furthermore, in step S22, the comprehensive judgment by the collaborative authentication algorithm to authenticate the device information of the current system includes the following steps: S221, each device uses the same hash function to perform a hash operation on the authentication information generated by it; S222, linking the hash values ​​of each device in a predetermined order to build a hash chain; S223. A verification module is preset to perform authentication operations, and the hash value of each device is verified in turn to see whether it meets expectations.

[0010] Furthermore, in step S3, the first encryption and decryption program is placed and run in the main BIOS.

[0011] Furthermore, the step S3 specifically includes the following steps: S31, reading the current hard disk serial number, and reading the backed-up encrypted hard disk serial number from the reserved space of the BIOS, and comparing the current hard disk serial number with the backed-up encrypted hard disk serial number decrypted by the preset encryption and decryption first program; S32, encrypting the hard disk serial number that has not been backed up through the first encryption and decryption program, and writing the encrypted hard disk serial number into the memory space reserved by the main BIOS for backup; S33, dividing the main BIOS memory space in which the encrypted hard disk serial number is written into the slave BIOS.

[0012] Further, in step S4, the acquisition key encrypts the data in the key area of ​​the boot sector and partition table in the hard disk through a preset encryption and decryption second program, including the following steps: S41. Generate keys using quantum key distribution technology; S42, encrypting the key data of the boot sector and partition table sector of the hard disk according to the key through the preset second encryption and decryption program; S43. Encrypt the distributed key using an encryption algorithm, and store the encrypted key in the HSM module.

[0013] Furthermore, in step S5, the step of comparing the hard disk serial number of the terminal user with the serial number backed up from the BIOS to obtain the corresponding encryption and decryption key of the second program includes the following steps: S51, obtaining the hard disk serial number of the terminal user; S52, decrypting the encrypted hard disk serial number backed up from the BIOS through a preset first encryption and decryption program; S53, comparing the two serial numbers to see if they match, and if they do, retrieving the corresponding encrypted distribution key from the HSM module; S54, decrypting the boot sector and partition table key data of the hard disk through a preset encryption and decryption second program, and loading the decrypted data into the memory; S55. After the boot sector and partition table are loaded into the memory, the normal startup process continues and the operating system is entered.

[0014] The beneficial effects of the present invention are: The present invention completes device self-check and initialization based on BIOS, collects authentication information generated by each device in the computer system, and improves the security of the computer startup process through multi-device collaborative authentication, making it difficult for attackers to predict and forge the authentication sequence in the entire authentication process to prevent the insertion or replacement of malicious hardware. By reading and comparing the hard disk serial number, it is possible to detect whether the hard disk has been replaced without authorization, prevent malicious hardware replacement, and help protect the system from potential data leakage or malicious attacks. The hard disk sequence is encrypted using a symmetric encryption algorithm to ensure the confidentiality and integrity of the backed up hard disk data. By dividing the main BIOS and the slave BIOS, key security data is ensured to prevent unauthorized access and tampering.

[0015] The present invention adopts quantum key distribution technology to generate unbreakable encryption keys and distribute them within the system. At the same time, the distributed keys are encrypted twice to ensure the absolute security of the keys, making the encrypted hard disk data more difficult to be cracked. Through multi-layer encryption and authentication mechanisms, key data in the hard disk is protected to prevent unauthorized access to the data. Key data can only be decrypted after the terminal user provides the correct hard disk serial number, thus ensuring the privacy and security of user data. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 It is a flowchart of a multi-level encryption method for a computer system based on BIOS of the present invention; Figure 2 It is a flowchart diagram of steps S3 and S4 provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0017] See also Figure 1 As shown, the present invention provides a multi-level encryption method for a computer system based on BIOS, which can implement a multi-level encryption and authentication mechanism, protect key data in the hard disk, prevent unauthorized access and tampering of data, and ensure the privacy and security of user data.

[0018] The BIOS-based computer system multi-level encryption method comprises the following steps: S1. Complete device self-check and initialization based on BIOS, and collect authentication information generated by each device in the computer system, wherein the authentication information includes a unique identifier, hardware features, and configuration information of the device; Furthermore, in step S1, the BIOS completes device self-check and initialization, which is used to detect whether the computer hardware meets the operating conditions and collect detailed information of the hardware device, wherein the detailed information of the hardware device includes authentication information, device model and manufacturer.

[0019] Specifically, when the computer is powered on, the CPU starts to execute instructions from the address in the BIOS chip, and the BIOS starts to run the self-test program. The BIOS will detect the key hardware devices on the computer to confirm whether they are working properly, including the CPU, memory, network card, and optical drive, etc., by sending specific signals to the devices and receiving responses. For the detected devices, the BIOS will initialize, including device interrupt vectors, allocating resources such as I / O port numbers and DMA channels, and updating the hardware configuration information in the CMOS.

[0020] During the BIOS self-test and initialization process, the authentication information, device model, firmware version, and configuration information of each device can be collected. This information is read from the device through the BIOS interface or specific commands and stored in a specific area in the memory or in the COMS.

[0021] S2, using the collected authentication information as input, and making a comprehensive judgment through a collaborative authentication algorithm; Furthermore, in step S2, the collected authentication information is used as input, and a comprehensive judgment is performed through a collaborative authentication algorithm, including the following steps: S21, using the collected authentication information as input, obtaining a generated initial hash value; Furthermore, in step S21, the step of taking the collected authentication information as input and obtaining the generated initial hash value includes the following steps: S211, determining device identification information; S212, taking the unique identification information of the device as input, and performing hash calculation using a preset hash algorithm; S213. Verify the correctness of the generated initial hash value.

[0022] In this embodiment, the serial number of the device is used as the unique identification information of the device. The serial number of the device is input as the unique identification information, and a selected hash algorithm is used for hash calculation. In this embodiment, the SHA-256 hash algorithm is selected for calculation to obtain a hash value.

[0023] Specifically, the steps for calculating the hash value using the SHA-256 hash algorithm are as follows: Converts the unique identifying information of the input into a specific format or structure used internally by the algorithm. Hash algorithms usually process fixed-length blocks of data (called the block size, which is 512 bits in the case of SHA-256), while the input message may be of arbitrary length. Splitting an arbitrary-length input message into fixed-size blocks may require some additional padding or conversion operations.

[0024] Padding: First, the original message is padded to a length that satisfies the algorithm's block size. Padding usually involves adding a 1 at the end of the message, followed by enough 0s until the desired block size minus 64 bits is reached. Finally, a 64-bit representation of the original message length (in binary form) is added.

[0025] Segmentation: The padded message is split into multiple fixed-size blocks (such as 512-bit blocks for SHA-256). Each block will be processed as input to the compression function.

[0026] The compression function is the core part of the hash algorithm, which takes a fixed-length input and a chain value and produces a fixed-length output. The chain value is used to maintain the state of the algorithm while processing message blocks continuously.

[0027] At the beginning of the algorithm, the chain value is initialized to a fixed initial value for the specific hash algorithm. For each message block, the compression function performs mixing and compression; Mixing: Mixing the contents of the message block and chain value using various mathematical operations (such as circular shifts, addition, XOR, etc.) and possibly lookup tables (such as the SHA-256 constant array in the SHA-2 family). These operations ensure that every bit of the input data affects the output hash value, and that small changes in the input data result in significantly different output hash values.

[0028] Compression: Through a series of mathematical operations and bit manipulation, the contents of the message block and the chain value are compressed into a new chain value. This new chain value will be used as the input for the next message block processing.

[0029] When all message blocks have been processed, the final chain value (internal state) is considered to be the hash of the original message.

[0030] The correctness of the generated initial hash value can be verified by comparing it with the reference hash value provided by the device manufacturer.

[0031] S22. Perform comprehensive judgment through a collaborative authentication algorithm to authenticate the device information of the current system. The collaborative authentication algorithm adopts a hash chain authentication algorithm.

[0032] Furthermore, in step S22, the comprehensive judgment by the collaborative authentication algorithm to authenticate the device information of the current system includes the following steps: S221, each device uses the same hash function to perform a hash operation on the authentication information generated by it; S222, linking the hash values ​​of each device in a predetermined order to build a hash chain; S223. A verification module is preset to perform authentication operations, and the hash value of each device is verified in turn to see whether it meets expectations.

[0033] In this embodiment, each device uses the same hash function (SHA-256) to perform a hash operation on the authentication information it generates to obtain a corresponding hash value, and the hash value of each device is linked in a pre-set order to form a hash chain, that is, the hash value of the first device is used as one of the inputs of the hash operation of the second device, and the hash result of the second device is used as one of the inputs of the hash operation of the third device, and so on.

[0034] During the verification process, the hash value of each device is verified in the order of the hash chain to see if it meets the expectations. The hash calculation is performed again according to the hash value of the previous device and the authentication information of the current device, and the result is compared with the hash value provided by the current device. When the hash values ​​of all devices match successfully, that is, the recalculated hash value is consistent with the hash value provided by the device, it means that the device information has not been tampered with, the authentication is passed, and the system enters the next stage; if the hash value of a device is found to be mismatched during the verification process, it means that the device information has been tampered with or there is an abnormality, then the system is locked and an alarm is issued.

[0035] For example, in a computer system, there are devices A, B, and C that perform collaborative authentication after initialization. The authentication information provided by device A is Cin_A, the authentication information provided by device B is Cin_B, and the authentication information provided by device C is Cin_C. At startup, device A performs a hash operation on the authentication information through a hash function to obtain a hash value hash_A1=SHA(Cin_A). Device A passes hash_A1 to device B. After device B receives hash_A1, it combines it with the authentication information and performs a hash operation again to obtain hash_B1=SHA-256(hash_A1+Cin_B). Then device B passes hash_B1 to device C. After device C receives hash_B1, it combines it with its own authentication information and performs a hash operation to obtain hash_C1 = SHA-256(hash_B1+Cin_C). At this time, device C sends hash_C1 to the verification module. The verification module pre-stores the expected hash values ​​obtained according to the authentication information of devices A, B, and C according to the same hash operation rules. After receiving hash_C1, the verification module performs the following verification operations: First, use the initial secret value Cin_C of device C to perform a hash operation on the received hash_C1, and get temp_hash = SHA-256(hash_C1-Cin_C). Here, -Cin_C means removing the previously added Cin_C part and restoring the value before passing it to device C, that is, hash_B1.

[0036] Then, use the initial secret value Cin_B of device B to perform a hash operation on temp_hash to obtain new_hash=SHA-256(temp_hash-Cin_B), remove the part added by device B, and restore hash_A1.

[0037] Finally, the authentication information Cin_A of device A is used to perform a hash operation on new_hash to obtain final_hash = SHA-256 (new_hash-Cin_A). The verification module compares final_hash with the pre-stored hash value calculated based on the authentication information of device A. If the two are consistent, the authentication passes and enters the next stage. Otherwise, the authentication fails and the system is locked and an alarm is issued.

[0038] All new devices need to be registered before connecting to the system. The registration process includes providing the device's authentication information, device model, firmware version, and configuration information. The system maintains a whitelist of all registered and authenticated devices. When the device to be authenticated is connected to the system for the first time, the verifier will detect whether the device's authentication information is on the whitelist. The verifier compares the whitelist with the relevant information of the device to be authenticated. If the authentication is successful, the device is trusted. The device to be authenticated receives the hash result of the authenticated device as one of the inputs of its own hash operation. If the authentication fails, it is considered an unknown or potential intrusion device.

[0039] Hash chain authentication can ensure the integrity and authenticity of the information of each device during the computer startup process. Due to the characteristics of the hash function, even if an attacker attempts to tamper with the information of a device, it is difficult to keep the entire hash chain matching without being discovered. At the same time, the use of hash chains adds complexity and security to authentication, making it difficult for attackers to predict and forge the hash value sequence during the entire authentication process. It can effectively prevent unauthorized access and malicious attacks, improve the overall security of the system, promptly detect and eliminate problematic hardware devices, and avoid system crashes or data loss caused by hardware failures.

[0040] S3, by reading the hard disk serial number in the main BIOS, comparing whether the hard disk serial number has been backed up in the slave BIOS, performing encryption operation on the hard disk serial number that has not been backed up through a preset encryption and decryption first program, writing the encrypted hard disk serial number into the memory space reserved by the main BIOS, and dividing this part of the space into the slave BIOS; Furthermore, the master BIOS refers to the BIOS before the hard disk serial number is written, and the slave BIOS refers to the BIOS after the hard disk information is written.

[0041] Furthermore, in step S3, the first encryption and decryption program is placed and run in the main BIOS.

[0042] It should be noted that each computer has a firmware program BIOS that initializes the handshake communication between peripheral hardware and the operating system. Integrating the first encryption and decryption program as part of the BIOS into the entire BIOS shell can ensure that the program is not easily lost, and can also increase the difficulty of the program being tracked and cracked by tracking software under the system. After the BIOS detects and initializes some devices such as hardware peripherals and hard disks and passes the collaborative authentication, it loads and runs the first encryption and decryption program to determine whether the current hard disk serial number has been backed up.

[0043] Furthermore, the step S3 specifically includes the following steps: S31, reading the current hard disk serial number, and reading the backed-up encrypted hard disk serial number from the reserved space of the BIOS, and comparing the current hard disk serial number with the backed-up encrypted hard disk serial number decrypted by the preset encryption and decryption first program; S32, encrypting the hard disk serial number that has not been backed up through the first encryption and decryption program, and writing the encrypted hard disk serial number into the memory space reserved by the main BIOS for backup; S33, dividing the main BIOS memory space in which the encrypted hard disk serial number is written into the slave BIOS.

[0044] In some embodiments, the timestamp of the start of the operation is recorded. The serial number of the current hard disk is read and converted into binary form, the encrypted hard disk serial number that has been backed up is read from the BIOS reserved space, the decryption key is regenerated using the timestamp and secret seed value of the encrypted hard disk, and the backed up serial number is restored through the encryption and decryption first program. The restored hard disk serial number is compared with the currently read hard disk serial number to verify consistency.

[0045] If the comparison finds that the current hard disk serial number is not encrypted and backed up, the timestamp of the start of the operation and the preset secret seed value are used to generate an encryption key through a hash function, and the hard disk serial number is encrypted through the preset encryption and decryption first program and the encrypted hard disk serial number is written to the memory space reserved for the main BIOS for backup, and the main BIOS memory space is divided into slave BIOS.

[0046] In one embodiment, the operation start timestamp of the initial backup of a hard disk is 1679200000, the preset secret seed value is 0xDEADBEEF, a hash function is used to generate a fixed-length key, the combination of the timestamp and the secret seed value is hashed, and the first 8 bytes of the hash value are taken as the encryption key, such as 0xAABBCCDDEEFF0011. Assuming that the current hard disk serial number is HDD123456789, the binary form is simplified to 0x4844443132333435, and the hard disk serial number is XORed byte by byte using the key according to the preset XOR bit number rule to obtain 0xEACC88EDFCFC3424. The XOR result is shifted according to the preset shift rule to obtain the encrypted hard disk serial number 0x5E5323B7F3F0D091, and the encrypted hard disk serial number is written into the memory space reserved by the master BIOS, and the space is divided into slave BIOS.

[0047] When the first encryption and decryption program performs the decryption operation, it is necessary to use the stored corresponding key and reverse operation, and obtain the XOR bit number and displacement parameter at the same time. Reverse displacement is performed on the encrypted hard disk serial number to obtain 0xEACC88EDFCFC3424, and the corresponding key and the corresponding XOR rule are used to XOR the data to obtain the decrypted hard disk serial number 0x4844443132333435. Combining timestamp, XOR operation and displacement operation, the confidentiality of the hard disk serial number is improved.

[0048] S4, based on the encrypted hard disk serial number, obtain the key and encrypt the data in the key area of ​​the boot sector and partition table of the hard disk through the preset second encryption and decryption program; Further, in step S4, the acquisition key encrypts the data in the key area of ​​the boot sector and partition table in the hard disk through a preset encryption and decryption second program, including the following steps: S41. Generate keys using quantum key distribution technology; S42, encrypting the key data of the boot sector and partition table sector of the hard disk according to the key through the preset second encryption and decryption program; S43. Encrypt the distributed key using an encryption algorithm, and store the encrypted key in the HSM module.

[0049] Specifically, a quantum channel is established through optical fiber or other medium suitable for transmitting quantum states, and a series of quantum bits are prepared by the sender, for example, by encoding information into the polarization state of photons, so that each quantum bit is in a specific quantum state, and sent to the receiver through the quantum channel. Among them, the sender is a special quantum key distribution device or a computer system with integrated quantum communication function; the receiver is a computer system connected to a hard disk or a special hardware device. After receiving the quantum bit, the receiver selects a measurement basis vector to measure the state of each quantum bit, and discloses the basis vectors used by the sender and the receiver to measure or prepare the quantum bit through the classical communication channel, but does not disclose the actual measurement results. By comparing the basis vector selection, the measurement results of the quantum bit are determined, thereby generating the original key string. The sender and the receiver ensure that the same key is shared through a series of error detection and correction steps. A shorter but more secure final key is extracted from the original key through the privacy amplification process.

[0050] Read the key data in the boot sector and partition table sector of the hard disk, and use the AES encryption algorithm to encrypt the generated key. Select the CBC mode so that the encryption of each block depends on the encryption result of the previous block. According to the selected key length, the key is truncated or padded to reach the required length. When using the CBC mode, an initialization vector is required to start the encryption process. The vector is random and a new vector is used for each encryption. The initialization vector does not need to be kept secret, but a different vector should be used for each encryption to increase security.

[0051] The second encryption and decryption program reads the key data in the boot sector and partition table sector of the hard disk. These data usually exist in the form of blocks, and the size of each block matches the block size of AES (usually 128 bits). When the length of the data is not an integer multiple of the AES block size, padding is required. PKCS#7 padding can be used. A sufficient number of bytes will be added to the end of the data to make the data length an integer multiple of the block size. Each data block is encrypted using the AES encryption algorithm using the key generated by quantum key distribution technology and the selected initialization vector. In CBC mode, the first data block is XORed with the initialization vector and then encrypted. Starting from the second data block, each data block is XORed with the previous encrypted data block and then encrypted. The encrypted data block will replace the original key data in the boot sector and partition table sector of the hard disk.

[0052] A strong encryption algorithm and public key are used to re-encrypt the key generated by quantum key distribution technology, and the re-encrypted key is stored in the HSM module to ensure its security and integrity.

[0053] S5. Read the hard disk serial number of the terminal user, and compare the hard disk serial number of the terminal user with the serial number backed up from the BIOS to obtain the corresponding encryption and decryption key of the second program.

[0054] Furthermore, in step S5, the step of comparing the hard disk serial number of the terminal user with the serial number backed up from the BIOS to obtain the corresponding encryption and decryption key of the second program includes the following steps: S51, obtaining the hard disk serial number of the terminal user; S52, decrypting the encrypted hard disk serial number backed up from the BIOS through a preset first encryption and decryption program; S53, comparing the two serial numbers to see if they match, and if they do, retrieving the corresponding encrypted distribution key from the HSM module; S54, decrypting the boot sector and partition table key data of the hard disk through a preset encryption and decryption second program, and loading the decrypted data into the memory; S55. After the boot sector and partition table are loaded into the memory, the normal startup process continues and the operating system is entered.

[0055] Specifically, the hard disk serial number of the current terminal user is identified and obtained in the main BIOS, and the encrypted hard disk serial number backed up from the BIOS is decrypted through the first encryption and decryption program. By comparing the hard disk serial number of the terminal user with the backed-up hard disk serial number, it is ensured that the hard disk serial number is not accessed without authorization. When the two serial numbers match, it means that the hard disk is the expected or authorized hard disk, and the system will retrieve the secondary encryption distribution key associated with the hard disk from the HSM module. The HSM module is a hardware device specially used to store and manage sensitive information such as keys, which can ensure the security and integrity of the secondary encryption key and has the characteristics of anti-tampering and anti-physical attack.

[0056] The system determines the specific location of the boot sector and partition table sector key data on the hard disk, obtains the private key corresponding to the public key, and stores the private key in isolation from the secondary encrypted step key. The encrypted distribution key is decrypted using the private key to obtain the original distribution key. The encrypted data on the hard disk is decrypted using the original distribution key through the preset encryption and decryption second program, and the decrypted boot sector and partition table sector data are loaded into the memory. The system continues the normal startup process based on the information loaded into the memory, loading and initializing the system.

[0057] The above implementation modes are merely descriptions of the preferred implementation modes of the present invention, and are not intended to limit the scope of the present invention. Without departing from the design spirit of the present invention, various modifications and improvements made to the technical solutions of the present invention by ordinary engineering and technical personnel in the field shall fall within the protection scope determined by the claims of the present invention.

Claims

1. A multi-level encryption method for a computer system based on BIOS, characterized in that: The following steps are involved: S1. Complete device self-check and initialization based on BIOS, and collect authentication information generated by each device in the computer system, wherein the authentication information includes a unique identifier, hardware features, and configuration information of the device; S2, using the collected authentication information as input, and making a comprehensive judgment through a collaborative authentication algorithm; S3, by reading the hard disk serial number in the main BIOS, comparing whether the hard disk serial number has been backed up in the slave BIOS, performing encryption operation on the hard disk serial number that has not been backed up through a preset encryption and decryption first program, writing the encrypted hard disk serial number into the memory space reserved by the main BIOS, and dividing this part of the space into the slave BIOS; S4, based on the encrypted hard disk serial number, obtain the key and encrypt the data in the key area of ​​the boot sector and partition table of the hard disk through the preset second encryption and decryption program; S5, reading the hard disk serial number of the terminal user, and comparing the hard disk serial number of the terminal user with the serial number backed up from the BIOS to obtain the corresponding encryption and decryption key of the second program; The master BIOS refers to the BIOS before the hard disk serial number is written, and the slave BIOS refers to the BIOS after the hard disk information is written.

2. A computer system multi-level encryption method based on BIOS according to claim 1, characterized in that: In step S1, the BIOS completes device self-check and initialization, which is used to detect whether the computer hardware meets the operating conditions and collect detailed information of the hardware device, wherein the detailed information of the hardware device includes authentication information, device model and manufacturer.

3. A BIOS-based computer system multi-level encryption method according to claim 1, characterized in that: In step S2, the collected authentication information is used as input and a comprehensive judgment is performed through a collaborative authentication algorithm, including the following steps: S21, using the collected authentication information as input, obtaining a generated initial hash value; S22. Perform comprehensive judgment through a collaborative authentication algorithm to authenticate the device information of the current system. The collaborative authentication algorithm adopts a hash chain authentication algorithm.

4. A BIOS-based computer system multi-level encryption method according to claim 3, characterized in that: In step S21, the collected authentication information is used as input to obtain the generated initial hash value, including the following steps: S211, determining device identification information; S212, taking the unique identification information of the device as input, and performing hash calculation using a preset hash algorithm; S213. Verify the correctness of the generated initial hash value.

5. A BIOS-based computer system multi-level encryption method according to claim 3, characterized in that: In step S22, the collaborative authentication algorithm is used to make a comprehensive judgment to authenticate the device information of the current system, including the following steps: S221, each device uses the same hash function to perform a hash operation on the authentication information generated by it; S222, linking the hash values ​​of each device in a predetermined order to build a hash chain; S223. A verification module is preset to perform authentication operations, and the hash value of each device is verified in turn to see whether it meets expectations.

6. A computer system multi-level encryption method based on BIOS according to claim 1, characterized in that: In step S3, the first encryption and decryption program is placed and run in the main BIOS.

7. A computer system multi-level encryption method based on BIOS according to claim 6, characterized in that: The step S3 specifically comprises the following steps: S31, reading the current hard disk serial number, and reading the backed-up encrypted hard disk serial number from the reserved space of the BIOS, and comparing the current hard disk serial number with the backed-up encrypted hard disk serial number decrypted by the preset encryption and decryption first program; S32, encrypting the hard disk serial number that has not been backed up through the first encryption and decryption program, and writing the encrypted hard disk serial number into the memory space reserved by the main BIOS for backup; S33, dividing the main BIOS memory space in which the encrypted hard disk serial number is written into the slave BIOS.

8. The multi-level encryption method for a computer system based on BIOS according to claim 1, characterized in that: In step S4, the acquisition key encrypts the data in the key area of ​​the boot sector and partition table in the hard disk through a preset second encryption and decryption program, including the following steps: S41. Generate keys using quantum key distribution technology; S42, encrypting the key data of the boot sector and partition table sector of the hard disk according to the key through the preset second encryption and decryption program; S43. Encrypt the distributed key using an encryption algorithm, and store the encrypted key in the HSM module.

9. A computer system multi-level encryption method based on BIOS according to claim 1, characterized in that: In step S5, the step of comparing the hard disk serial number of the terminal user with the serial number backed up from the BIOS to obtain the corresponding encryption and decryption key of the second program includes the following steps: S51, obtaining the hard disk serial number of the terminal user; S52, decrypting the encrypted hard disk serial number backed up from the BIOS through a preset first encryption and decryption program; S53, comparing the two serial numbers to see if they match, and if they do, retrieving the corresponding encrypted distribution key from the HSM module; S54, decrypting the boot sector and partition table key data of the hard disk through a preset encryption and decryption second program, and loading the decrypted data into the memory; S55. After the boot sector and partition table are loaded into the memory, the normal startup process continues and the operating system is entered.

Citation Information

Patent Citations

  • Method for ciphering computer system

    CN101256610A

  • Server and detection method of server

    CN104679619A

  • File submitting method and device

    CN107203724A

  • Key distribution method, device and system

    CN113452514A

  • Integrity securing method for loaded software components of computer system, involves registering implemented characteristics of software components and determining characteristics of software component

    DE102007052545A1