IP Library Granted Patent US 11,232,211
Granted Patent B2
US 11,232,211 · App. 16/493,284 · Granted Jan 25, 2022

Method, apparatus and device for sharing password between BIOS and operating system

Inventor: Binghui Zhang (Henan, CN)
Assignee: ZHENGZHOU YUNHAI INFORMATION TECHNOLOGY CO., LTD.
G06F21/575G06F21/31G06F21/44G06F21/78
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,232,211
App. No.
16/493,284
Granted
Jan 25, 2022
Kind
B2
Abstract

A method, an apparatus and a device for sharing a password between a BIOS and an operating system are provided, which are applied to a Legacy boot mode. In the method, a user is prompted to input a password of the BIOS. The password inputted by the logon user is received and verified. The verified password is stored in a predetermined target memory and E820H information is created if the received password is verified as correct, where address data in the E820H information points to an address of the target memory. The address of the target memory is determined based on the created E820H information and memory contents are obtained if a password is set for the operating system. The logon user is permitted to log on the operating system if the acquired memory contents are verified as correct.

Claims (59)

1. A method for sharing a password between a basic input output system (BIOS) and an operating system, the method applied to a Legacy boot mode and comprising:

prompting a logon user to input a password of the BIOS if it is detected in a process of power-on self-test that a password is set for the BIOS;

receiving the password of the BIOS inputted by the logon user, and verifying the received password of the BIOS;

storing the verified password of the BIOS in a predetermined target memory and creating E820H information in a case that the received password of the BIOS is verified as correct, wherein address data in the E820H information points to an address of the target memory;

determining the address of the target memory based on the created E820H information and acquiring memory contents stored in the target memory, if it is detected that a password is set for the operating system; and

permitting the logon user to log on the operating system in a case that the acquired memory contents are verified as correct.

2. The method for sharing a password between a BIOS and an operating system according to claim 1 , wherein

the storing the verified password of the BIOS in a predetermined target memory comprises:

storing the verified password of the BIOS in the predetermined target memory, and storing a flag bit corresponding to the verified password of the BIOS in the predetermined target memory; and

the acquiring memory contents stored in the target memory comprises:

acquiring the password of the BIOS and the flag bit that are stored in the target memory.

3. The method for sharing a password between a BIOS and an operating system according to claim 2 , wherein the permitting the logon user to log on the operating system in a case that the acquired memory contents are verified as correct comprises:

permitting the logon user to log on the operating system in a case that the acquired flag bit is verified as correct.

4. The method for sharing a password between a BIOS and an operating system according to claim 2 , wherein the permitting the logon user to log on the operating system in a case that the acquired memory contents are verified as correct comprises:

permitting the logon user to log on the operating system in a case that both the acquired password of the BIOS and the acquired flag bit that are stored in the target memory are verified as correct.

5. The method for sharing a password between a BIOS and an operating system according to claim 1 , wherein

the storing the verified password of the BIOS in a predetermined target memory comprises:

storing the verified password of the BIOS in the predetermined target memory based on a predetermined data structure; and

the acquiring memory contents stored in the target memory comprises:

acquiring the memory contents stored in the target memory by parsing data in the target memory based on the predetermined data structure.

6. The method for sharing a password between a BIOS and an operating system according to claim 1 , wherein the determining the address of the target memory based on the created E820H information comprises:

acquiring the address data in the E820H information by triggering INT15 E820H interrupt, and determining the address of the target memory based on the address data.

7. The method for sharing a password between a BIOS and an operating system according to claim 1 , wherein after it is detected that a password is set for the operating system, and before the determining the address of the target memory based on the created E820H information and acquiring memory contents stored in the target memory, the method further comprises:

determining whether the password set for the operating system is identical to the password set for the BIOS, wherein the determining the address of the target memory based on the created E820H information and acquiring memory contents stored in the target memory is performed if it is determined that the password set for the operating system is identical to the password set for the BIOS.

8. An apparatus for sharing a password between a basic input output system (BIOS) and an operating system, the apparatus applied to a Legacy boot mode and comprising:

a password inputting module configured to prompt a logon user to input a password of the BIOS if it is detected in a process of power-on self-test that a password is set for the BIOS;

a first verifying module configured to receive the password of the BIOS inputted by the logon user and verify the received password of the BIOS;

a configuration table creating module configured to store the verified password of the BIOS in a predetermined target memory and create E820H information in a case that the received password of the BIOS is verified as correct, wherein address data in the E820H information points to an address of the target memory;

