Computer startup method and system

By using the bit string alignment mechanism in the computer system, only authorized startup devices are authorized to start, which solves the problem that external startup devices are prone to tampering or infected with viruses, ensuring system security and data integrity.

CN118940267APending Publication Date: 2024-11-12GIGAIPC CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310534194.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-12
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

When the computer system is turned on, the external boot device is easily tampered with or infected with viruses, resulting in system boot failure or data leakage. The existing technology is difficult to effectively prevent this risk.

Method used

The processing device reads the preset bit string from the target device, performs bit rotation and comparison, and only authorizes the execution of the boot program when the parameters to be verified match the pre-stored bit string to ensure that only authorized devices can start .

Benefits of technology

It effectively avoids virus infection and data leakage of computer systems, ensures that only authorized boot devices can be started, and is compatible with the existing operating system safe boot mechanism.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118940267A_ABST
    Figure CN118940267A_ABST
Patent Text Reader

Abstract

A computer power-on method comprises the following steps of: reading a first bit series located in a preset data block from a target device by a processing device, performing bit rotation on the first bit series in a first direction according to a first preset bit number to generate a second bit series, obtaining a third bit series associated with a pre-stored bit series, and performing bit rotation on the second bit series in a second direction according to the second preset bit number. And determining whether the to-be-verified parameter of the second bit string conforms to the third bit string, authorizing the target device to execute the boot program when the to-be-verified parameter conforms to the third bit string, and not authorizing the target device to execute the boot program when the to-be-verified parameter does not conform to the third bit string. The invention further relates to a computer startup system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a computer startup method and system. Background Art

[0002] Generally speaking, when a computer system is booted, it will scan a boot device installed or connected to the computer system. The boot device stores the boot file required when the computer is booted, and the computer system can use the boot file to start the operating system.

[0003] However, in some usage scenarios, the boot device is externally connected to the computer system. Therefore, it is easy for malicious persons to tamper with the boot files in the boot device or store boot viruses in the boot device, thereby causing the computer system to fail to boot or data to leak. Summary of the invention

[0004] In view of the above, the present invention provides a computer startup method and system for solving the above problems.

[0005] According to an embodiment of the present invention, a computer booting method includes executing, by a processing device: reading a first bit string located in a preset data block from a target device; performing a bit rotation in a first direction on the first bit string according to a first preset bit number to generate a second bit string; obtaining a third bit string associated with the pre-stored bit string; determining whether a parameter to be verified of the second bit string matches the third bit string; when the parameter to be verified of the second bit string matches the third bit string, authorizing the target device to execute a booting procedure; and when the parameter to be verified of the second bit string does not match the third bit string, not authorizing the target device to execute the booting procedure.

[0006] A computer boot system according to an embodiment of the present invention includes: a storage device and a processing device. The storage device is used to store a pre-stored bit string and a plurality of instructions. The processing device is connected to the storage device and is used to read a plurality of instructions to execute: reading a first bit string located in a preset data block from a target device; performing a bit rotation in a first direction on the first bit string according to a first preset bit number to generate a second bit string; obtaining a third bit string associated with the pre-stored bit string; determining whether a parameter to be verified of the second bit string matches the third bit string; when the parameter to be verified of the second bit string matches the third bit string, authorizing the target device to execute a boot program; and when the parameter to be verified of the second bit string does not match the third bit string, not authorizing the target device to execute a boot program.

[0007] In summary, according to one or more embodiments of the present invention, the computer boot method and system can allow the target device to execute the boot program only after confirming that the target device is a previously authorized boot device, thereby preventing the computer system from being infected by viruses and preventing data from leaking out of the computer system. Therefore, only authorized boot devices can activate the boot mechanism. In addition, according to one or more embodiments of the present invention, the computer boot method and system are compatible with the existing operating system security boot mechanism.

[0008] The above description of the contents of the present disclosure and the following description of the embodiments are intended to demonstrate and explain the spirit and principle of the present invention, and to provide further explanation of the claims of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] Figure 1 It is a block diagram of a computer boot system and a target device according to an embodiment of the present invention.

[0010] Figure 2 The flowchart of a computer startup method according to an embodiment of the present invention is shown.

[0011] Figure 3 It is a flow chart of a computer startup method according to another embodiment of the present invention.

[0012] Figure 4 is a flow chart of a preset operation formula for generating a portion of a bit string according to an embodiment of the present invention.

[0013] Figure 5 The figure is a flow chart of a computer startup method according to another embodiment of the present invention.

[0014] FIG. 6( a ) and FIG. 6( b ) are block diagrams of a computer booting system and a booting device according to another embodiment and yet another embodiment of the present invention, respectively.

[0015] Figure 7 The flowchart of the method for generating an authorization bit string for a boot device is shown according to an embodiment of the present invention.

[0016] Figure 8 is a flow chart of a method for obtaining an initial bit string for generating an authorization bit string according to an embodiment of the present invention.

[0017] The reference numerals are described as follows:

[0018] 1, 2a, 2b: Computer startup system

[0019] 10, 20: Storage device

[0020] 20a, 20b: first storage device

[0021] 23: Second storage device

[0022] 11: Processing device

[0023] 21, 21a, 21b: first processing device

[0024] 22: Second processing device

[0025] TD: Target Device

[0026] BD1: First boot device

[0027] BD2: Second boot device

[0028] S101, S103, S105, S107, S109, S201, S203, S205, S207, S209, S211, S301, S303, S305, S401, S403, S405, S407, S501, S503, S505, S601, S603, S605: Steps DETAILED DESCRIPTION

