CN109189450A - A kind of method and device of server firmware upgrading - Google Patents

A kind of method and device of server firmware upgrading Download PDF

Info

Publication number
CN109189450A
CN109189450A CN201811242236.0A CN201811242236A CN109189450A CN 109189450 A CN109189450 A CN 109189450A CN 201811242236 A CN201811242236 A CN 201811242236A CN 109189450 A CN109189450 A CN 109189450A
Authority
CN
China
Prior art keywords
firmware
finger print
print information
server
upgrading
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811242236.0A
Other languages
Chinese (zh)
Inventor
张玉峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201811242236.0A priority Critical patent/CN109189450A/en
Publication of CN109189450A publication Critical patent/CN109189450A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a kind of methods of server firmware upgrading, comprising: receives firmware upgrade compressed package, decompresses to the firmware upgrade compressed package, in the firmware upgrade compressed package includes firmware and carry out encrypted password to the finger print information of the firmware;Obtain the finger print information of the firmware;The password is decrypted, decrypted result is compared with acquired finger print information, is determined whether to carry out upgrading processing to the firmware according to comparison result.A kind of device of server firmware upgrading is also disclosed.The verifying of integrality and safety that this programme carries out upgrade package guarantees the integrality and safety of the firmware of server updating by Encryption Algorithm and fingerprint algorithm.

Description