a memory content acquiring module configured to determine the address of the target memory based on the created E820H information and acquire memory contents stored in the target memory, if it is detected that a password is set for the operating system; and

a second verifying module configured to permit the logon user to log on the operating system in a case that the acquired memory contents are verified as correct.

9. The apparatus for sharing a password between a BIOS and an operating system according to claim 8 , wherein

the configuration table creating module is configured to, in a case that the received password of the BIOS is verified as correct, store the verified password of the BIOS in the predetermined target memory, store a flag bit corresponding to the verified password of the BIOS in the predetermined target memory, and create the E820H information, wherein the address data in the E820H information points to the address of the target memory; and

the memory content acquiring module is configured to, if it is detected that a password is set for the operating system, determine the address of the target memory based on the created E820H information, and acquire the password of the BIOS and the flag bit that are stored in the target memory.

10. A device for sharing a password between a basic input output system (BIOS) and an operating system, comprising:

a memory configured to store programs; and

a processor configured to execute the programs to perform operations of:

prompting a logon user to input a password of the BIOS if it is detected in a process of power-on self-test that a password is set for the BIOS;

receiving the password of the BIOS inputted by the logon user, and verifying the received password of the BIOS;

storing the verified password of the BIOS in a predetermined target memory and creating E820H information in a case that the received password of the BIOS is verified as correct, wherein address data in the E820H information points to an address of the target memory;

determining the address of the target memory based on the created E820H information and acquiring memory contents stored in the target memory, if it is detected that a password is set for the operating system; and

permitting the logon user to log on the operating system in a case that the acquired memory contents are verified as correct.

11. The device for sharing a password between a BIOS and an operating system according to claim 10 , wherein

the storing the verified password of the BIOS in a predetermined target memory comprises:

storing the verified password of the BIOS in the predetermined target memory, and storing a flag bit corresponding to the verified password of the BIOS in the predetermined target memory; and

the acquiring memory contents stored in the target memory comprises:

acquiring the password of the BIOS and the flag bit that are stored in the target memory.

12. The device for sharing a password between a BIOS and an operating system according to claim 11 , wherein the permitting the logon user to log on the operating system in a case that the acquired memory contents are verified as correct comprises:

permitting the logon user to log on the operating system in a case that the acquired flag bit is verified as correct.

13. The device for sharing a password between a BIOS and an operating system according to claim 11 , wherein the permitting the logon user to log on the operating system in a case that the acquired memory contents are verified as correct comprises:

permitting the logon user to log on the operating system in a case that both the acquired password of the BIOS and the acquired flag bit that are stored in the target memory are verified as correct.

14. The device for sharing a password between a BIOS and an operating system according to claim 10 , wherein

the storing the verified password of the BIOS in a predetermined target memory comprises:

storing the verified password of the BIOS in the predetermined target memory based on a predetermined data structure; and

the acquiring memory contents stored in the target memory comprises:

acquiring the memory contents stored in the target memory by parsing data in the target memory based on the predetermined data structure.

15. The device for sharing a password between a BIOS and an operating system according to claim 10 , wherein the determining the address of the target memory based on the created E820H information comprises:

acquiring the address data in the E820H information by triggering INT15 E820H interrupt, and determining the address of the target memory based on the address data.

16. The device for sharing a password between a BIOS and an operating system according to claim 10 , wherein after it is detected that a password is set for the operating system, and before the determining the address of the target memory based on the created E820H information and acquiring memory contents stored in the target memory, the processor is configured to execute the programs to perform the operation of:

determining whether the password set for the operating system is identical to the password set for the BIOS, wherein the determining the address of the target memory based on the created E820H information and acquiring memory contents stored in the target memory is performed if it is determined that the password set for the operating system is identical to the password set for the BIOS.

Assignments (2)
LICENSE Recorded Jun 30, 2026
From: IEIT SYSTEMS CO., LTD
To: AIVRES SYSTEMS INC.
Reel/Frame 075857/0939 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Oct 8, 2019
From: ZHANG, BINGHUI
To: ZHENGZHOU YUNHAI INFORMATION TECHNOLOGY CO., LTD.
Reel/Frame 050649/0302 →
Priority Claims (1)
CN 201810700195.9 · Jun 29, 2018 · national
Continuity (1)
Related Publication 20210365560A1 · Nov 25, 2021