CN-121979499-A - Script encoding method, script execution method, and program for secret evaluation score
Abstract
The invention discloses a script coding method and a script execution method aiming at secret evaluation score, wherein the coding method is characterized in that 3 script instructions are defined, wherein an assignment instruction for judging a result of an evaluation object is input in an instruction 1, an assignment instruction for unit score is input in an instruction 2, and an output instruction is input in an instruction 3. The corresponding script decoding method is characterized by comprising a memory for caching unit scores, wherein an access address is specified by an instruction 1 and an instruction 2, the score cached by the memory is assigned by the output of the instruction 1 or the instruction 2, and the score cached by the memory is input as an instruction 3. Also disclosed are a program and a storage medium. The invention has the main technical effects of realizing secret evaluation of standard definition, recalculating function and real-time programming execution effect.
Inventors
- Ma Zhensong
- MA XIAOYU
Assignees
- 北京红树蓝树技术有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20250916
Claims (9)
- 1. Aiming at the script coding method of the secret evaluation score, the core of the coding method is a definition instruction; the method is characterized by defining three script instructions: Instruction 1, inputting an assignment instruction for judging the result of the evaluation object, Instruction form { instruction code 1, address X, some object discrimination result } An instruction function of calculating a number average value of a plurality of object discrimination results, the number average value being assigned to a memory cell designated by an address X, Wherein, the address X is a layer address and a layer unit address; instruction 2. Input assignment instruction for unit score, Instruction morphology { instruction code 2, address Y, some unit scores } Instruction function-a certain unit score is assigned to the memory unit specified by address Y, Wherein, the address Y is a layer address and a unit address of the layer; Command 3 output instruction Instruction morphology { instruction code 3} The instruction function is to output unit score, layer score and secret rating total score, The level score and the secret rating total score are calculated by the unit score, the unit score is assigned by an instruction 1 and/or an instruction 2, and a calculation rule refers to a commercial password application security evaluation quantitative evaluation rule.
- 2. The script encoding method of claim 1, wherein, The instruction 1 is also compatible with a max (PA, pB 0.5) syntax, thereby realizing compensation of quantized evaluation of the commercial password application security evaluation report.
- 3. The script encoding method of claim 2, wherein, The outputting of the instruction 3 further includes outputting statistical information of each unit, wherein the statistical object is, { Fit, partial fit, not fit }.
- 4. A script execution method, wherein an input script is defined in accordance with the script encoding method of any one of claims 1 to 3, executed in accordance with command line interpretation, It is characterized in that the method comprises the steps of, A memory for caching the unit score, wherein the access addresses of the memory are the address X and the address Y; Parsing and executing the script: executing the function of the instruction 1, and caching the result to a memory subunit appointed by the address X; executing the function of the instruction 2, and caching the result to a memory subunit designated by an address Y; conforming to the instruction 3 definition, executing the instruction 3 function, wherein the unit score is stored by the memory.
- 5. The script execution method of claim 4, wherein, The processing object also includes, per unit, statistics, where the statistics object is { fit, partial fit, no fit }, Assignment of the statistics table is completed by the instruction 1; the output of the statistics table is done by the instruction 3.
- 6. A secret evaluation score program comprises 3 secret evaluation score-related calculation modules, Inputting DAK discrimination result, outputting as calculation module of unit score, marking as F1, The input unit score, the output is the calculation module of the layer score, which is marked as F2, The input layer score, output as the calculation module of the total score, marked as F3, Characterized in that the program input is script text, wherein the script is defined by the script encoding method of any one of claims 1 to 3; the access addresses of the memory are an address X and an address Y; When the program is executed, the following operations are executed row by row, Calling an F1 module to realize the function of the instruction 1, and caching the result to a memory unit appointed by an address X; the definition of the instruction 2 is met, the function of the instruction 2 is realized, and the result is cached to a memory unit appointed by an address Y; the definition of the instruction 3 is met, the F2 module and the F3 module are called to realize the function of the instruction 3, wherein the unit score is from a storage unit of the memory.
- 7. The secret evaluation routine of claim 6, wherein, The script editing system comprises a text editing window for inputting, displaying and editing the script in real time; comprises an output display window, wherein the displayed content is generated by an instruction 3; the triggering of the real-time processing module is by clicking a button and/or the text editing window content is modified.
- 8. An information storage medium readable by a public reading or by a computer device, characterized in that the content to be read is a script and/or a result of execution of said script, wherein the script is defined by the script encoding method of any one of claims 1 to 3.
- 9. A computer readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the secret scoring function of claims 6 to 7.
Description
Script encoding method, script execution method, and program for secret evaluation score The invention relates to the field of computer science, in particular to a script coding method, a script executing method, a program and a storage medium aiming at commercial cryptosystem evaluation scores. The background technology is as follows: 1. The basis of evaluation scores (abbreviated as secret scores) of the commercial password application system is "commercial password application security evaluation quantitative evaluation rule (2023 edition)" (abbreviated as quantitative evaluation rule) ", and" commercial password application security evaluation report (2023 edition) "(abbreviated as evaluation report)". 2. The main calculation rules of the quantitative evaluation rule are an arithmetic average calculation rule of DAK decision results of an object and/or object scores to unit scores and a twice weighted average calculation rule from unit scores to total scores. In summary, the score rules of the evaluation report are defined by the quantitative evaluation rules. 3. The content of the evaluation report relates to secret evaluation score is that the content of the secret evaluation score is respectively 8 original result record tables of annex A, the whole evaluation result and quantitative evaluation in section 5.2, wherein the whole evaluation result in the table 5-2 is subdivided into a condition, a unit score, a layer score and a comprehensive score (total score), and the correction of the evaluation result in section 5.1 is required to meet a MAX (0.5 xPA, PB) calculation rule according to conditions. 4. Scripting languages are well-established technology in the computer arts, with batch and command line technologies coming at the earliest from operating systems, deriving many entities for scientific computing and computer control. The power shell and cmd of shell, windows systems of Unix systems, matlab and python for scientific computing, basic language with emphasis on control, and so on. The foremost content of the scripting language is instruction definition, mainly involving fields for coding and decoding, definition functions, definition inputs and or outputs. The technical advantages of using script programming are 1) row by row interpretation and execution, 2) the advantages of script language over executable programs are that explicit recordings of the encoder's intent can be edited and run in real time. Disclosure of Invention The instruction reading guidance states that all the prefixes with the four-star prefix are the highest-level summary, mainly summarize the technical problems of the invention, the technical effects of the invention are four-star 1, the inventive concept of the invention is four-star 3, and the like, and the prefixes and the serial numbers guide the inventive content of the invention. The inventors found that, when studying the "table 5-2 overall evaluation results", the secret evaluation score was decomposed into the following 4 stages, the evaluation results T i,j,k - > (stage 1) - >, unit scores Si, j- > (stage 2) - >, 8-layer scores Si- > (stage 3) - >) security layer and management layer scores S 1-4 and S 5-8 - > (stage 4) - >, secret evaluation total score S, and a good calculation and distribution program should be realized for calculation of the total calculation and result review of any combination of the 4 stages from the unit to the total calculation and the 4 stages. And (1) rechecking the calculation points of the 4 stages or any part of stages. 2. Theoretically, the correction of the evaluation result of section 5.1 should be supported. The inventor researches and discovers that the technical means of setting certain units as inapplicable can equivalently realize the functions of the stage 3 and the stage 4, that is, smartly agreeing that certain units are inapplicable, the technical problems of fraction review of the stage 3 and the stage 4 can be totally unified, and the technical problems of review of the total score of the stage 2- >. In order to support the input of a specified evaluation object and/or the input of a specified unit score, the inventor inspired by a background-scripting language to design 2 input instructions and 1 output instruction. In short, the 1 st input instruction solves the merging of the evaluation object score Tijk to the unit score Sijk, the 2 nd input instruction realizes the unit score copy to the unit score buffer, and the 3 rd instruction realizes the calculation and output of the content of the unit buffer to the secret rating total score. Aiming at the script coding method of the secret evaluation score, the core of the coding method is defined instructions, the invention points are defined as follows 3 script instructions, and at least the technical problem of the invention is four-star 1. Instruction 1, inputting an assignment instruction for judging the result of the evaluation object, Instruction form is { instru