A kind of method and device of server firmware upgrading
Technical field
The present invention relates to field of computer technology, espespecially a kind of method and device of server firmware upgrading.
Background technique
In the daily O&M of server, the refreshing of firmware is the operation for needing often to carry out, and current server firmware is independent It issues, issues rear server and entered firmware brush in server by particular tool.It is tampered or damages there are firmware during this Bad a possibility that, and server end upgrading tool does not also carry out the verification of any integrality and safety to this firmware, therefore There can be certain risk.
Summary of the invention
In order to solve the above-mentioned technical problems, the present invention provides a kind of method and devices of server firmware upgrading, can The verifying of the integrality and safeties that carried out to upgrade package.
In order to reach the object of the invention, the present invention provides a kind of methods of server firmware upgrading, wherein includes:
Firmware upgrade compressed package is received, the firmware upgrade compressed package is decompressed, in the firmware upgrade compressed package Encrypted password is carried out including firmware and to the finger print information of the firmware;
Obtain the finger print information of the firmware;
The password is decrypted, decrypted result is compared with acquired finger print information, according to comparison result Determine whether to carry out upgrading processing to the firmware.
Further, the finger print information for obtaining the firmware includes:
The finger print information for obtaining the firmware is acquired using Message Digest 5.
Further, the finger print information to the firmware, which carries out encryption, is encrypted using rivest, shamir, adelman 's.
Further, the encrypted password of finger print information progress to the firmware is saved in a text file 's.
A kind of device of server firmware upgrading, comprising: memory and processor;Wherein:
The memory, for saving the program for being used for server firmware upgrading;
The processor executes the program for server firmware upgrading for reading, performs the following operations:
Firmware upgrade compressed package is received, the firmware upgrade compressed package is decompressed, in the firmware upgrade compressed package Encrypted password is carried out including firmware and to the finger print information of the firmware;
Obtain the finger print information of the firmware;
The password is decrypted, decrypted result is compared with acquired finger print information, according to comparison result Determine whether to carry out upgrading processing to the firmware.
Further, the processor, the finger print information for obtaining the firmware include: to be adopted using Message Digest 5 Collection obtains the finger print information of the firmware.
Further, the finger print information to the firmware, which carries out encryption, is encrypted using rivest, shamir, adelman 's.
Further, the encrypted password of finger print information progress to the firmware is saved in a text file 's.
The scheme of the present embodiment, when server firmware upgrading, the verifying of the integrality and safeties that carried out to upgrade package, Guarantee the integrality and safety of the firmware of server updating by Encryption Algorithm and fingerprint algorithm.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention can be by specification, right Specifically noted structure is achieved and obtained in claim and attached drawing.
Detailed description of the invention
Attached drawing is used to provide to further understand technical solution of the present invention, and constitutes part of specification, with this The embodiment of application technical solution for explaining the present invention together, does not constitute the limitation to technical solution of the present invention.
Fig. 1 is the flow chart for the method that a kind of server firmware of the embodiment of the present invention upgrades;
Fig. 2 is the device that the server firmware of the embodiment of the present invention upgrades.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention Embodiment be described in detail.It should be noted that in the absence of conflict, in the embodiment and embodiment in the application Feature can mutual any combination.
Step shown in the flowchart of the accompanying drawings can be in a computer system such as a set of computer executable instructions It executes.Also, although logical order is shown in flow charts, and it in some cases, can be to be different from herein suitable Sequence executes shown or described step.
Fig. 1 is the flow chart for the method that a kind of server firmware of the embodiment of the present invention upgrades, as shown in Figure 1, this implementation Example method include:
Step 101 receives firmware upgrade compressed package, decompresses to the firmware upgrade compressed package, the firmware upgrade In compressed package include firmware and encrypted password is carried out to the finger print information of the firmware;
Step 102, the finger print information for obtaining the firmware;
The password is decrypted in step 103, and decrypted result is compared with acquired finger print information, according to Comparison result determines whether to carry out upgrading processing to the firmware.
In the method for the present embodiment, when server firmware upgrades, the verifying of the integrality and safeties that carried out to upgrade package, Guarantee the integrality and safety of the firmware of server updating by Encryption Algorithm and fingerprint algorithm.
In the present embodiment, before issuing before firmware upgrade compressed package, the acquisition and encryption to firmware finger print information, firmware are needed The acquisition of finger print information is mainly completed by Message Digest 5.Message Digest 5 such as MD5 Message Digest 5, SHA1 and SHA256 etc..MD5 Message Digest 5 is a kind of Cryptographic Hash Function being widely used, and can produce out one 128 (16 Byte) hashed value (hash value), for ensuring that information transmission is complete consistent.The hashed value can be regarded as this firmware Finger print information, this finger print information is constant as long as firmware does not change, if this fingerprint is distorted or damaged to firmware Information changes.
After obtaining finger print information, finger print information is encrypted, encryption uses rivest, shamir, adelman, such as RSA Algorithm encrypts finger print information.RSA Algorithm has used a pair of secret keys, public key (publickey) and private key (private key).Asymmetric encryption encrypts one in key using this, and decrypts and then need another key.Private key is protected safely Pipe, cannot leak, and public key is then built into firmware upgrade tool, is issued together with firmware upgrade tool.Obtaining firmware After finger print information, finger print information can be encrypted using the private key of RSA Algorithm.
The password of encryption can be saved in text file to be placed into a compressed package together with firmware, is then issued.
In the present embodiment, the signature sign test part of upgrading tool, upgrading tool is receiving the firmware upgrade compression issued After packet, compressed package is decompressed, decompression complete after equally use Message Digest 5 acquisition firmware finger print information with It is spare.Text file is opened simultaneously, the ciphertext of the inside is taken.Ciphertext is decrypted, decryption complete after by decrypted result with Just now the finger print information obtained is compared, and the safety and integrality of firmware are judged according to comparison result.
In the present embodiment, upgrading tool can equally use RSA Algorithm, and utilize the public key being built in inside upgrading tool Ciphertext is decrypted.Decrypted result is compared with the finger print information obtained just now after completing for decryption, if comparing knot Fruit is completely the same, then proves that the firmware is not tampered with or damages.If the comparison results are inconsistent, then proves that the firmware is usurped Change or damage, can not upgrade.
The method of the present embodiment provides a kind of verification mode of reliability to the upgrading of all types of server firmwares, it is ensured that clothes The firmware of business device upgrading is completely, is not tampered with.It avoids and the risk that firmware is distorted and damaged occurs in firmware upgrade, mention The high safety and reliability of server O&M.
Fig. 2 is the device that the server firmware of the embodiment of the present invention upgrades, as shown in Fig. 2, the device of the present embodiment can be with It include: memory and processor;Wherein,
The memory, for saving the program for being used for server firmware upgrading;
The processor executes the program for server firmware upgrading for reading, performs the following operations:
Firmware upgrade compressed package is received, the firmware upgrade compressed package is decompressed, in the firmware upgrade compressed package Encrypted password is carried out including firmware and to the finger print information of the firmware;
Obtain the finger print information of the firmware;
The password is decrypted, decrypted result is compared with acquired finger print information, according to comparison result Determine whether to carry out upgrading processing to the firmware.
Further, the processor, the finger print information for obtaining the firmware include: to be adopted using Message Digest 5 Collection obtains the finger print information of the firmware.
Further, the finger print information to the firmware, which carries out encryption, is encrypted using rivest, shamir, adelman 's.
Further, the encrypted password of finger print information progress to the firmware is saved in a text file 's.
The device of the embodiment of the present invention provides a kind of verification mode of reliability to the upgrading of all types of server firmwares, really The firmware for protecting server updating is completely, is not tampered with.The scheme of the embodiment of the present invention, which avoids in firmware upgrade, to be occurred The risk that firmware is distorted and damaged improves the safety and reliability of server O&M.
The embodiment of the invention also provides a kind of computer readable storage mediums, are stored with computer executable instructions, The computer executable instructions are performed the method for realizing the server firmware upgrading.
It will appreciated by the skilled person that whole or certain steps, system, dress in method disclosed hereinabove Functional module/unit in setting may be implemented as software, firmware, hardware and its combination appropriate.In hardware embodiment, Division between the functional module/unit referred in the above description not necessarily corresponds to the division of physical assemblies;For example, one Physical assemblies can have multiple functions or a function or step and can be executed by several physical assemblies cooperations.Certain groups Part or all components may be implemented as by processor, such as the software that digital signal processor or microprocessor execute, or by It is embodied as hardware, or is implemented as integrated circuit, such as specific integrated circuit.Such software can be distributed in computer-readable On medium, computer-readable medium may include computer storage medium (or non-transitory medium) and communication media (or temporarily Property medium).As known to a person of ordinary skill in the art, term computer storage medium is included in for storing information (such as Computer readable instructions, data structure, program module or other data) any method or technique in the volatibility implemented and non- Volatibility, removable and nonremovable medium.Computer storage medium include but is not limited to RAM, ROM, EEPROM, flash memory or its His memory technology, CD-ROM, digital versatile disc (DVD) or other optical disc storages, magnetic holder, tape, disk storage or other Magnetic memory apparatus or any other medium that can be used for storing desired information and can be accessed by a computer.This Outside, known to a person of ordinary skill in the art to be, communication media generally comprises computer readable instructions, data structure, program mould Other data in the modulated data signal of block or such as carrier wave or other transmission mechanisms etc, and may include any information Delivery media.