[0029] The detailed features and advantages of the present invention are described in detail in the following embodiments, and the contents are sufficient to enable any person skilled in the relevant art to understand the technical content of the present invention and implement it accordingly, and according to the contents, claims and drawings disclosed in this specification, any person skilled in the relevant art can easily understand the relevant purposes and advantages of the present invention. The following examples further illustrate the viewpoints of the present invention in detail, but do not limit the scope of the present invention in any viewpoint.

[0030] Please refer to Figure 1 , Figure 1 FIG. 1 is a block diagram of a computer boot system and a target device according to an embodiment of the present invention. Figure 1 As shown, the computer boot system 1 includes a storage device 10 and a processing device 11. The storage device 10 is electrically connected to or communicatively connected to the processing device 11, and the processing device 11 is electrically connected to or communicatively connected to the target device TD. The storage device 10 and the processing device 11 can be set in a computer system, and the target device TD can be connected to the computer system. The target device TD is, for example, a hardware device for storing data, such as a hard disk, an optical disk, a flash drive, or a portable storage device.

[0031] The storage device 10 is used to store a pre-stored bit string and a plurality of instructions. The storage device 10 may be a non-volatile memory (NVM), such as a read-only memory (ROM), a flash memory and / or a non-volatile random access memory (NVRM). It should be particularly noted that the bit string described herein represents a string formed by connecting a plurality of bytes in series.

[0032] The processing device 11 is used to read multiple instructions from the storage device 10 to execute the computer startup method according to one or more embodiments of the present invention to determine whether to authorize the target device TD to execute the startup program. The processing device 11 may include one or more processors, such as a central processing unit, a graphics processor, a microcontroller, a programmable logic controller, or other processors with signal processing functions.

[0033] Please refer to Figure 1 and Figure 2 ,in Figure 2 The flowchart of a computer startup method according to an embodiment of the present invention is shown. Figure 2 The steps shown may be performed by the processing device 11 . Figure 2 The applicable scenario of the step includes after the computer system equipped with the processing device 11 is powered on and before it is started (booted) according to the boot file of the boot device. In short, Figure 2 The steps can be used to determine whether to authorize the target device TD as a boot device for executing the boot program. Figure 2 As shown, the computer boot method includes: step S101: reading a first bit string located in a preset data block from a target device; step S103: performing a bit rotation in a first direction on the first bit string according to a first preset bit number to generate a second bit string; step S105: obtaining a third bit string associated with the pre-stored bit string; step S107: determining whether the parameter to be verified of the second bit string matches the third bit string; if the determination result of step S107 is "yes", executing step S109: authorizing the target device to execute the boot procedure; and if the determination result of step S107 is "no", executing step S111: not authorizing the target device to execute the boot procedure.

[0034] In step S101, the processing device 11 reads the first bit string located in the preset data block from the target device TD. The processing device 11 may read the first bit string through a basic input / output system (BIOS). The preset data block is an idle block in the target device TD, such as a block from bit 0x1B4 to bit 0x1B7, which is not limited in the present invention.

[0035] In step S103, the processing device 11 performs a bit rotation on the first bit string in a first direction according to a first preset bit number to generate a second bit string after bit rotation. The first preset bit number is, for example, 2 bits, and the first direction can be leftward or rightward, which is not limited by the present invention.

[0036] In step S105, the processing device 11 reads the pre-stored bit string from the storage device 10, and obtains the third bit string according to the pre-stored bit string. For example, the processing device 11 can use the pre-stored bit string as the third bit string.

[0037] In step S107, the processing device 11 compares the second bit string with the third bit string to see if they match. For example, the processing device 11 may determine whether the verification parameter of the second bit string and each byte of the third bit string are the same.

[0038] When the parameter to be verified of the second bit string matches the third bit string, it indicates that the first bit string is generated according to the pre-stored bit string. Therefore, the processing device 11 executes step S109 to authorize the target device TD to execute the boot procedure on the computer system equipped with the processing device 11. In another embodiment, if the pre-stored bit string is directly used as the third bit string, then in step S105, the processing device 11 reads the pre-stored bit string from the storage device 10 as the third bit string; in step S107, the second bit string to be verified may be the pre-stored bit string, and the comparison between the second bit string and the third bit string by the processing device 11 can be regarded as the processing device 11 determining whether the second bit string is the same as the pre-stored bit string. In other words, the first bit string in step S103 may be a string obtained by performing a bit rotation in the opposite direction of the first direction on the pre-stored bit string according to the first preset bit number.

[0039] On the contrary, when the verification parameter of the second bit string does not match the third bit string, it means that the first bit string is not generated according to the pre-stored bit string. Therefore, the processing device 11 executes step S111 to not authorize the target device TD to execute the boot procedure on the computer system equipped with the processing device 11.

[0040] For example, the first bit string obtained by the processing device 11 in step S101 is (Ya; Ma; K1a; K2a); the second bit string obtained by the processing device 11 in step S103 is (Y; M; K1; K2) after bit rotation according to the pre-stored bit string, and the parameter to be verified is (K1; K2); the third bit string obtained by the processing device 11 in step S105 is (K1b; K2b) according to the pre-stored bit string; the processing device 11 in step S107 determines whether the parameters to be verified K1 and K2 of the second bit string are respectively consistent with K1b and K2b of the third bit string. If the parameters K1 and K2 to be verified of the second bit string match K1b and K2b of the third bit string, it means that the first bit string (Ya; Ma; K1a; K2a) is generated according to the pre-stored bit string corresponding to the third bit string (K1b; K2b), and the processing device 11 executes step S109; if the parameters K1 and K2 to be verified of the second bit string do not match K1b and K2b of the third bit string, it means that the first bit string (Ya; Ma; K1a; K2a) is not generated according to the pre-stored bit string corresponding to the third bit string (K1b; K2b), and the processing device 11 executes step S111.

