Software integrity protection method and apparatus, and software integrity verification method and apparatus
Abstract
Embodiments of this application disclose a software integrity protection method and apparatus. A first device obtains a first software package, where the first software package includes a first signature made by a first party for a second software package by using a first private key; and the first device performs a signing operation on the first software package by using a second private key, to obtain a third software package including a second signature, where the first private key is controlled by the first party, and the second private key is controlled by a second party. The first device sends the third software package to a second device. The second device verifies the first signature and the second signature in the third software package respectively based on a first public key and a second public key that are prestored, to obtain a verification result.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 13 · Forward citations: 0.
Claims (8)
- Claim 1Independent Claim
A software integrity protection method, comprising: obtaining, by a first device, a first software package, wherein the first software package comprises a first signature and software, the first signature made by a first party for the software as part of a second software package using a first private key; performing, by the first device, a signing operation on at least the software using a second private key, to obtain a third software package comprising a second signature and the software, wherein the first private key is controlled by the first party, and the second private key is controlled by a second party; sending, by the first device, the third software package to a second device; receiving, by the second device, the third software package; and wherein the second device comprises a switching enable bit, and the method further comprises at least one of: when the switching enable bit is invalid and a dual-root enable bit on the second device is valid: determining, by the second d
- Claim 2Depends on #1
The method according to claim 1, wherein the first party is a user of the software, and the second party is a manufacturer of the software or a third-party digital certificate authority.
- Claim 3Independent Claim
A software integrity verification method, comprising: obtaining, by a second device, a first software package, wherein the first software package comprises a first signature, a second signature, and a second software package comprising software; and verifying integrity of the software, by the second device, by verifying at least one of the first signature and the second signature respectively based on a first public key and a second public key that are prestored, to obtain a verification result, wherein the first public key is controlled by a first party, and the second public key is controlled by a second party, wherein the second device comprises a switching enable bit, and the verifying integrity of the software comprising at least one of: when the switching enable bit is invalid and a dual-root enable bit on the second device is valid: determining, by the second device, that the first signature and the second signature are both valid; and indicating, by the second device, that inte
- Claim 4Depends on #3
The method according to claim 3, wherein the first signature is generated by performing a signing operation on the second software package by using a first private key controlled by the first party, the first signature and the second software package are comprised in a third software package, the second signature is obtained by performing a signing operation on the third software package by using a second private key controlled by the second party, the first private key matches the first public key, and the second private key matches the second public key.
- Claim 5Depends on #3
The method according to claim 3, wherein the first party is a user of the second software package, and the second party is a manufacturer of the second software package or a third-party digital certificate authority.
- Claim 6Independent Claim
A software integrity protection system, comprising: a first device, comprising at least one processor and a memory coupled with the one or more processors, wherein the memory comprises instructions that, when executed by the at least one processor, cause the first device to: obtain a first software package, wherein the first software package comprises a first signature, the first signature and software made by a first party for the software as a part of a second software package using a first private key; perform a signing operation on at least the software using a second private key, to obtain a third software package comprising a second signature and the software, wherein the first private key is controlled by the first party, and the second private key is controlled by a second party; and send the third software package; and a second device, comprising at least one second processor and a second memory coupled with the one or more second processors, the second memory comprising secon
- Claim 7Depends on #6
The system according to claim 6, wherein the first party is a user of the second software package, and the second party is a manufacturer of the second software package or a third-party digital certificate authority.
- Claim 8Independent Claim
A software integrity verification device, where the software integrity verification device comprising: at least one processor and a memory coupled with the one or more processors, the memory comprising instructions, the instructions when executed by the at least one processor cause the device to: obtain a first software package, wherein the first software package comprises a first signature, a second signature, and a second software package comprising software; and verify integrity of the first software package by verifying at least one of the first signature and the second signature respectively based on a first public key and a second public key that are prestored, to obtain a verification result, wherein the first public key is controlled by a first party, and the second public key is controlled by a second party, wherein the software integrity verification device comprises a switching enable bit, and the verifying integrity of the software comprising at least one of: when the switc
Technical Overview & Description
CROSS-REFERENCE TO RELATED APPLICATIONS This application is a continuation of International Application No. PCT/CN2020/122503, filed on Oct. 21, 2020, which claims priority to Chinese Patent Application No. 201911012940.1, filed on Oct. 23, 2019 and Chinese Patent Application No. 201911120987.X, filed on Nov. 15, 2019. All of the aforementioned patent applications are hereby incorporated by reference in their entireties. TECHNICAL FIELD This application relates to the field of security technologies, and in particular, to a software integrity protection method and apparatus, and a software integrity verification method and apparatus. BACKGROUND Usually, to ensure software integrity of a software package, software integrity protection and verification may be performed on the software package, which specifically includes: Before the software package is downloaded to a device, the software package is signed by using a private key provided by a software manufacturer. Before loading the software package, the device verifies a signature of the software package by using a public key corresponding to the private key. If the signature verification succeeds, it indicates that the software package is not maliciously tampered with by an attacker and can be loaded. Currently, a software package is signed and signature verification is performed on the software package by using only keys provided by a software manufacturer, to ensure software integrity of the software package loaded on a device. Consequently, a trust issue cannot be resolved for a user. SUMMARY In view of this, embodiments of this application provide a software integrity protection method and apparatus, and a software integrity verification method and apparatus, to provide software integrity protection and verification manners that are trusted by a user, thereby improving user experience of using a device. According to a first aspect, a software integrity protection method is provided. The method is used to perform
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (13)
| Patent | Title | Year | Citations |
|---|