Claims (8)

1. a kind of method of server firmware upgrading characterized by comprising
Firmware upgrade compressed package is received, the firmware upgrade compressed package is decompressed, includes in the firmware upgrade compressed package Firmware and encrypted password is carried out to the finger print information of the firmware;
Obtain the finger print information of the firmware;
The password is decrypted, decrypted result is compared with acquired finger print information, is determined according to comparison result Whether upgrading processing is carried out to the firmware.
2. the method according to claim 1, wherein the finger print information for obtaining the firmware includes:
The finger print information for obtaining the firmware is acquired using Message Digest 5.
3. the method according to claim 1, wherein
The finger print information to the firmware is carried out encryption and is encrypted using rivest, shamir, adelman.
4. the method according to claim 1, wherein
The finger print information to the firmware carries out encrypted password and is saved in a text file.
5. a kind of device of server firmware upgrading, comprising: memory and processor;It is characterized by:
The memory, for saving the program for being used for server firmware upgrading;
The processor executes the program for server firmware upgrading for reading, performs the following operations:
Firmware upgrade compressed package is received, the firmware upgrade compressed package is decompressed, includes in the firmware upgrade compressed package Firmware and encrypted password is carried out to the finger print information of the firmware;
Obtain the finger print information of the firmware;
The password is decrypted, decrypted result is compared with acquired finger print information, is determined according to comparison result Whether upgrading processing is carried out to the firmware.
6. device according to claim 5, which is characterized in that
The processor, obtain the firmware finger print information include: using Message Digest 5 be acquired obtain it is described solid The finger print information of part.
7. device according to claim 5, which is characterized in that
The finger print information to the firmware is carried out encryption and is encrypted using rivest, shamir, adelman.
8. device according to claim 5, which is characterized in that
The finger print information to the firmware carries out encrypted password and is saved in a text file.
CN201811242236.0A 2018-10-24 2018-10-24 A kind of method and device of server firmware upgrading Pending CN109189450A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811242236.0A CN109189450A (en) 2018-10-24 2018-10-24 A kind of method and device of server firmware upgrading

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811242236.0A CN109189450A (en) 2018-10-24 2018-10-24 A kind of method and device of server firmware upgrading