[0041] Through the above embodiment, the target device TD can be allowed to execute the boot program only after confirming that the target device TD is a previously authorized boot device, thereby preventing the computer system from being infected by viruses and preventing the data of the computer system from leaking out. Therefore, only the authorized boot device can activate the boot mechanism. In addition, the above embodiment is compatible with the existing secure boot mechanism of the operating system.

[0042] Please refer to Figure 1 and Figure 3 ,in Figure 3 It is a flow chart of a computer startup method according to another embodiment of the present invention. Figure 3 The steps shown can be performed by the processing device 11. It should be noted that Figure 3In the embodiment, the second bit string includes device parameters and parameters to be verified, and the parameters to be verified include a first parameter to be verified and a second parameter to be verified. The device parameters may be data for storing the first bit string into the processing device of the target device TD, such as a time parameter, a serial number, a sequence number, etc. stored in the first bit string; if it is a time parameter, the processing device can use it to determine whether the first bit string of the target device is within the authorization period, and the serial number or the sequence number may be composed of any number or letters, or may be a serial number related to the processing device or the target device. The device parameters may include one byte or two bytes, and the following is an explanation based on the device parameters including two bytes. Taking the second bit string (Y; M; K1; K2) as an example, the device parameters may include bytes Y and M, the first parameter to be verified may be byte K1, and the second parameter to be verified may be byte K2. Furthermore, the second bit string may be composed of 32 bits, and the processing device 11 may divide the 32 bits into four groups of 8 bits each according to the arrangement order of the 32 bits. Therefore, the processing device 11 may use the first group of 8 bits as byte Y of the device parameter; use the second group of 8 bits as byte M of the device parameter; use the third group of 8 bits as byte K1; and use the fourth group of 8 bits as byte K2.

[0043] Figure 3 The steps shown may be another embodiment of obtaining a third bit string associated with a pre-stored bit string, comprising: step S201: executing a preset operation formula on the device parameter and the pre-stored bit string to generate a first part of the third bit string; step S203: performing a bit rotation in a second direction on the first part according to a second preset bit number to generate a second part of the third bit string; step S205: comparing whether the first parameter to be verified is the same as the first part; if the judgment result of step S205 is “yes”, executing step S207: comparing whether the second parameter to be verified is the same as the second part; if the judgment result of step S207 is “yes”, executing step S209: authorizing the target device to execute the boot procedure; if the judgment result of step S205 is “no”, or the judgment result of step S207 is “no”, executing step S211: not authorizing the target device to execute the boot procedure. Figure 3 Step S201 and step S203 can be regarded as Figure 2 Detailed flowchart of another embodiment of step S105. Figure 3 Step S205 and step S207 can be regarded as Figure 2 In addition, the execution order of step S205 and step S207 can be interchanged, that is, if step S207 is executed before step S205, then when the judgment result of step S207 is "yes", the processing device 11 executes step S205.

[0044] In step S201, the processing device 11 performs a preset operation formula on the device parameters and the pre-stored bit string to generate a first part of the third bit string. For example, the preset operation formula may be a preset logical operation formula, and the processing device 11 may perform a preset logical operation formula on the device parameters and the pre-stored bit string to generate the first part of the third bit string.

[0045] In step S203, the processing device 11 performs a bit rotation in a second direction on the first portion according to a second preset bit number to generate a second portion of the third bit string. The second preset bit number can be the same as or different from the first preset bit number, and the second direction can be the same as or different from the first direction, which is not limited by the present invention.

[0046] Taking the aforementioned third bit string K1b, K2b as an example, the first part may be byte K1b, and the second part may be byte K2b. In addition, the number of bits in the first part is the same as the number of bits in the first parameter to be verified, and the number of bits in the second part is the same as the number of bits in the second parameter to be verified.

[0047] In step S205 and step S207, the processing device 11 compares whether the first parameter to be verified of the second bit string is the same as the first part of the third bit string, and compares whether the first parameter to be verified of the second bit string is the same as the first part of the third bit string. If the judgment results of both step S205 and step S207 are "yes", the processing device 11 executes step S209; if the judgment result of one of step S205 and step S207 is "no", the processing device 11 executes step S211. Figure 3 Step S209 and Figure 2 The same as step S109, step S211 is the same as Figure 2 The process is the same as step S211, so it will not be described here in detail.

[0048] Please refer to Figure 1 and Figure 4 ,in Figure 4 The flowchart is a default operation formula for generating a portion of a bit string according to an embodiment of the present invention. Figure 4 The steps shown may be performed by the processing device 11 . Figure 4 Can be considered as Figure 3 A detailed flow chart of an embodiment of a preset calculation formula. Figure 4In the embodiment of the present invention, the device parameter may include a byte. Further, the device parameter may be a time parameter indicated by a real-time clock when the processing device 11 stores the pre-stored bit string into the storage device 10. The time parameter may be obtained according to the real-time clock (RTC) of the processing device 11. For example, the device parameter may be a year or month obtained according to the real-time clock. The year and month are only examples, and the device parameter may also be a time parameter such as a season or quarter.

[0049] like Figure 4 As shown, the preset operation formula includes: step S301: performing bit rotation in a third direction on the device parameter according to a third preset bit number to generate a first intermediate parameter; step S303: performing a bitwise exclusive OR (XOR) operation on the first intermediate parameter and a first part of the pre-stored bit string to generate a second intermediate parameter; and step S305: performing a bitwise AND (AND) operation on the second intermediate parameter and a second part of the pre-stored bit string.

