A boot verification method, wherein the method is applied to an electronic device, and the method comprises: after the electronic device is powered on, obtaining an algorithm selection identifier in boot firmware, wherein a first part of the boot firmware is a description of the boot firmware comprising the algorithm selection identifier, a second part of the boot firmware is data of a boot code, a third part of the boot firmware is a first digital signature value obtained through digital signature calculation on content of the first part and the second part with the a first cryptographic algorithm, and a fourth part of the boot firmware is a second digital signature value obtained through digital signature calculation on the content of the first part and the second part with a second cryptographic algorithm, the algorithm selection identifier indicates an algorithm used by the electronic device in a boot phase, and the electronic device supports a plurality of algorithms applied to the boot phase; and verifying a digital signature value of the boot firmware based on the algorithm selection identifier by using a target algorithm, wherein the target algorithm is an algorithm, corresponding to the algorithm selection identifier, in the plurality of algorithms, when the algorithm selection identifier in the boot firmware indicates to use the first cryptographic algorithm to verify the boot firmware, the electronic devices verifies the first digital signature value in the boot firmware by using the first cryptographic algorithm, and when the algorithm selection identifier in the boot firmware indicates to use the second cryptographic algorithm to verify the boot firmware, the electronic devices verifies the second digital signature value in the boot firmware by using the second cryptographic algorithm. after the electronic device is powered on, obtaining an algorithm selection identifier in boot firmware, wherein a first part of the boot firmware is a description of the boot firmware comprising the algorithm selection identifier, a second part of the boot firmware is data of a boot code, a third part of the boot firmware is a first digital signature value obtained through digital signature calculation on content of the first part and the second part with the a first cryptographic algorithm, and a fourth part of the boot firmware is a second digital signature value obtained through digital signature calculation on the content of the first part and the second part with a second cryptographic algorithm, the algorithm selection identifier indicates an algorithm used by the electronic device in a boot phase, and the electronic device supports a plurality of algorithms applied to the boot phase; and verifying a digital signature value of the boot firmware based on the algorithm selection identifier by using a target algorithm, wherein the target algorithm is an algorithm, corresponding to the algorithm selection identifier, in the plurality of algorithms, when the algorithm selection identifier in the boot firmware indicates to use the first cryptographic algorithm to verify the boot firmware, the electronic devices verifies the first digital signature value in the boot firmware by using the first cryptographic algorithm, and when the algorithm selection identifier in the boot firmware indicates to use the second cryptographic algorithm to verify the boot firmware, the electronic devices verifies the second digital signature value in the boot firmware by using the second cryptographic algorithm. <EOS>