Summary of the invention
The technical problem to be solved in the present invention is that overcome in the prior art credible Starting mode need in computing platform
All starting information carry out whole measurements after, be just capable of determining whether starting computing platform, required measuring period is long, causes to calculate
Platform credible starting efficiency is low, and there are hidden danger for the safety of existing credible Starting mode, abnormal to outside invasion etc.
The problems such as defence capability of Starting mode is poor.
According in a first aspect, the embodiment of the invention provides a kind of creditable calculation modules, comprising: reset control unit, can
Believe storage unit, credible metric element, trusted recovery unit, wherein the reset control for resetting control unit and computing platform
Circuit connection processed controls the computing platform and enters reset state;The trusted storage unit stores the computing platform starting
Backup data information;The credible metric element is measured to what the computing platform started to metric, generation degree
Measure result;When the measurement results are credible, the credible metric element controls the credible starting of computing platform;When described
When measurement results are insincere, the trusted recovery unit by it is described replace with to metric it is right in the trusted storage unit
The backup data information answered.
With reference to first aspect, in the first embodiment of first aspect, it is described to metric include: bootstrap,
System kernel to be run and system and application program, the credible metric element include: the first metric module, described for calling
Bootstrap guides program measurement to the bootstrap, generates the first measurement results;Bootstrap starting module, when
When first measurement results are that measurement passes through, the bootstrap starting module is used to take to reset control unit transmission
Disappear reseting controling signal, controls the computing platform and loads and start the bootstrap;Second metric module, for calling
System kernel to be run is stated, system kernel measurement is carried out to the system kernel to be run, generates the second measurement results;In system
Core runs module, when second measurement results are that measurement passes through, system kernel operation module by control it is described based on
It calculates platform and runs the system kernel to be run;Third metric module, for calling the system and application program, to the system
System and application program carry out system and application program measurement, generate third measurement results;Credible starting module, when the third degree
When amount result is that measurement passes through, the credible starting module is for controlling the credible starting of the computing platform.
With reference to first aspect, in the second embodiment of first aspect, when the measurement results of first metric module
Obstructed out-of-date to measure, the bootstrap is replaced with the backup in the backup data information and drawn by the trusted recovery unit
Lead sequence;First metric module again measures the backup bootstrap, generates the first new measurement results.
With reference to first aspect, in the third embodiment of first aspect, second metric module includes: to be wait run
System kernel acquisition submodule, for calling the system kernel to be run;Time judging submodule, for judge to obtain it is described to
Whether the time of operating system kernel is in default measurement time threshold;Second measurement results generate submodule, when the time
When in the default measurement time threshold, second measurement results generate submodule and are used for the system kernel to be run
System kernel measurement is carried out, the second measurement results are generated.
With reference to first aspect, in the 4th embodiment of first aspect, second metric module further include: signal is removed
Pin module, when the time is not in the default measurement time threshold, the signal revocation submodule is for cancelling institute
It states bootstrap starting module and is sent to the reset control unit and cancel reseting controling signal, control the computing platform again
Into reset state.
With reference to first aspect, in the 5th embodiment of first aspect, the credible metric element further includes fourth
It measures module and signal cancels module, when second measurement results are that measurement is obstructed out-of-date, the trusted recovery unit is used for will
The system kernel to be run replaces with the standby system kernel in the backup data information;The fourth amount module is used for
System kernel measurement is carried out to the standby system kernel, generates fourth amount result;When the fourth amount result is measurement
By when, signal revocation module sends cancellation to the resets control unit for cancelling the bootstrap starting module
Reseting controling signal controls the computing platform and reenters reset state.
With reference to first aspect, in the sixth embodiment of first aspect, the creditable calculation modules further include: password is calculated
Method unit, the cryptographic algorithm unit call each password for providing a variety of cryptographic algorithms, for the creditable calculation modules
Algorithm executes Password Operations, alternatively, calling each cryptographic algorithm to hold by the creditable calculation modules for the computing platform
Row Password Operations.
With reference to first aspect, in the 7th embodiment of first aspect, the credible metric element further includes first opening
Dynamic to terminate module, when the fourth amount result is that measurement is obstructed out-of-date, the first start-stop module is described for controlling
Computing platform terminates to start, and generates and repair prompting message to personnel.
With reference to first aspect, in the 8th embodiment of first aspect, the credible metric element further includes second opening
Dynamic to terminate module, when the third measurement results are that measurement is obstructed out-of-date, the second start-stop module is described for controlling
Computing platform terminates to start, and generates and repair prompting message to personnel.
According to second aspect, the embodiment of the invention provides a kind of credible starting methods of creditable calculation modules, comprising: control
It makes the computing platform and is in reset state;The bootstrap for calling the computing platform guides the bootstrap
Program measurement, generates the first measurement results;When first measurement results are that measurement passes through, cancel the computing platform and be in
The control of reset state controls the computing platform and loads and start the bootstrap;Call the to be shipped of the computing platform
Row system kernel carries out system kernel measurement to the system kernel to be run, generates the second measurement results;When described second degree
When amount result is that measurement passes through, the computing platform runs the system kernel to be run;The system for calling the computing platform
And application program, system is carried out to the system and application program and application program is measured, generates third measurement results;When described
When third measurement results are that measurement passes through, the credible starting of the computing platform is controlled.
Technical solution of the present invention has the advantages that
Creditable calculation modules provided in an embodiment of the present invention, comprising: reset control unit, trusted storage unit, confidence level
Unit, trusted recovery unit are measured, which realizes by resetting control unit to computing platform reset state
It directly controls, and realizes the measurement to computing platform start-up course, ensured the secure and trusted starting of computing platform, this
Outside, also the measurement results of computing platform be it is insincere when, by trusted recovery unit to realize computing platform wait measure
Information carries out trusted recovery, improves the defence capability of entire computing platform, has ensured the clean boot of computing platform.
Embodiment 1
The embodiment of the invention provides a kind of creditable calculation modules, as shown in Figure 1, the creditable calculation modules include: to reset
Control unit 1, trusted storage unit 2, credible metric element 3, trusted recovery unit 4, wherein as shown in Fig. 2, above-mentioned reset control
Unit 1 processed is connect with the reset control circuit of computing platform 5, and control computing platform 5 enters reset state;Trusted storage unit 2
Store the backup data information that computing platform 5 starts;Credible metric element 3 is carried out to what computing platform 5 started to metric
Measurement generates measurement results;When measurement results are credible, credible metric element 3 controls the credible starting of computing platform 5;Degree of working as
When amount result is insincere, trusted recovery unit 4 will replace with corresponding Backup Data in trusted storage unit 2 to metric
Information.
By the cooperative cooperating of each part mentioned above, creditable calculation modules provided in an embodiment of the present invention are realized to calculating
Platform reset state directly controls, and realizes the measurement to computing platform start-up course, has ensured the peace of computing platform
Complete credible starting, in addition, also when the measurement results of computing platform are insincere, realize computing platform to metric into
Row trusted recovery improves the defence capability of entire computing platform, has ensured the clean boot of computing platform.
It is described further below in conjunction with creditable calculation modules of the specific example to the embodiment of the present invention.
Specifically, in practical applications, the cpu reset control circuit of above-mentioned reset control unit 1 and computing platform 5 connects
It connects, after computing platform 5 powers on, which controls the CPU and enter reset state, i.e., so that CPU pause is opened
It is dynamic.
Specifically, in practical applications, above-mentioned trusted storage unit 2, the Backup Data letter that storage computing platform 5 starts
Breath, which includes that computing platform 5 starts the data such as required backup bootstrap, standby system kernel, works as meter
Platform 5 is calculated to cause bootstrap by outside invading or when running system kernel transmission change or being replaced, can pass through
The backup data information stored in trusted storage unit 2 restores the related data in computing platform 5, and then ensures meter
Calculate 5 clean boot of platform.Trusted storage unit 2 can also be used in store computing platform 5 other kinds data information, such as using
Program information etc. can also be achieved the functions such as the importing, export, deletion of data.
Specifically, in practical applications, above-mentioned credible metric element 3 to computing platform 5 start to metric into
Row measurement, generates measurement results, which is the metric for treating metric and the standard of creditable calculation modules configuration
It is that value is compared as a result, the content measured needed for illustrating if consistent is credible, obtained measurement results are that measurement passes through, such as
The content measured needed for the inconsistent then explanation of fruit is insincere, and obtained measurement results are that measurement does not pass through.
In a preferred embodiment, it is above-mentioned to metric include: bootstrap, system kernel to be run and system and
Application program etc., as shown in figure 3, above-mentioned credible metric element 3 includes:
First metric module 31 guides program measurement to bootstrap, generates first degree for calling bootstrap
Measure result.Specifically, in practical applications, which can be stored in the storage chip of computing platform 5, and above-mentioned first
Metric module 31 and storage chip communicate to connect, and the bootstrap are called from storage chip, and lead to the bootstrap
Dynamic measurement, judges whether it is credible.
Bootstrap starting module 32, when the first measurement results are that measurement passes through, bootstrap starting module 32 is used for
Cancel reseting controling signal to resetting control unit 1 and sending, the load of control computing platform 5 and Bootloader.Specifically, when
When the measurement results of bootstrap are that measurement passes through, then illustrate that the bootstrap is believable bootstrap, at this point, above-mentioned draws
Lead sequence starting module 32 controls the CPU of above-mentioned computing platform 5 and above-mentioned storage chip communicates to connect, above-mentioned reset control unit
1 cancels and controlling the reset of CPU, allow CPU can safety load and start the bootstrap in storage chip.
Second metric module 33 treats operating system kernel and carries out system kernel degree for calling system kernel to be run
Amount generates the second measurement results.Specifically, in practical applications, being somebody's turn to do system kernel to be run can be with above-mentioned bootstrap
It is stored in same storage chip, can also be stored separately according to actual needs, to improve the flexibility of computing platform 5.
System kernel runs module 34, and when the second measurement results are that measurement passes through, system kernel operation module 34 is used for
Control computing platform 5 runs system kernel to be run.Specifically, when passing through wait run system kernel measurement, then explanation should be to
Operating system kernel be it is safe, can operate normally, the CPU of above-mentioned computing platform 5 can be safely operated this to operating system
Kernel continues start-up operation.
Third metric module 35 is used for calling system and application program, carries out system and application to system and application program
Program measurement, generates third measurement results.Specifically, to bootstrap and after running system kernel and carrying out credible measurement,
It also needs to carry out credible measurement to the system and application program before computing platform 5 starts, and then ensures entire start-up course institute
The data information needed is all safe and reliable.
Credible starting module 36, when third measurement results are that measurement passes through, credible starting module 36 is calculated for controlling
The credible starting of platform 5.Specifically, when system and application program measurement pass through, then illustrate that the entire starting of the computing platform 5 is quasi-
Standby process be it is believable, can be started, to ensure the starting safety of entire computing platform 5.
In a preferred embodiment, when the measurement results of the first metric module 31 are to measure obstructed out-of-date, trusted recovery list
Bootstrap is replaced with the backup bootstrap in backup data information by member 4.Specifically, when the first measurement results be can not
Letter, then illustrate above-mentioned bootstrap not and be the bootstrap that above-mentioned computing platform 5 is trusted, the bootstrap be likely to be broken or
It distorts, at this point, above-mentioned trusted recovery unit 4 restores the bootstrap of computing platform 5, it will be in trusted storage unit 2
The backup bootstrap prestored replaces above-mentioned incredible bootstrap, is restored to the booting operating system area of storage chip, from
And ensure that computing platform 5 can normally start, it avoids bootstrap caused by outside invading etc. abnormal and can not normally start, or
The problems such as causing the data information in computing platform 5 to be destroyed after abnormal starting.
First metric module 31 again measures backup bootstrap, generates the first new measurement results.In reality
In, after above-mentioned insincere bootstrap is substituted with backup bootstrap, in order to ensure backup bootstrap does not have yet
There is the problems such as by destroying, above-mentioned first metric module 31 needs to re-start backup bootstrap the confidence level of bootstrap
Amount, and the first new measurement results are generated, and then the safety of bootstrap needed for the system starting of guarantee computing platform 5.
In a preferred embodiment, as shown in figure 4, the second above-mentioned metric module 33 includes:
System kernel acquisition submodule 331 to be run, for calling system kernel to be run.Specifically, in practical application
In, after above-mentioned first metric module 31 carries out active measurement to above-mentioned bootstrap, if measurement results are bootstrap
Credible, then the CPU of above-mentioned computing platform 5 starts to start, and after actuation, above-mentioned bootstrap starting module 32 passes through operation guide
Measurement code in program carries out active measurement to the system kernel to be run in memory.
Time judging submodule 332, for judging the time for obtaining system kernel to be run whether in default measuring period
In threshold value.Specifically, in practical applications, the invader for illegally starting above-mentioned computing platform 5 is attempted, in order to can star the meter
Calculate platform 5, may by using the external Starting mode such as USB flash disk in computing platform 5, to start above-mentioned computing platform 5, and
The time that system kernel acquisition submodule 331 to be run obtains system kernel to be run from above-mentioned computing platform 5 will be much smaller than
The time of its system kernel to be run stored is obtained from external USB flash disk etc., therefore, in order to avoid the Starting mode such as USB flash disk are next different
Often start above-mentioned computing platform 5, calls system kernel to be run to be led in above-mentioned system kernel acquisition submodule 331 to be run
Before dynamic measurement, it is also necessary to which time judging submodule 332, which judges to call, is somebody's turn to do wait whether run the time required for system kernel pre-
If in measuring period threshold value.
Second measurement results generate submodule 333, and when the time is in default measurement time threshold, the second measurement results are raw
System kernel measurement is carried out for treating operating system kernel at submodule 333, generates the second measurement results.Specifically, when obtaining
Take the time wait run system kernel in default measure in time threshold, then it is computing platform that explanation, which is somebody's turn to do system kernel to be run,
5 inside system kernel to be run can carry out credible measurement to the system kernel to be run, can continue computing platform 5
Start-up course.
In a preferred embodiment, as shown in figure 4, the second above-mentioned metric module 33 further include: signal cancels submodule
334, when the time is not in default measurement time threshold, signal revocation submodule 334 is for cancelling bootstrap starting module
32 send cancellation reseting controling signal to control unit 1 is resetted, and control computing platform 5 reenters reset state.Specifically, when
Obtaining the time wait run system kernel is more than when presetting measurement time threshold, then explanation is somebody's turn to do system kernel to be run and is in exception
State is insincere system kernel to be run, and without carrying out credible measurement to it, above-mentioned signal revocation submodule 334 is straight
It connects revocation bootstrap starting module 32 and sends cancellation reseting controling signal to control unit 1 is resetted, and then reset control unit 1
The CPU for controlling above-mentioned computing platform 5 is in reset state, forbids its starting, to ensure the safety of computing platform 5.
In a preferred embodiment, as shown in figure 3, above-mentioned credible metric element 3 further includes fourth amount module 37, when
Second measurement results are that measurement is obstructed out-of-date, and trusted recovery unit 4 is for replacing with Backup Data letter for system kernel to be run
Standby system kernel in breath;Fourth amount module 37 is used to carry out system kernel measurement to standby system kernel, generates the 4th
Measurement results.
Specifically, when the second measurement results be it is insincere, then illustrate that above-mentioned system kernel to be run is not 5 institute of computing platform
The system kernel to be run trusted is somebody's turn to do system kernel to be run and is likely to be broken or distorts or replace, at this time trusted recovery unit 4
The standby system kernel prestored in trusted storage unit 2 is replaced into above-mentioned incredible system kernel to be run, thus on ensureing
Stating computing platform 5 can normally start, and avoid system kernel to be run caused by outside invading etc. abnormal and can not normally start,
Or the problems such as causing the data information in computing platform 5 to be destroyed after abnormal starting.In practical applications, to the extensive of system kernel
It can be realized again by above-mentioned trusted recovery unit 4 by recovery code in above-mentioned bootstrap, the reply program is by trusted storage
The standby system kernel stored in unit 2 replaces the kernel area that system kernel to be run is restored to computing platform 5.With backup
System kernel be substituted it is above-mentioned insincere after running system kernel, in order to ensure standby system kernel is not also destroyed
The problems such as, above-mentioned fourth amount module 37 needs to re-start standby system kernel the credible measurement of bootstrap, and raw
Fourth amount as a result, guarantee that computing platform 5 starts the safety of required system kernel to be run in turn.
In a preferred embodiment, as shown in figure 3, above-mentioned credible metric element 3 further includes signal revocation module 38, when
When fourth amount result is that measurement passes through, signal revocation module 38 is single to control is resetted for cancelling bootstrap starting module 32
Member 1, which is sent, cancels reseting controling signal, and control computing platform 5 reenters reset state.
In practical applications, when the measurement results of standby system kernel are that measurement passes through, then illustrate in the standby system
Core is not destroyed, but in order to ensure the safety of entire computing platform 5, needs to restart computing platform 5, it is therefore desirable on
The CPU that the reset control unit 1 stated controls computing platform 5 reenters reset state so that above-mentioned computing platform 5 again into
Row start-up operation, the bootstrap to computing platform 5 and system kernel to be run carry out credible measurement again, to ensure whole
A 5 clean boot of computing platform.
In a preferred embodiment, as shown in Fig. 2, above-mentioned creditable calculation modules further include: cryptographic algorithm unit 6, institute
Cryptographic algorithm unit 6 is stated for providing a variety of cryptographic algorithms, calls various cryptographic algorithms to execute password behaviour for creditable calculation modules
Make, alternatively, calling various cryptographic algorithms to execute Password Operations by the creditable calculation modules for computing platform 5.
Specifically, in practical applications, above-mentioned creditable calculation modules and computing platform 5 both can be directly from cryptographic algorithms
It calls the cryptographic algorithm supported in cryptographic algorithm unit 6 to execute corresponding Password Operations in unit 6, can also be calculated by password
Method unit 6 calls the cryptographic algorithm in the outer cipher algorithm platform 7 connecting with cryptographic algorithm unit, above-mentioned cryptographic algorithm unit
6 and outer cipher algorithm platform 7 in the cryptographic algorithm type that is stored can be modified or replace according to actual needs.
In a preferred embodiment, as shown in figure 3, above-mentioned credible metric element 3 further includes the first start-stop module
39, when fourth amount result is that measurement is obstructed out-of-date, the first start-stop module 39 terminates starting for controlling computing platform 5,
And it generates and repairs prompting message to personnel.
Specifically, in practical applications, when the measurement results of standby system kernel are obstructed out-of-date, then illustrate the standby system
Kernel is also insincere, which may be destroyed or be distorted.At this point, the peace in order to guarantee computing platform 5
Entirely, the first above-mentioned start-stop module 39 stops the start-up course of the computing platform 5, it is made to terminate to start, and generates to personnel
Prompting message is repaired, and the reparation prompting message can be sent to system maintenance personnel, maintenance personnel is reminded to check as early as possible simultaneously
Repair the computing platform 5.
In a preferred embodiment, as shown in figure 3, above-mentioned credible metric element 3 further includes the second start-stop module
310, when third measurement results are that measurement is obstructed out-of-date, the second start-stop module terminates starting for controlling computing platform 5, and
It generates and repairs prompting message to personnel.
Specifically, in practical applications, when the measurement results of system and application program are obstructed out-of-date, then illustrate the system and
Application program is insincere, may be destroyed or be distorted.At this point, the safety in order to guarantee computing platform 5, above-mentioned
Two start-stop modules 310 stop the start-up course of the computing platform 5, it is made to terminate to start, and generate to repair to personnel and remind letter
Breath, and the reparation prompting message can be sent to system maintenance personnel, remind maintenance personnel to check as early as possible and repair the calculating
Platform 5.
By the cooperative cooperating of above-mentioned each component part, creditable calculation modules provided in an embodiment of the present invention are realized
Directly to the control of the reset state of computing platform, and it is this measure step by step by way of, metrics process accelerate, and
Computing platform occur external equipment invasion starting etc. start extremely when can quickly complete detection, and at once stop start, thus
The defence capability for improving entire computing platform has ensured the clean boot of computing platform.In addition, in the guidance journey of computing platform
Sequence or when running system kernel by destroying also achieves the replacement of the backup to bootstrap and system kernel to be run, from
And computing platform is realized to the trusted recovery function of partially starting extremely, reduce the workload of maintenance personal, improves meter
Calculate the defence capability of platform.
Embodiment 2
The present invention applies example and provides a kind of credible starting method of creditable calculation modules, as shown in figure 5, the creditable calculation modules
Credible starting method include:
Step S1: control computing platform is in reset state.Specifically, in practical applications, before executing the step
It needs to carry out power on operation to computing platform, is turned on power supply.
Step S2: calling the bootstrap of computing platform, guides program measurement to bootstrap, generates the first measurement
As a result.Specifically, in practical applications, which can be stored in the storage chip of computing platform.
Step S3: when the first measurement results are that measurement passes through, cancel the control that computing platform is in reset state, control
Computing platform load and Bootloader.Specifically, when the measurement results of bootstrap are that measurement passes through, then illustrate that this draws
Lead sequence is believable bootstrap, the CPU of computing platform can safety load and start the bootstrap.
Step S4: calling the system kernel to be run of computing platform, treats operating system kernel and carries out system kernel measurement,
Generate the second measurement results.Specifically, in practical applications, being somebody's turn to do system kernel to be run can store with above-mentioned bootstrap
It in same storage chip, can also be stored separately according to actual needs, to improve the flexibility of operating system.
Step S5: when the second measurement results are that measurement passes through, computing platform runs system kernel to be run.Specifically,
When wait run system kernel measurement pass through when, then illustrate the system kernel to be run be it is safe, can operate normally.
Step S6: calling the system and application program of computing platform, carries out system to system and application program and applies journey
Sequence measurement, generates third measurement results.Specifically, to bootstrap and after running system kernel and carrying out credible measurement,
It also needs to carry out credible measurement to the system and application program before computing platform starting, and then ensures needed for entire start-up course
Data information is all safe and reliable.
Step S7: when third measurement results are that measurement passes through, the credible starting of computing platform is controlled.Specifically, work as system
And application program measurement is when passing through, then illustrate the computing platform entire starting preparation process be it is believable, can be started,
To ensure the starting safety of entire computing platform.
By executing above-mentioned steps S1 to step S7, the credible starting side of creditable calculation modules provided in an embodiment of the present invention
Method, realizes the control of the reset state directly to the CPU of computing platform, and it is this measure step by step by way of, measurement
Process is accelerated, and occurs that detection can be quickly completed when external equipment invasion starting etc. starts extremely in computing platform, exists side by side
It carves and stops starting, to improve the defence capability of entire computing platform, ensured the clean boot of computing platform.
Obviously, the above embodiments are merely examples for clarifying the description, and does not limit the embodiments.It is right
For those of ordinary skill in the art, can also make on the basis of the above description it is other it is various forms of variation or
It changes.There is no necessity and possibility to exhaust all the enbodiments.And it is extended from this it is obvious variation or
It changes still within the protection scope of the invention.