CN103441895B - A kind of automatization cipher machine test system and its method of work - Google Patents

A kind of automatization cipher machine test system and its method of work Download PDF

Info

Publication number
CN103441895B
CN103441895B CN201310368525.6A CN201310368525A CN103441895B CN 103441895 B CN103441895 B CN 103441895B CN 201310368525 A CN201310368525 A CN 201310368525A CN 103441895 B CN103441895 B CN 103441895B
Authority
CN
China
Prior art keywords
test
cipher machine
machine
cipher
template
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.)
Active
Application number
CN201310368525.6A
Other languages
Chinese (zh)
Other versions
CN103441895A (en
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.)
China Electronics Technology Network Security Technology Co ltd
Original Assignee
Chengdu Westone Information Industry Inc
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 Chengdu Westone Information Industry Inc filed Critical Chengdu Westone Information Industry Inc
Priority to CN201310368525.6A priority Critical patent/CN103441895B/en
Publication of CN103441895A publication Critical patent/CN103441895A/en
Application granted granted Critical
Publication of CN103441895B publication Critical patent/CN103441895B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a kind of automatization cipher machine test system and its method of work.Described system includes cipher machine, test machine.Described test machine is provided with test maintaining instrument, template base, knowledge base, firmware library.Firmware library is provided with cipher machine.The individual instructions method of testing of this system is:Test machine template base setup test template, imports test maintaining instrument, and test maintaining instrument generates request data and is sent to cipher machine;Cipher machine returns response data.Batch instruction testing method is:Import the test file of knowledge base or load test file to test maintaining instrument;Test maintaining instrument sends test file to cipher machine;Cipher machine returns response data;Response data and historical data are contrasted, and judge whether test result is correct;Repeat above step, carry out batch testing.Present invention achieves cipher machine automatic test and maintenance management, and reduce cipher machine production, the difficulty of test maintaining, cost and technical requirements.

Description