[0050] In step S301, the processing device 11 performs a bit rotation in a third direction on the device parameter according to a third preset bit number to generate a first intermediate parameter after bit rotation. The third direction may be the same as or different from the first direction, and the third preset bit number may be the same as or different from the first preset bit number, which is not limited by the present invention.

[0051] In step S303, the processing device 11 performs a bitwise exclusive OR (XOR) operation on the first intermediate parameter and the first part of the pre-stored bit string to generate a second intermediate parameter. Specifically, the processing device 11 can compare each bit of the first intermediate parameter and the first part of the pre-stored bit string, and when the two bits are the same, the output result is 0, and when the two bits are different, the output result is 1, and each output result is sequentially concatenated to generate the second intermediate parameter.

[0052] In step S305, the processing device 11 performs a bitwise AND operation on the second intermediate parameter and the second part of the pre-stored bit string to generate the first part of the third bit string. Specifically, the processing device 11 can compare each bit of the second intermediate parameter and the second part of the pre-stored bit string, and when both bits are 1, the output result is 1, otherwise the output result is 0, and each output result is sequentially concatenated to generate the first part of the third bit string.

[0053] For example, the device parameter is 0x23, the first part of the pre-stored bit string is 0x21, the second part of the pre-stored bit string is 0x66, the third direction is the right direction, and the third preset bit number is 2 bits. Then, the first intermediate parameter generated in step S301 is 0xC8; the second intermediate parameter generated in step S303 is 0xE9; and the first part of the third bit string generated in step S305 is 0x60.

[0054] Please refer to Figure 1 and Figure 5 ,in Figure 5 The present invention is a flowchart of a computer startup method according to another embodiment of the present invention. Figure 5 The steps shown can be performed by the processing device 11 and can be performed in Figure 2 After step S103 and before step S109. Figure 5 In the embodiment of the present invention, the second bit string further includes a first time parameter (Y; M). The first time parameter may be a time parameter when the processing device 11 stores the pre-stored bit string into the storage device 10. The time parameter may be obtained according to a real-time clock of the processing device 11. For example, the first time parameter may be one or both of a year or a month obtained according to the real-time clock.

[0055] like Figure 5 As shown, in Figure 2 Before step S109, the processing device 11 can be further used to execute: step S401: obtain a second time parameter according to the real-time clock of the processing device; step S403: determine whether the second time parameter minus the preset period is less than the first time parameter; if the judgment result of step S403 is "yes", execute step S405: authorize the target device to execute the boot procedure; and if the judgment result of step S403 is "no", execute step S407: do not authorize the target device to execute the boot procedure.

[0056] In step S401, the processing device 11 obtains a second time parameter according to the real-time clock of the processing device 11. The time unit of the second time parameter is the same as the time unit of the first time parameter. The difference between the first time parameter and the second time parameter is that the first time parameter is a predefined period, and the second time parameter is generated after obtaining the second bit string and is a time parameter indicating the current time.

[0057] In step S403, the processing device 11 subtracts the preset period from the second time parameter, and determines whether the second time parameter minus the preset period is less than the first time parameter, wherein the preset period may be 1 month, 2 months, etc., and the present invention is not limited thereto. In other words, in step S403, the processing device 11 determines whether the second time parameter is within the validity period (i.e., the first time parameter) corresponding to the pre-stored bit string. For example, the first time parameter (Y; M) is 0x23 and 0x03, and the preset period is 2 months. If the second time parameter (Y; M) is 0x23 and 0x04, then the second time parameter minus the preset period is 0x23 and 0x01, and the result is less than the first time parameter, so step S405 is executed.

[0058] If the judgment result of step S403 is “yes”, the processing device 11 executes step S405 ; if the judgment result of step S403 is “no”, the processing device 11 executes step S407 . Figure 5 Step S405 and Figure 2 The same as step S109, step S407 and Figure 2 The process is the same as step S211, so it will not be described here in detail.

[0059] The operation examples of the computer booting method and system according to one or more of the above embodiments are as follows. In the embodiment of determining whether to authorize the target device as the booting device for executing the booting program ( Figures 1 to 5 ), the processing device executes: reading a first bit string from the target device, assuming it is (0x8C; 0x0D; 0x80; 0x30); performing a bit rotation in a first direction on the first bit string according to a first preset bit number to generate a second bit string (0x23; 0x03; 0x60; 0x0C), wherein the first byte and / or the second byte in the second bit string can be used as a device parameter, the third byte can be used as a first parameter to be verified, and the fourth byte can be used as a second parameter to be verified; performing a bit rotation in a third direction on the device parameter according to a third preset bit number to generate a first intermediate parameter (0xC8); performing a bit rotation on the first intermediate parameter and the first part of the pre-stored bit string (0x21) according to A bitwise exclusive OR (XOR) operation is performed to generate a second intermediate parameter (0xE9); a bitwise AND operation (AND) is performed on the second intermediate parameter and the second part (0x66) of the pre-stored bit string to generate a first part (0x60) of the third bit string; a bit rotation is performed on the first part in a second direction according to a second preset bit quantity to generate a second part (0x0C) of the third bit string; and a first parameter to be verified (0x60) of the second bit string is compared to the first part (0x60) of the third bit string to determine whether they are the same, and a second parameter to be verified (0x0C) of the second bit string is compared to the second part (0x0C) of the third bit string to determine whether the target device is authorized to execute the boot procedure.