Publications (1)

Publication Number Publication Date
CN109189450A true CN109189450A (en) 2019-01-11

Family

ID=64943061

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811242236.0A Pending CN109189450A (en) 2018-10-24 2018-10-24 A kind of method and device of server firmware upgrading

Country Status (1)

Country Link
CN (1) CN109189450A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110175040A (en) * 2019-05-13 2019-08-27 上海思立微电子科技有限公司 Data processing method, OTA client, electronic equipment and storage medium
CN112929871A (en) * 2019-12-05 2021-06-08 上海艾拉比智能科技有限公司 OTA upgrade package acquisition method, electronic device and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103546576A (en) * 2013-10-31 2014-01-29 中安消技术有限公司 Remote automatic updating method and system of embedded equipment
CN108491215A (en) * 2018-02-11 2018-09-04 苏州光之翼智能科技有限公司 A kind of unmanned plane firmware protection system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103546576A (en) * 2013-10-31 2014-01-29 中安消技术有限公司 Remote automatic updating method and system of embedded equipment
CN108491215A (en) * 2018-02-11 2018-09-04 苏州光之翼智能科技有限公司 A kind of unmanned plane firmware protection system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110175040A (en) * 2019-05-13 2019-08-27 上海思立微电子科技有限公司 Data processing method, OTA client, electronic equipment and storage medium
CN110175040B (en) * 2019-05-13 2023-07-18 上海思立微电子科技有限公司 Data processing method, OTA client, electronic device and storage medium
CN112929871A (en) * 2019-12-05 2021-06-08 上海艾拉比智能科技有限公司 OTA upgrade package acquisition method, electronic device and storage medium

Similar Documents

Publication Publication Date Title
US11989727B2 (en) Payment system
US20210124820A1 (en) Application program integrity verification method and network device
US9621549B2 (en) Integrated circuit for determining whether data stored in external nonvolative memory is valid
CN110798315B (en) Data processing method and device based on block chain and terminal
CN112187544B (en) Firmware upgrading method, device, computer equipment and storage medium
EP2879327A1 (en) Encryption and decryption processing method, apparatus and device
EP3005217B1 (en) Apparatus and method for provisioning an endorsement key certificate for a firmware trusted platform module
US20180204004A1 (en) Authentication method and apparatus for reinforced software
US20230325516A1 (en) Method for file encryption, terminal, electronic device and computer-readable storage medium
CN112612486B (en) Memory burning method and device and chip to be burned
CN109144552A (en) A kind of boot firmware method for refreshing and device
CN111385084A (en) Key management method and device for digital assets and computer readable storage medium
CN108170461B (en) Differential upgrade package generation method, differential upgrade method and device
CN109189450A (en) A kind of method and device of server firmware upgrading
CN109391689A (en) A kind of method and device that micro services application programming interface is called
CN108563927A (en) A kind of packaging ciphering method of host upgrading software
CN114189862A (en) Wireless terminal and interface access authentication method of wireless terminal in Uboot mode
CN110674511A (en) Offline data protection method and system based on elliptic curve encryption algorithm
CN108242997B (en) Method and apparatus for secure communication
CN107276961B (en) Method and device for encrypting and decrypting data based on cryptographic algorithm
CN114297673A (en) Password verification method, solid state disk and upper computer
CN114245374A (en) Security authentication method, system and related equipment
CN109408085A (en) Upgrade method, device, system and the storage medium of hardware wallet
KR101663700B1 (en) Banking system, integrity check method for firmware of a banking system
CN116628771A (en) Method, system, storage medium and terminal for safely starting chip

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190111