A kind of automatization cipher machine test system and its method of work
Technical field
The invention belongs to information security art of cryptography, more particularly, to a kind of automatization's cipher machine test system and its work Make method.
Background technology
Cryptographic technique is the basic technology of information security, and cipher machine is the basis of cryptographic technique safety applications and information-based peace Full core.High speed with China's informationization industry is all-round developing, as the encryption device of information security basal core, one While directly providing safe cryptographic technique for information industry with Developing Track for Modern Service Industry, also face increasingly stricter automatization Test and the management safeguarded require.
Traditional cipher machine test and maintaining method all using single test maintaining instrument cipher machine is carried out test and Maintenance management it is impossible to carry out test that is lasting, repeating and maintenance management to cipher machine;Test data and test maintaining instrument do not have It is kept completely separate, when leading to the test case new to any one to be tested, be required for test maintaining instrument is modified, wave Expense human resourcess are it is impossible to meet the increasingly stricter automatic test of current password machine and maintenance management requires.
Meanwhile, it is impossible to intelligent maintenance is carried out to the historical data of test during cipher machine test and maintenance management, need Want artificial intervention excessively complicated, lead to cipher machine can not be normally carried out testing and safeguard, increased cipher machine test and tie up The management difficulty of shield and cost.
In sum, existing password machine test relative with maintenance management mode single, be difficult extension, be unfavorable for automatization, Intelligent test and the management safeguarded require.
Content of the invention
In order to solve problem present in above-mentioned cipher machine test and maintenance process, improve cipher machine test and maintenance process Automatization, the present invention proposes a kind of automatization cipher machine test system and its method of work.
A kind of automatization cipher machine test system, including cipher machine and the test machine communicating with connection, described test machine Upper operation has test maintaining instrument, and test machine is provided with template library module, base module, available firmware library module, described Three modules and test maintaining instrument communications;It is provided with cipher machine and using firmware library module;
Described template base is used for managing test template, and described test template defines service order form and the correspondence of cipher machine The test data of template;
Described knowledge base is responsible for the management of test data, and every knowledge corresponds to a test item to cipher machine;
Described firmware library is to carry out compiling after abstract definition according to different user versions to customer service instruction Dynamic link library.
The individual instructions method of testing of automatization as above cipher machine test system comprises the steps of:
Step 1:Test machine and tested cipher machine start, and communicate to connect;
Step 2:Test machine template base setup test template;
Step 3:Test template imports test maintaining instrument;
Step 4:Test maintaining instrument generates request data according to the test template importing, and is sent to cipher machine;
Step 5, tested cipher machine returns response data, test maintaining tool display test result;
After step 5, test document, specially step 6 can be generated:Test maintaining instrument is according to request data and sound Answer data genaration test file, be stored in knowledge base.
The batch instruction testing method of automatization as above cipher machine test system comprises the steps of:
Step 1. imports the test file of knowledge base or loads test file to test maintaining instrument;
Step 2. test maintaining instrument sends test file to tested cipher machine;
The tested cipher machine of step 3. returns response data;
Response data and historical data are contrasted by step 4. test maintaining instrument, judge whether test result is correct;
Step 5. repeat step 1-4, carries out batch testing to tested cipher machine function and performance.
The present invention not only can carry out automatic test and maintenance management to cipher machine in actual production maintenance process, and Reduce cipher machine production, the difficulty of test maintaining, cost and technical requirements it is easy to cipher machine automatic test safeguard extension And configuration, improve cipher machine automatic test and the efficiency of management safeguarded.
Brief description
Fig. 1 is cipher machine test system schematic diagram in prior art.
Fig. 2 is cipher machine test system schematic diagram of the present invention.
Specific embodiment
Traditional cipher machine test system as shown in figure 1, comprising cipher machine and test machine, described test machine(Generally electricity Brain)Upper operation has test maintaining instrument.Described test machine passes through TCP/IP network and cipher machine communication, sends out test to cipher machine and refers to Order, cipher machine is according to test instruction(Identical with production ordering)Complete function, platform and performance test, and test result is returned To test maintaining instrument, test maintaining instrument shows test result.This mode adopts single test maintaining instrument to password Machine carries out testing and maintenance management it is impossible to carry out test that is lasting, repeating and intelligent maintenance management to cipher machine;Test data and Test maintaining instrument is not properly separated, and when leading to the test case new to any one to be tested, is required for test dimension Nurse's tool is modified, and waste of manpower resource is it is impossible to meeting the increasingly stricter automatic test of current password machine and safeguarding pipe Reason requires.
Automatization of the present invention cipher machine test system is as shown in Fig. 2 comprise cipher machine and test machine.Both can adopt Serial ports and/or TCP/IP network two ways connect.Generally adopt TCP/IP interfaces, the main mesh of setting serial ports Be for test network connectivity, network is unavailable or uses during test network.
Running on described test machine has the program of test maintaining instrument.Compare with conventional art, the present invention is in test maintaining Introduce concept and the mechanism of template base, knowledge base and firmware library in instrument, be also configured with firmware library in cipher machine, facilitate engineering Technical staff carries out automatic test and maintenance to cipher machine, improves cipher machine automatic test and the efficiency of management safeguarded. It is specifically described below.
Template base is responsible for the management of template, the service order form of template definition cipher machine and corresponding template(User's industry Business instruction)Test data, test maintaining instrument is according to template for displaying test data configuration interface.Test template document form is XSD.
Knowledge base is responsible for the management of test data, and every knowledge corresponds to a test item to cipher machine;Knowledge is by surveying Examination data is constituted, that is, the detailed description tested(For example:Test purpose, measuring technology principle, test request and test condition etc.).
Firmware library is used for carrying out abstract definition to service order, and is compiled as single dynamic base chained library.Firmware exists Different storage forms, can be saved in cipher machine, also can be saved in production maintenance instrument, in different storage location institutes Role is different.Each template is corresponding with a service order, and each template can include multiple test datas, tests number According to including being sent to the request bag of cipher machine and the response bag of cipher machine return, test maintaining instrument compares history response message (In test data)With the response message of current test, thus judging whether current business instruction testing correct.
Test maintaining instrument in the present invention has two big management functions to cipher machine:One is firmware management, that is, be responsible for close The functional configuration of ink recorder, including function upgrading, management of feature release etc.;Another part is automatic test management, and test is close The integrity of ink recorder.By the functional configuration of cipher machine and test integrate it is ensured that the cipher machine version producing just Really property.
Further, the principle of described firmware management realization is:It is saved in cipher machine and use firmware library, production maintenance instrument Middle preservation can use firmware library;By test maintaining instrument, engineers and technicians can be with the firmware in substitution ciphers machine(To can use solid Certain firmware in part storehouse is transferred in cipher machine, replace currently firmware), thus realizing the function upgrading of cipher machine; And when can also realize producing, different versions are produced according to user's request.
In password generator terminal, cipher machine needs to distinguish mode of operation and test pattern, it is to avoid maintenance process is destroyed user and produced Data in environment.
Below the working method of system of the present invention is illustrated:
The system enables individual instructions test and test file generation, the batch instruction testing of cipher machine, below to it The each critical process of implementation describe in detail.
1. individual instructions test and test file generate, and mainly comprise the steps of:
Step 1. test machine template base setup test template.
More specifically, test machine template base, according to the difference of tested cipher machine, prepares corresponding test template, described survey The information such as user type, cipher machine version, testDate, function description, command type are comprised in die trial plate.
Step 2. test template imports test maintaining instrument;
The test template form importing test maintaining instrument is xsd.
Step 3. test maintaining instrument generates request data according to the test template importing;
Request data is sent tested cipher machine by step 4. test maintaining instrument;
The tested cipher machine of step 5. returns response data;
Step 6. test maintaining tool display test result;
Step 7. generates test file according to request data and response data.
Further, described test file form is XML, and is saved in knowledge base, in knowledge base, each test literary composition Part corresponds to a knowledge, also a test item of as cipher machine.
It is exactly more than the step that individual instructions test and test file generate.
2. batch instruction testing
Test file in step 1. importing knowledge base is to test maintaining instrument;
Specifically, described test file can be the test file producing after above-mentioned individual instructions test, or other External load test file, described test file is XML format.
Step 2. test maintaining instrument sends test file to tested cipher machine;
The tested cipher machine of step 3. returns response data;
Response data and historical data are contrasted by step 4. test maintaining instrument, judge whether test result is correct;
Step 5. test maintaining instrument printout test report;
Step 6. step repeats 1-6, repeats the test file using generation(Benchmark data)To tested cipher machine work( Batch testing can be carried out with performance.
The invention has the advantages that:
1. can be according to the feature of different user service order, according to service order form and the corresponding template of cipher machine (Customer service instructs)Test data can flexibly create all kinds of applicable test templates;
2. can be according to test application requirement, according to test purpose, measuring technology principle, test request and test condition spirit Live and create the knowledge being suitable for, knowledge is indicated using the XML text mode that can read;
3. abstract definition can be carried out to customer service instruction according to different user versions, be compiled as single dynamic base Chained library simultaneously forms the firmware of different user version;
4., according to templating, more educated and firmwaring way to manage, can facilitate to template base, knowledge base and firmware library It is managed collectively and is safeguarded, realized automatic test and the maintenance of cipher machine;
5. reduce cipher machine test and the complexity safeguarded, facilitate test maintaining personnel to carry out automatization's survey to cipher machine Examination and maintenance, improve cipher machine automatic test and the efficiency of management safeguarded;
6. this technology has overturned traditional, single cipher machine test and maintenance mode, using exhaustive testing mode to password Machine carries out continuing, repeats, continual test and maintenance management, reduce cipher machine automatically test and the management difficulty safeguarded and Cost.
In a word, the present invention can carry out automatic test and maintenance management to cipher machine in actual production maintenance process, and And reduce cipher machine production, the difficulty of test maintaining, cost and technical requirements it is easy to cipher machine automatic test safeguard expansion Exhibition and configuration, improve cipher machine automatic test and the efficiency of management safeguarded.

Claims (10)

1. a kind of automatization cipher machine test system, including cipher machine and the test machine communicating with connection, on described test machine Operation has test maintaining instrument it is characterised in that being provided with template library module, base module, available firmware library on test machine Module, described three modules and test maintaining instrument communications;It is provided with cipher machine and using firmware library module;
Described template base is used for managing test template, and described test template defines service order form and the corresponding templates of cipher machine Test data;
Described knowledge base is responsible for the management of test data, and every knowledge corresponds to a test item of cipher machine;
Described firmware library be according to different user versions customer service instruction is carried out compiling after abstract definition dynamic Chained library.
2. as claimed in claim 1 a kind of automatization cipher machine test system it is characterised in that cipher machine and test maintaining work Tool is connected by network and/or serial ports.
3. as claimed in claim 1 a kind of automatization cipher machine test system it is characterised in that test template in template base File format is XSD.
4. as claimed in claim 1 a kind of automatization cipher machine test system it is characterised in that every knowledge in knowledge base Form is XML.
5. as claimed in claim 1 a kind of automatization cipher machine test system it is characterised in that described test data include survey Examination maintenance tool is sent to the reply data that the request data of cipher machine and cipher machine return.
6. a kind of automatization cipher machine test system as any one of claim 1 ~ 5 is it is characterised in that described can use Arbitrary firmware in firmware library for transmission to cipher machine and can be deployed in cipher machine with firmware library.
7. the method for work of a kind of automatization cipher machine test system as any one of claim 1 ~ 6, its feature exists In individual instructions method of testing comprises the steps of:
Step 1:Test machine and tested cipher machine start, and communicate to connect;
Step 2:Test machine template base setup test template;
Step 3:Test template imports test maintaining instrument;
Step 4:Test maintaining instrument generates request data according to the test template importing, and is sent to cipher machine;
Step 5, tested cipher machine returns response data, test maintaining tool display test result.
8. as claimed in claim 7 a kind of method of work of automatization cipher machine test system it is characterised in that in step 5 Afterwards, test document, specially step 6 can be generated:Test maintaining instrument generates test according to request data and response data File, is stored in knowledge base.
9. a kind of method of work of a kind of automatization cipher machine test system as any one of claim 1 ~ 6, its feature It is, its batch instruction testing method comprises the steps of:
Step 1. imports the test file of knowledge base to test maintaining instrument;
Step 2. test maintaining instrument sends test file to tested cipher machine;
The tested cipher machine of step 3. returns response data;
Response data and historical data are contrasted by step 4. test maintaining instrument, judge whether test result is correct;
Step 5. repeat step 1-4, carries out batch testing to tested cipher machine function and performance.
10. a kind of a kind of method of work of automatization as claimed in claim 9 cipher machine test system is it is characterised in that walk Between rapid 4 and step 5, also comprise step 4.1:Test maintaining instrument printout test report.
CN201310368525.6A 2013-08-22 2013-08-22 A kind of automatization cipher machine test system and its method of work Active CN103441895B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310368525.6A CN103441895B (en) 2013-08-22 2013-08-22 A kind of automatization cipher machine test system and its method of work

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310368525.6A CN103441895B (en) 2013-08-22 2013-08-22 A kind of automatization cipher machine test system and its method of work

Publications (2)

Publication Number Publication Date
CN103441895A CN103441895A (en) 2013-12-11
CN103441895B true CN103441895B (en) 2017-03-01

Family

ID=49695563

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310368525.6A Active CN103441895B (en) 2013-08-22 2013-08-22 A kind of automatization cipher machine test system and its method of work

Country Status (1)

Country Link
CN (1) CN103441895B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105912433B (en) * 2016-04-08 2019-07-05 中国科学院数据与通信保护研究教育中心 A kind of adaptive encryption device detection method and system
CN108111368B (en) * 2017-12-19 2021-01-26 中国银联股份有限公司 Function test method and device of transaction system
CN110011794B (en) * 2019-04-11 2021-08-13 北京智芯微电子科技有限公司 Cipher machine key attribute testing method
CN110187202B (en) * 2019-05-05 2022-09-02 珠海格力电器股份有限公司 Method, device and system for testing power-on password of electrical equipment
CN111049655B (en) * 2019-11-15 2022-06-07 深圳市东进技术股份有限公司 Method and system for remotely and online authorizing and maintaining cipher machine

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103136101A (en) * 2012-12-31 2013-06-05 博彦科技(上海)有限公司 Software automated testing unified operation platform

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2933539B1 (en) * 2008-07-07 2011-02-25 Cooltech Applications METHOD AND DEVICE FOR THERMALLY REGULATING A RECHARGEABLE BATTERY FOR STORING ELECTRIC ENERGY

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103136101A (en) * 2012-12-31 2013-06-05 博彦科技(上海)有限公司 Software automated testing unified operation platform

Also Published As

Publication number Publication date
CN103441895A (en) 2013-12-11

Similar Documents

Publication Publication Date Title
CN103441895B (en) A kind of automatization cipher machine test system and its method of work
CN112270550B (en) New energy power tracing method and system based on blockchain
CN106815681B (en) Transformer substation secondary equipment closed-loop management platform based on two-dimensional code and management system thereof
CN102750301B (en) Blueprint generating method for integrated avionic system model aiming at architecture analysis and design language (AADL) description
CN102760059B (en) Automatic generating method for standardized test scripts of relay protection device of electrical system
CN104133443A (en) Method for automatically generating power grid dispatching operation order through power grid overhaul application forms
CN104601403A (en) Automatic test system
CN103955789A (en) Power supply path analyzing method based on integrated model for allocation
CN104036365A (en) Method for constructing enterprise-level data service platform
CN104483842A (en) Regulation and control integrated automatic master station comparison method
CN105515189A (en) Integrated intelligent gateway machine configuration method based on unified modeling of transformer station
CN105447611A (en) OMS equipment transaction management and control information system supported by GID platform
CN105162251B (en) A kind of protective device modeling method suitable for protection information system applied analysis function
CN107147688A (en) A kind of system configuration utility and the two-way check interactive approach of model cloud system and system
KR101397380B1 (en) System for integrating meta-modeling
CN102495841A (en) Power supply system monitoring method and related device thereof
CN106096860A (en) A kind of intelligent risk management and control platform
CN103905270A (en) Smart grid android system safety base line automatic checking system and method
CN101853438A (en) Management system for product test information of electric energy meter
CN105929277A (en) Method and system for standardizing automatic testing schemes of replay protection device
CN105225042A (en) The live detection data management system of a kind of sing on web and database
CN107066500A (en) A kind of electrical network mass data quality indicator method based on PMS models
CN102142108A (en) Information processing method of corresponding relationship among materials and equipment suitable for power system
CN104320442B (en) Application system presentation layer integrated technology plateform system and method
CN107783760B (en) Visual development method for protection device based on functional component

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: No. 333, Yunhua Road, Chengdu hi tech Zone, China (Sichuan) pilot Free Trade Zone, Chengdu, Sichuan 610041

Patentee after: China Electronics Technology Network Security Technology Co.,Ltd.

Address before: No. 333, Yunhua Road, high tech Zone, Chengdu, Sichuan 610041

Patentee before: CHENGDU WESTONE INFORMATION INDUSTRY Inc.