[0060] The computer startup method and system according to one or more embodiments of the present invention can be applied to computer systems such as automated teller machines (ATMs), point of sale information systems (POS), and can also be applied to general computer systems in homes and offices, and the present invention is not limited thereto. Taking an ATM as an example, a central control server responsible for managing one or more ATMs can be used to generate an authorization bit string and store the authorization bit string in one or more ATMs, thereby reducing the steps of installing the authorization bit string in multiple ATMs separately. The details of the authorization bit string are described in the following reference. Figure 7 When a maintenance engineer connects a portable storage device (target device) to an automatic teller machine, before the automatic teller machine starts to operate, a processing device at the automatic teller machine end (for example, a processing device disposed in the automatic teller machine end) may execute Figures 1 to 5 One or more embodiments are used to obtain the second bit string and the third bit string, and when it is determined that the parameter to be verified in the second bit string matches the third bit string, the boot program in the portable storage device is run; otherwise, if the portable storage device is unauthorized, the existing internal boot program of the ATM is run. In addition, taking the office application scenario as an example, the central control server responsible for managing multiple office computers can be used to generate an authorization bit string and store the authorization bit string in one or more office computers. When the office computer needs to connect to the flash drive and boot up through the internal system of the flash drive, the processing device on the office computer side (for example, the processing device set in the office computer) can execute Figures 1 to 5 One or more embodiments of the present invention are used to obtain the second bit string and the third bit string, and when it is determined that the to-be-verified parameter of the second bit string matches the third bit string, the booting procedure is executed through the flash drive.

[0061] Please refer to FIG. 6(a) first. FIG. 6(a) is a block diagram of a computer boot system and a boot device according to another embodiment of the present invention. As shown in FIG. 6(a), a computer boot system 2a according to another embodiment of the present invention includes a storage device 20, a first processing device 21, and a second processing device 22. The storage device 20 is electrically or communicatively connected to the first processing device 21 and the second processing device 22. The storage device 20 and the first processing device 21 of FIG. 6(a) are respectively connected to the first processing device 21 and the second processing device 22. Figure 1The storage device 10 and the processing device 11 are the same. The second processing device 22 may include one or more processors, and the processor may additionally or alternatively be, for example, a central processing unit, a graphics processor, a microcontroller, a programmable logic controller, or other processors with signal processing functions. In FIG6(a), the first processing device 21 and the second processing device 22 are electrically or communicatively connected to the first boot device BD1 and the second boot device BD2. FIG6(a) exemplarily shows two boot devices BD1 and BD2, and the number of boot devices may also be one or more than two, which is not limited by the present invention.

[0062] In FIG. 6( a ), one of the first processing device 21 and the second processing device 22 can be used as the above-mentioned ATM or the central control server for managing multiple office computers; the other of the first processing device 21 and the second processing device 22 can be used as the processing device at the ATM end or the processing device at the office computer end; the storage device 20 can be the storage device at the ATM or the central control server for managing multiple office computers, used to store pre-stored bit strings; the first boot device BD1 and the second boot device BD2 can be the above-mentioned portable storage devices or flash drives. In this architecture, the processing devices at the central control server end and the ATM end / office computer end access the same storage device 20, so that the central control server end obtains the authorization bit string according to the pre-stored bit string stored in the storage device 20, and the processing device at the ATM end / office computer end obtains the third bit string according to the pre-stored bit string stored in the storage device 20.

[0063] Please refer to Figure 6(b), which is a block diagram of a computer boot system and a boot device according to another embodiment of the present invention. As shown in Figure 6(b), a computer boot system 2b according to another embodiment of the present invention includes a first storage device 20a and 20b, a first processing device 21a and 21b, a second processing device 22, and a second storage device 23. The first storage devices 20a and 20b are electrically or communicatively connected to the first processing devices 21a and 21b, respectively, and the second processing device 22 is electrically or communicatively connected to the second storage device 23 and the first storage devices 20a and 20b. In Figure 6(b), the first processing devices 21a and 21b and the second processing device 22 are electrically or communicatively connected to the first boot device BD1 and the second boot device BD2, respectively. The first storage devices 20a and 20b and the first processing devices 21a and 21b of Figure 6(b) are respectively connected to Figure 1The second processing device 22 may include one or more processors, and the processors may be additionally or alternatively a central processing unit, a graphics processor, a microcontroller, a programmable logic controller, or other processors with signal processing functions. In the embodiment of FIG. 6( b ), the second processing device 22 stores the pre-stored bit strings in the first storage devices 20 a and 20 b, so that the first processing devices 21 a and 21 b respectively execute the above operations on the first boot device BD1 and the second boot device BD2. Figures 1 to 5 FIG6( b ) exemplarily shows two boot devices BD1 and BD2 , and the number of boot devices may be one or more than two, which is not limited by the present invention.

[0064] In Figure 6(b), the first processing devices 21a and 21b can be used as processing devices at the above-mentioned ATM end or office computer end; the first storage devices 20a and 20b can be used as storage devices at the above-mentioned ATM end or office computer end, for storing pre-stored bit strings; the second processing device 22 can be used as the above-mentioned ATM or a central control server that manages multiple office computers; the second storage device 23 can be used as a storage device at the central control server end in addition or alternatively; the first boot device BD1 and the second boot device BD2 can be the above-mentioned portable storage devices or flash drives. In this architecture, the processing devices at the central control server end and the ATM end / office computer end access different storage devices. The central control server end obtains the authorization bit string based on the pre-stored bit string stored in the second storage device 23, and the processing device at the ATM end / office computer end obtains the third bit string based on the pre-stored bit string stored in the first storage devices 20a and 20b, wherein the pre-stored bit string stored in the first storage devices 20a and 20b is the same as the pre-stored bit string stored in the second storage device 23.

[0065] Figures 1 to 5 The embodiment is intended to illustrate that when a computer system reads a target device and before booting, it first determines whether the target device is an authorized device to determine whether to authorize the target device as a boot device for executing a boot program. Figure 8 The embodiment is intended to illustrate the storage of a bit string into an authorized boot device for the computer system to execute the above Figures 1 to 5The computer boot method of one or more embodiments. The embodiment of storing the bit string into the authorized boot device can be executed by the first processing device 21, 21a, 21b or the second processing device 22. More specifically, the second processing device 22 and the storage device 20 in Figure 6(a) and the second processing device 22 and the second storage device 23 in Figure 6(b) can be used to execute the step of storing the following authorization bit string into the authorized boot device, and execute the above-mentioned step of determining whether the target device is authorized to execute the boot program. Alternatively, the second processing device 22 and the storage device 20 in Figure 6(a) and the second processing device 22 and the second storage device 23 in Figure 6(b) can be used to execute the step of storing the following authorization bit string into the authorized boot device, and the first processing device 21 and the storage device 20 in Figure 6(a) and the first processing devices 21a and 21b and the first storage devices 20a and 20b in Figure 6(b) can be used to execute the above-mentioned step of determining whether the target device is authorized to execute the boot program. In other words, the first processing device and the first storage device in FIG. 6( a ) and FIG. 6( b ) may be set at the user's local end, and the second processing device and the second storage device may be set at the central control server end of the boot device. For ease of description, the following embodiments are described based on the second processing device 22 .

[0066] Please refer to Figure 6(a), Figure 6(b) and Figure 7 ,in Figure 7 The flowchart of the method for generating an authorization bit string for a boot device is shown according to an embodiment of the present invention. Figure 7 The steps shown are performed by reading the first bit string ( Figure 2 Before step S101), and can be performed by the second processing device 22. Figure 7 As shown, the method for generating an authorization bit string of a boot device includes: step S501: obtaining an initial bit string associated with a pre-stored bit string; step S503: performing a bit rotation on the initial bit string in a direction opposite to a first direction according to a first preset bit quantity to generate an authorization bit string; and step S505: storing the authorization bit string in an authorization data block of one or more boot devices, wherein the authorization data block and the preset data block have the same address. Figure 7 The steps may also be implemented by the first processing device 21.

[0067] In step S501, the second processing device 22 obtains an initial bit string associated with a pre-stored bit string. The initial bit string may be a pre-stored bit string, or may be obtained by the second processing device 22 performing a preset logic operation on the pre-stored bit string. For example, the second processing device 22 may obtain data such as random garbled codes generated by the second processing device 22, a value obtained by performing a preset weighted operation on the random garbled codes additionally or alternatively, or a serial number of the second processing device 22, and convert one or more of these data into a preset byte format, which is not limited by the present invention.

[0068] In step S503 , the second processing device 22 performs a bit rotation on the first bit string in the opposite direction to the first direction according to the first preset bit number to generate a bit-rotated granted bit string.

[0069] In step S505, the second processing device 22 stores the authorization bit string into the authorization data block of each of the first boot device BD1 and the second boot device BD2. The authorization data block is an idle block in the first boot device BD1 and the second boot device BD2. The default data block and the authorization data block may have the same address, for example, a block from bit 0x1B4 to bit 0x1B7.

[0070] For example, corresponding to Figures 1 to 5 In the embodiment of the present invention, if the second bit string obtained by the first processing device 21 from the target device matches the third bit string, it means that the pre-stored bit string corresponding to the third bit string is the same as the pre-stored bit string used to generate the authorization bit string. Therefore, the first processing device 21 can authorize the target device to execute the boot procedure. In other words, if Figure 2 If the determination result of step S107 is "yes", it means that the target device is one of the first boot device BD1 and the second boot device BD2; otherwise, Figure 2 The determination result of step S107 is “No”, indicating that the target device is not one of the first boot device BD1 and the second boot device BD2 .

[0071] Please refer to Figure 6(a), Figure 6(b) and Figure 8 ,in Figure 8 is a flow chart of a method for obtaining an initial bit string for generating an authorization bit string according to an embodiment of the present invention. Figure 8 The steps shown can be performed by the second processing device 22 and can be regarded as Figure 7 Detailed flow chart of an embodiment of step S501. Figure 8As shown, the method for obtaining an initial bit string includes: step S601: obtaining device parameters; step S603: executing a preset operation formula on the device parameters and the pre-stored bit string to generate a first part of the initial bit string; and step S605: performing a bit rotation in a second direction on the first part according to a second preset bit number to generate a second part of the initial bit string. Figure 8 The steps may also be implemented by the first processing device 21.

[0072] In step S601, the second processing device 22 obtains a device parameter of the second processing device 22. The device parameter may be data of the second processing device 22, such as a time parameter, a serial number, a sequence number, etc. for storing a pre-stored bit string into the storage device 20 / 20a / 20b / 23. The device parameter may include one byte or two bytes.

[0073] In step S603, the second processing device 22 performs a preset operation formula on the device parameters and the pre-stored bit string to generate the first part of the initial bit string. For example, the preset operation formula may be a preset logical operation formula, and the second processing device 22 may perform a preset logical operation formula on the device parameters and the pre-stored bit string to generate the first part of the initial bit string.

[0074] In step S605, the second processing device 22 performs a second direction bit rotation on the first portion according to a second preset bit number to generate a second portion of the initial bit string. The second preset bit number can be the same as the first preset bit number, and the second direction can be the same as the first direction, which is not limited by the present invention.

[0075] Step S603 and step S605 can be performed in the same manner as Figure 3 In other words, the operation formula, bit rotation direction and bit number used to generate the initial bit string are the same as the operation formula, bit rotation direction and bit number used to generate the third bit string.

[0076] Furthermore, the device parameter in step S601 may include a byte. Furthermore, the device parameter may be a time parameter for the second processing device 22 to store the pre-stored bit string into the storage device 20. Additionally or alternatively, the time parameter may be obtained according to a real-time clock of the second processing device 22.

[0077] The preset operation formula in step S603 may include: performing a bit rotation in a first direction on the device parameter according to a third preset bit number to generate a first intermediate parameter; performing a bitwise exclusive OR (XOR) operation on the first intermediate parameter and a first portion of the pre-stored bit string to generate a second intermediate parameter; and performing a bitwise AND operation (AND) on the second intermediate parameter and a second portion of the pre-stored bit string. The preset operation formula in step S603 may be Figure 4 The steps shown are implemented in the same way, so they are not repeated here.

[0078] An example of the operation of the computer booting method and system according to one or more of the above embodiments is as follows, wherein the first part of the pre-stored bit string is 0x21 and the second part is 0x66. In the embodiment of storing the bit string in the authorized booting device ( Figure 7 and Figure 8 ), that is, in order to use the target device as an embodiment of a boot device for executing a boot program, the processing device executes: obtaining the year Y (0x23) and month M (0x03) indicated by the current real-time clock as the first sub-parameter and the second sub-parameter of the device parameter respectively; performing a bit rotation to the right (in the first direction) on the first sub-parameter according to 2 bits (the third preset bit number) to generate a first intermediate parameter (0xC8); performing a bitwise exclusive OR (XOR) operation on the first intermediate parameter and the first part (0x21) of the pre-stored bit string to generate a second intermediate parameter (0xE9); performing a bitwise exclusive OR (XOR) operation on the second intermediate parameter and the pre-stored bit string The second part (0x66) of the sequence is bitwise ANDed to generate the first part (0x60) of the initial bit sequence; the first part is bit-rotated to the left (second direction) according to 3 bits (second preset bit number) to generate the second part (0x0C) of the initial bit sequence; and the first sub-parameter, the second sub-parameter and the initial bit sequence are bit-rotated in the opposite direction to the first direction according to 2 bits (first preset bit number) to generate the authorized first bit sequence (0x8C; 0x0D; 0x80; 0x30), and the authorized first bit sequence is stored in one or more boot devices. The first preset bit number, the second preset bit number and the third preset bit number can be the same or different from each other, and the preset bit number can be determined according to the setting value of the bit rotation in the system; the first direction, the second direction and the third direction can be the same or different from each other, and the direction can be determined according to the setting value of the bit rotation in the system, and the present invention is not limited thereto.

[0079] In addition, the processing device may first enter the basic input and output system setting screen, activate the security device, and add a security identification code (ID), and then start the step of storing the bit string into the authorized boot device.

[0080] It should be noted that the above examples are described using hexadecimal bytes, but additionally or alternatively, the bytes may be implemented in binary, quaternary, or octal bases. In addition, when the bytes are implemented in a base other than binary, the processing device may perform the above bit conversion by first converting the bytes into binary, performing the bit conversion, and then converting the converted bytes back to the original base.

[0081] In summary, according to one or more embodiments of the present invention, the computer boot method and system can allow the target device to execute the boot program only after confirming that the target device is a previously authorized boot device, thereby preventing the computer system from being infected by viruses and preventing data from leaking out of the computer system. Therefore, only authorized boot devices can activate the boot mechanism. In addition, according to one or more embodiments of the present invention, the computer boot method and system are compatible with the existing operating system security boot mechanism.

[0082] Although the present invention is disclosed in the above embodiments, it is not intended to limit the present invention. Any changes and modifications made without departing from the spirit and scope of the present invention are within the scope of patent protection of the present invention. Please refer to the attached claims for the scope of protection defined by the present invention.

Claims

1. A method for starting up a computer. It is characterized in that The method comprises executing, by a processing device: Reading a first bit string located in a preset data block from a target device; Performing a bit rotation in a first direction on the first bit string according to a first preset bit number to generate a second bit string; Obtaining a third bit string associated with a pre-stored bit string; Determining whether a parameter to be verified of the second bit string matches the third bit string; When the parameter to be verified of the second bit string matches the third bit string, authorizing the target device to execute a boot procedure; as well as When the to-be-verified parameter of the second bit string does not match the third bit string, the target device is not authorized to execute the boot procedure.

2. The computer startup method according to claim 1, It is characterized in that The second bit string further includes a device parameter, the parameter to be verified includes a first parameter to be verified and a second parameter to be verified, and obtaining the third bit string associated with the pre-stored bit string includes: Executing a predetermined operation formula on the device parameter and the pre-stored bit string to generate a first part of the third bit string; Performing a bit rotation in a second direction on the first portion according to a second predetermined bit number to generate a second portion of the third bit string; The step of determining whether the parameter to be verified of the second bit string matches the third bit string comprises: comparing the first parameter to be verified with the first part to see if they are the same; and The second parameter to be verified is compared with the second part to determine whether they are the same.

3. The computer startup method as claimed in claim 2, It is characterized in that The default formula includes: Performing a bit rotation in a third direction on the device parameter according to a third preset bit number to generate a first intermediate parameter; Performing a bitwise exclusive OR operation on the first intermediate parameter and the first part of the pre-stored bit string to generate a second intermediate parameter; as well as A bitwise AND operation is performed on the second intermediate parameter and the second portion of the pre-stored bit string.

4. The computer startup method according to claim 1, It is characterized in that The second bit string includes a first time parameter, and the method further includes: Obtaining a second time parameter according to a real-time clock of the processing device; and Determine whether the second time parameter minus a preset period is less than the first time parameter, The target device is authorized to execute the boot procedure when the second time parameter minus the preset time limit is less than the first time parameter.

5. The computer startup method according to claim 1, It is characterized in that Before the processing device reads the first bit string from the target device, the processing device or another processing device further comprises executing: Obtaining an initial bit string associated with the pre-stored bit string; Performing a bit rotation on the initial bit string in a direction opposite to the first direction according to the first predetermined bit quantity to generate an authorized bit string; as well as The authorization bit string is stored in an authorization data block of one or more boot devices respectively, wherein the authorization data block and the default data block have the same address.

6. The computer startup method according to claim 5, It is characterized in that Obtaining the initial bit string associated with the pre-stored bit string comprises: Obtaining a device parameter; Executing a predetermined operation formula on the device parameter and the pre-stored bit string to generate a first part of the initial bit string; and The first portion is subjected to a bit rotation in a second direction according to a second predetermined bit number to generate a second portion of the initial bit string.

7. The computer startup method according to claim 6, It is characterized in that The default formula includes: Performing bit rotation in the first direction on the device parameter according to a third preset bit number to generate a first intermediate parameter; Performing a bitwise exclusive OR operation on the first intermediate parameter and the first part of the pre-stored bit string to generate a second intermediate parameter; as well as A bitwise AND operation is performed on the second intermediate parameter and the second portion of the pre-stored bit string.

8. A computer startup system, It is characterized in that Include: a storage device for storing a pre-stored bit string and a plurality of instructions; and A processing device, connected to the storage device, configured to read the instructions to execute: Reading a first bit string located in a preset data block from a target device; Performing bit rotation on the first bit string according to a preset bit number to generate a second bit string; Obtaining a third bit string associated with the pre-stored bit string; Determining whether a parameter to be verified of the second bit string matches the third bit string; When the parameter to be verified of the second bit string matches the third bit string, authorizing the target device to execute a boot procedure; as well as When the to-be-verified parameter of the second bit string does not match the third bit string, the target device is not authorized to execute the boot procedure.

9. The computer startup system as claimed in claim 8, It is characterized in that The second bit string further includes a device parameter, the parameter to be verified includes a first parameter to be verified and a second parameter to be verified, and the processing device executes to obtain the third bit string associated with the pre-stored bit string including: Executing a predetermined operation formula on the device parameter and the pre-stored bit string to generate a first part of the third bit string; Performing a bit rotation in a second direction on the first portion according to a second predetermined bit number to generate a second portion of the third bit string; The step of determining whether the parameter to be verified of the second bit string matches the third bit string comprises: comparing the first parameter to be verified with the first part to see if they are the same; and The second parameter to be verified is compared with the second part to determine whether they are the same.

10. The computer startup system as claimed in claim 9, It is characterized in that The default formula includes: Performing a bit rotation in a third direction on the device parameter according to a third preset bit number to generate a first intermediate parameter; Performing a bitwise exclusive OR operation on the first intermediate parameter and the first part of the pre-stored bit string to generate a second intermediate parameter; as well as A bitwise AND operation is performed on the second intermediate parameter and the second portion of the pre-stored bit string.

11. The computer startup system as claimed in claim 8, It is characterized in that The second bit string includes a first time parameter, and the processing device is further configured to execute: Obtaining a second time parameter according to a real-time clock of the processing device; and Determine whether the second time parameter minus a preset period is less than the first time parameter, The target device is authorized to execute the boot procedure when the second time parameter minus the preset time limit is less than the first time parameter.

12. The computer startup system as claimed in claim 8, It is characterized in that The processing device is further configured to perform: Obtaining an initial bit string associated with the pre-stored bit string; Performing a bit rotation on the initial bit string in a direction opposite to a first direction according to a first preset bit number to generate an authorized bit string; as well as The authorization bit string is stored in an authorization data block of one or more boot devices respectively, wherein the authorization data block and the default data block have the same address.

13. The computer startup system as claimed in claim 8, It is characterized in that The invention further comprises another processing device and another storage device, wherein the another storage device stores the pre-stored bit string, and before the processing device reads the first bit string from the target device, the another processing device is used to execute: Obtaining an initial bit string associated with the pre-stored bit string; Performing a bit rotation on the initial bit string in a direction opposite to a first direction according to a first preset bit number to generate an authorized bit string; as well as The authorization bit string is stored in an authorization data block of one or more boot devices respectively, wherein the authorization data block and the default data block have the same address.

14. The computer startup system according to claim 12, It is characterized in that The processing device executes obtaining the initial bit string associated with the pre-stored bit string, comprising: Obtaining a device parameter; Executing a predetermined operation formula on the device parameter and the pre-stored bit string to generate a first part of the initial bit string; and The first portion is subjected to a bit rotation in a second direction according to a second predetermined bit number to generate a second portion of the initial bit string.

15. The computer startup system as claimed in claim 13, It is characterized in that The another processing device executes obtaining the initial bit string associated with the pre-stored bit string, comprising: Obtaining a device parameter; Executing a predetermined operation formula on the device parameter and the pre-stored bit string to generate a first part of the initial bit string; and The first portion is subjected to a bit rotation in a second direction according to a second predetermined bit number to generate a second portion of the initial bit string.

16. The computer startup system according to claim 14, It is characterized in that The default formula includes: Performing bit rotation in the first direction on the device parameter according to a third preset bit number to generate a first intermediate parameter; Performing a bitwise exclusive OR operation on the first intermediate parameter and the first part of the pre-stored bit string to generate a second intermediate parameter; as well as A bitwise AND operation is performed on the second intermediate parameter and the second portion of the pre-stored bit string.