A circuit design scheme secure storage method

By analyzing the word segmentation characteristics in the paragraphs of the circuit design scheme, calculating the consistency evaluation value and clustering, and encrypting storage with different keys, the security problem caused by sharing keys for similar circuit design schemes in the AES algorithm is solved, and the circuit design scheme is improved Overall encryption security.

CN118504473BActive Publication Date: 2024-12-17SHENZHEN XING JUAN OPTOELECTRONICS TECH LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410664722.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-27
Publication Date
2024-12-17
Estimated Expiration
2044-05-27

AI Technical Summary

Technical Problem

When traditional AES algorithm encrypts and stores circuit design schemes, circuit design schemes with higher similarity use the same key, resulting in that once one circuit design scheme is cracked, other similar design schemes are easily identified and cracked, which reduces the Overall encryption security.

Method used

By analyzing the part-of-speech similarity, number proportion difference and inverse document frequency differences in the paragraphs of each two circuit design scheme, the description consistency is calculated, the consistency evaluation value of the circuit design scheme is determined, and clustered into the same cluster , the AES method is used to encrypt and store each set of circuit design schemes using different keys.

Benefits of technology

Improve the encryption and storage security of circuit design solutions to prevent security threats caused by key leakage in similar design solutions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118504473B_ABST
    Figure CN118504473B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of circuit design scheme encryption, and in particular to a method for securely storing circuit design schemes. The method comprises: obtaining all circuit design schemes to be stored; obtaining the description consistency of each paragraph corresponding to each two circuit design schemes according to the similarity of the part of speech of each identical word in each paragraph corresponding to each two circuit design schemes, the difference in the proportion of the number, the number of word segments and the difference in the inverse document frequency corresponding to each identical word segment; determining the consistency evaluation value of each two circuit design schemes based on the description consistency of all paragraphs corresponding to each two circuit design schemes, and then clustering the circuit design schemes, grouping the circuit design schemes in each cluster cluster using the consistency evaluation value, and encrypting and storing the circuit design schemes of each group using the AES method. The present invention improves the security of circuit design scheme encryption and storage.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of circuit design scheme encryption, and in particular to a circuit design scheme secure storage method. Background Art

[0002] With the continuous advancement of integrated circuit technology, circuit design solutions have become more and more complex. How to securely store and manage these designs has become a focus of industry attention.

[0003] The Advanced Encryption Standard (AES) algorithm is a commonly used encryption algorithm that can be used to encrypt and store circuit design schemes. However, the AES algorithm usually uses a fixed key in the process of encrypting circuit design schemes, and different circuit design schemes usually have certain similarities. If circuit design schemes with high similarity use the same key, once the encryption information of one circuit design scheme is cracked, other similar circuit design schemes can also be easily identified and cracked, which will greatly reduce the overall security of circuit design scheme encryption. Summary of the invention

[0004] In order to solve the security problem existing in the existing AES algorithm when encrypting and storing the circuit design scheme, the purpose of the present invention is to provide a circuit design scheme secure storage method, and the technical scheme adopted is as follows:

[0005] The present invention provides a method for safely storing a circuit design scheme, the method comprising the following steps:

[0006] Obtain all circuit design solutions to be stored, wherein each circuit design solution is composed of a plurality of paragraphs; obtain the word segmentation of each paragraph of each circuit design solution;

[0007] According to the similarity of the parts of speech of each identical participle in each paragraph corresponding to each two circuit design schemes and the difference in the proportion of the number of each identical participle in each paragraph corresponding to each two circuit design schemes, the semantic similarity of each identical participle in each paragraph corresponding to each two circuit design schemes is obtained; according to the number of participles in each paragraph corresponding to each two circuit design schemes, the difference in the inverse document frequency corresponding to each identical participle and the semantic similarity, the description consistency of each paragraph corresponding to each two circuit design schemes is obtained;

[0008] Determine the consistency evaluation value of each two circuit design solutions based on the description consistency of all paragraphs corresponding to each two circuit design solutions; cluster all circuit design solutions based on the consistency evaluation value to obtain each cluster cluster;

[0009] The circuit design schemes in each cluster are grouped according to the consistency evaluation value of the circuit design schemes in each cluster, and the circuit design schemes in each group are encrypted and stored using the AES method.

[0010] Preferably, the semantic similarity of each identical participle in each paragraph corresponding to each two circuit design solutions is obtained according to the similarity of the part of speech of each identical participle in each paragraph corresponding to each two circuit design solutions and the difference in the proportion of the number of the identical participles in the paragraph, including:

[0011] For the jth identical participle in the i-th paragraph of the p-th circuit design and the i-th paragraph of the q-th circuit design:

[0012] If the characteristic part of speech of the jth identical participle in the i-th paragraph of the p-th circuit design scheme is different from the characteristic part of speech in the i-th paragraph of the q-th circuit design scheme, the part of speech similarity value corresponding to the jth identical participle is set to a preset first value; if the characteristic part of speech of the jth identical participle in the i-th paragraph of the p-th circuit design scheme is the same as the characteristic part of speech in the i-th paragraph of the q-th circuit design scheme, the part of speech similarity value corresponding to the jth identical participle is set to a preset second value; the preset first value is less than the preset second value; the process of obtaining the characteristic part of speech of the jth identical participle in the i-th paragraph of the p-th circuit design scheme is: the part of speech with the largest number of occurrences of the jth identical participle in the i-th paragraph of the p-th circuit design scheme is used as the characteristic part of speech of the jth identical participle in the i-th paragraph of the p-th circuit design scheme;

[0013] According to the difference between the proportion of the characteristic parts of speech of the jth identical participle in the i-th paragraph of the p-th circuit design scheme and the proportion of the characteristic parts of speech in the i-th paragraph of the q-th circuit design scheme, and the part-of-speech similarity value corresponding to the jth identical participle, the semantic similarity of the jth identical participle in the i-th paragraph of the p-th circuit design scheme and the i-th paragraph of the q-th circuit design scheme is obtained.

[0014] Preferably, obtaining the semantic similarity of the jth identical word in the i-th paragraph of the p-th circuit design scheme and the i-th paragraph of the q-th circuit design scheme includes:

[0015] Calculate the negative correlation normalization result of the difference between the proportion of the number of characteristic parts of speech of the j-th identical participle in the i-th paragraph of the p-th circuit design scheme and the proportion of the number of characteristic parts of speech in the i-th paragraph of the q-th circuit design scheme; obtain the semantic similarity of the j-th identical participle in the i-th paragraph of the p-th circuit design scheme and the i-th paragraph of the q-th circuit design scheme based on the negative correlation normalization result and the part-of-speech similarity value corresponding to the j-th identical participle; the negative correlation normalization result and the part-of-speech similarity value are both positively correlated with the semantic similarity.

[0016] Preferably, the description consistency of each paragraph corresponding to each two circuit design solutions is obtained according to the number of segmented words in each paragraph corresponding to each two circuit design solutions, the difference in inverse document frequency corresponding to each identical segmented word, and the semantic similarity, including:

[0017] For the i-th paragraph corresponding to the p-th circuit design and the q-th circuit design:

[0018] Obtaining a minimum value of the number of segmentations in the i-th paragraph of the p-th circuit design and the number of segmentations in the i-th paragraph of the q-th circuit design; recording the ratio of the number of identical segmentations in the i-th paragraph of the p-th circuit design and the i-th paragraph of the q-th circuit design to the minimum value as a first quantity ratio;

[0019] Based on the difference in inverse document frequency corresponding to each identical word in the i-th paragraph of the p-th circuit design scheme and the i-th paragraph of the q-th circuit design scheme, the semantic similarity of the j-th identical word in the i-th paragraph of the p-th circuit design scheme and the i-th paragraph of the q-th circuit design scheme, and the proportion of the first quantity, the description consistency of the i-th paragraph corresponding to the p-th circuit design scheme and the q-th circuit design scheme is obtained.

[0020] Preferably, the following formula is used to calculate the description consistency of the i-th paragraph corresponding to the p-th circuit design scheme and the q-th circuit design scheme:

[0021]

[0022] Among them, θ p,q(i) represents the description consistency between the i-th paragraph of the p-th circuit design and the i-th paragraph of the q-th circuit design, J represents the number of identical segmentations in the i-th paragraph of the p-th circuit design and the i-th paragraph of the q-th circuit design, T p,q(ij) represents the difference in inverse document frequency of the jth identical word in the ith paragraph of the pth circuit design and the ith paragraph of the qth circuit design, α p,q(ij)represents the semantic similarity of the jth identical word in the ith paragraph of the pth circuit design and the ith paragraph of the qth circuit design, H p,q(i) represents the minimum value of the number of segmentations in the ith paragraph of the pth circuit design and the number of segmentations in the ith paragraph of the qth circuit design, and exp() represents an exponential function with a natural constant as the base.

[0023] Preferably, the step of determining the consistency evaluation value of each two circuit design solutions based on the description consistency of all paragraphs corresponding to each two circuit design solutions includes:

[0024] For the pth circuit design and the qth circuit design:

[0025] Calculate the range, variance and average of the description consistency of all paragraphs corresponding to the p-th circuit design scheme and the q-th circuit design scheme respectively;

[0026] According to the range, the variance and the average value, the consistency evaluation values ​​of the p-th circuit design scheme and the q-th circuit design scheme are obtained.

[0027] Preferably, obtaining the consistency evaluation values ​​of the p-th circuit design scheme and the q-th circuit design scheme according to the range, the variance and the average value includes:

[0028] Recording the product of the range and the variance as a first product;

[0029] The product of the negative correlation normalized result of the first product and the average value is determined as the consistency evaluation value of the p-th circuit design scheme and the q-th circuit design scheme.

[0030] Preferably, a K-means clustering algorithm is used to cluster all circuit design solutions.

[0031] Preferably, the circuit design solutions in each cluster are grouped by using the consistency evaluation value of the circuit design solutions in each cluster, including:

[0032] For the mth cluster:

[0033] Determine the central scheme of the mth cluster according to the consistency evaluation value of each circuit design scheme in the mth cluster and other circuit design schemes in the mth cluster;

[0034] According to the order of consistency evaluation values ​​of each circuit design scheme in the mth cluster and the central scheme from large to small, all circuit design schemes in the mth cluster are sorted in turn to obtain a circuit design scheme sequence corresponding to the mth cluster;

[0035] Taking the first circuit design scheme in the circuit design scheme sequence as the starting point, select elements in the circuit design scheme sequence in sequence according to the set interval and use them as the circuit design scheme of the first group; taking the second circuit design scheme in the circuit design scheme sequence as the starting point, select elements in the circuit design scheme sequence in sequence according to the set interval and use them as the circuit design scheme of the second group; taking the third circuit design scheme in the circuit design scheme sequence as the starting point, select elements in the circuit design scheme sequence in sequence according to the set interval and use them as the circuit design scheme of the third group; wherein the set interval is 3.

[0036] Preferably, obtaining the center solution of the mth cluster includes:

[0037] The cumulative sum of the consistency evaluation values ​​of each circuit design scheme in the mth cluster and all other circuit design schemes in the mth cluster is recorded as the first eigenvalue of each circuit design scheme in the mth cluster;

[0038] The circuit design solution with the largest first eigenvalue in the mth cluster is taken as the central solution of the mth cluster.

[0039] The present invention has at least the following beneficial effects:

[0040] The present invention takes into account that the traditional AES algorithm uses the same key for circuit design schemes with higher similarity when encrypting all circuit design schemes to be stored, so that once the encrypted information of one circuit design scheme is cracked, other similar design schemes can also be easily identified and cracked. The present invention combines the similarity of the part of speech of each identical word in each paragraph corresponding to each two circuit design schemes, the difference in the number of word segments and the difference in the inverse document frequency corresponding to each identical word segment, analyzes the description of each paragraph corresponding to each two circuit design schemes, obtains the description consistency of each paragraph corresponding to each two circuit design schemes, and then determines the consistency evaluation value of different circuit design schemes according to the change relationship of the description consistency between all paragraphs of different circuit design schemes, clusters all circuit design schemes based on the consistency evaluation value, clusters circuit design schemes with higher similarity into the same cluster cluster, and then uses the consistency evaluation value of the circuit design scheme in each cluster cluster to group all circuit design schemes in each cluster cluster, and uses different keys to encrypt and store circuit design schemes in different groups, thereby improving the security of circuit design scheme encryption and storage. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0042] Figure 1 A flowchart of a method for securely storing a circuit design scheme provided by an embodiment of the present invention;

[0043] Figure 2 A flowchart describing a method for obtaining consistency. DETAILED DESCRIPTION

[0044] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined purpose of the invention, a circuit design scheme security storage method proposed by the present invention is described in detail below in combination with the accompanying drawings and preferred embodiments.

[0045] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.

[0046] The following is a detailed description of a circuit design scheme security storage method provided by the present invention in conjunction with the accompanying drawings.

[0047] An embodiment of a circuit design scheme secure storage method:

[0048] The specific scenario targeted by this embodiment is: the existing AES algorithm usually uses a fixed key in the process of encrypting the circuit design scheme, resulting in low encryption security of the circuit design scheme. This embodiment will analyze all circuit design schemes to be stored, divide circuit design schemes with higher similarity into the same cluster, and then group all circuit design schemes in each cluster, and use different keys to encrypt and store different groups of circuit design schemes.

[0049] This embodiment proposes a circuit design solution security storage method, such as Figure 1 As shown, a circuit design scheme secure storage method of this embodiment includes the following steps:

[0050] Step S1, obtaining all circuit design solutions to be stored, wherein each circuit design solution is composed of several paragraphs; obtaining the word segmentation of each paragraph of each circuit design solution.

[0051] This embodiment first obtains all circuit design schemes to be stored, assuming that there are a total of M circuit design schemes, each of which is text data, and the composition of the text is usually composed of multiple paragraphs such as overview, introduction, requirement description, PCB design, etc., assuming that there are a total of I paragraphs; it should be noted that: for different circuit design schemes, the text data of all paragraphs with the same sequence number in this embodiment are the same type of content, for example: the first paragraph of all circuit design schemes is an overview, the second paragraph of all circuit design schemes is an introduction, the third paragraph of all circuit design schemes is a requirement description, and so on, for the convenience of subsequent analysis. Then, each circuit design scheme is segmented according to the paragraph using the JieBa segmentation tool, so as to obtain all the segmentations of each paragraph of each circuit design scheme, wherein the JieBa segmentation tool is a prior art and will not be described in detail here.

[0052] So far, this embodiment has obtained all the segmented words of each paragraph of each circuit design solution to be stored.

[0053] Step S2, obtaining the semantic similarity of each identical participle in each paragraph corresponding to each two circuit design schemes based on the similarity of the part of speech and the difference in the proportion of the same participle in each paragraph corresponding to each two circuit design schemes; obtaining the description consistency of each paragraph corresponding to each two circuit design schemes based on the number of participles in each paragraph corresponding to each two circuit design schemes, the difference in the inverse document frequency corresponding to each identical participle and the semantic similarity.

[0054] Step S21, obtaining the semantic similarity of each identical segment word in each paragraph corresponding to each two circuit design solutions according to the similarity of the parts of speech and the difference in the proportion of the same segment words in each paragraph corresponding to each two circuit design solutions.

[0055] Each circuit design scheme is composed of multiple paragraphs, and there are multiple segmented words in the same paragraph of different circuit design schemes. This embodiment has obtained all the segmented words of each paragraph of each circuit design scheme to be stored, and each segmented word will appear once or multiple times in the same paragraph. Each circuit design scheme data is composed of multiple paragraphs, and the central idea described in the same paragraph is relatively close, such as the introduction paragraph mainly describes the basic information and brief introduction of the design scheme. Therefore, the description consistency between the same paragraphs of different circuit design schemes is calculated by comparing the similarity of the segmented words in the same paragraphs of different circuit design schemes. Since the same segmented word may change in different paragraphs, such as the word "filtering" can be a noun to represent the operation of filtering, or it can be a verb to perform the filtering operation. If only analyzing the similarity of the segmented words in the paragraph cannot accurately reflect the description consistency between the same paragraphs of different circuit design schemes, it is necessary to combine the part of speech and semantic information of each segmented word in the paragraph to determine the similarity of the segmented words, and then obtain the description consistency between the same paragraphs of different circuit design schemes. This embodiment uses the JieBa word segmentation tool to calculate the part of speech of each participle. If a participle appears multiple times in a paragraph, the corresponding part of speech is recorded each time it appears, that is, the part of speech of each participle in each paragraph of each circuit design scheme is obtained. This embodiment obtains the same participles in the paragraphs with the same serial number of every two circuit design schemes, that is, all the same participles in the first paragraph of every two circuit design schemes, all the same participles in the second paragraph of every two circuit design schemes, and all the same participles in the third paragraph of every two circuit design schemes, and so on. Next, the semantic similarity of each identical participle in each paragraph corresponding to every two circuit design schemes will be evaluated based on the similarity of the part of speech of each identical participle in each paragraph corresponding to every two circuit design schemes and the difference in the proportion of the number in the paragraph.

[0056] Specifically, for the jth identical participle in the i-th paragraph of the p-th circuit design solution and the i-th paragraph of the q-th circuit design solution:

[0057] If the characteristic part of speech of the jth identical participle in the i-th paragraph of the p-th circuit design scheme is different from the characteristic part of speech in the i-th paragraph of the q-th circuit design scheme, the part of speech similarity value corresponding to the jth identical participle is set to the preset first value; if the characteristic part of speech of the jth identical participle in the i-th paragraph of the p-th circuit design scheme is the same as the characteristic part of speech in the i-th paragraph of the q-th circuit design scheme, the part of speech similarity value corresponding to the jth identical participle is set to the preset second value; the preset first value is less than the preset second value; in this embodiment, the preset first value is 0, and the preset second value is 1. In specific applications, the implementer can set it according to specific circumstances. The acquisition process of the characteristic part of speech of the jth identical participle in the i-th paragraph of the p-th circuit design scheme is: the part of speech with the most occurrences of the jth identical participle in the i-th paragraph of the p-th circuit design scheme is taken as the characteristic part of speech of the jth identical participle in the i-th paragraph of the p-th circuit design scheme. Using this method, the characteristic part of speech of each participle in its paragraph can be obtained. Calculate the negative correlation normalization result of the difference between the proportion of the number of characteristic parts of speech of the jth identical participle in the i-th paragraph of the p-th circuit design scheme and the proportion of the number of characteristic parts of speech in the i-th paragraph of the q-th circuit design scheme; obtain the semantic similarity of the jth identical participle in the i-th paragraph of the p-th circuit design scheme and the i-th paragraph of the q-th circuit design scheme according to the negative correlation normalization result and the part of speech similarity value corresponding to the jth identical participle; the negative correlation normalization result and the part of speech similarity value are both positively correlated with the semantic similarity. Among them, the positive correlation relationship means that the dependent variable will increase as the independent variable increases, and the dependent variable will decrease as the independent variable decreases. The specific relationship can be a multiplication relationship, an addition relationship, and the idempotence of an exponential function, which is determined by actual application; as a specific implementation method, a specific calculation formula for semantic similarity is given, and the specific calculation formula for the semantic similarity of the jth identical participle in the i-th paragraph of the p-th circuit design scheme and the i-th paragraph of the q-th circuit design scheme is:

[0058]

[0059] Among them, α p,q(ij) represents the semantic similarity of the jth identical word in the i-th paragraph of the p-th circuit design scheme and the i-th paragraph of the q-th circuit design scheme, δ p,q(ij) N represents the similarity value of the part of speech corresponding to the jth identical participle, p ′ (i,j) N represents the number of times the characteristic part of speech of the jth identical participle in the i-th paragraph of the p-th circuit design solution appears. p(i,j)N represents the total number of times the jth identical participle in the i-th paragraph of the p-th circuit design solution appears in the paragraph. q ′ (i,j) N represents the number of occurrences of the characteristic part of speech of the jth identical participle in the i-th paragraph of the qth circuit design solution. q(i,j) It represents the total number of times the j-th identical participle in the i-th paragraph of the q-th circuit design solution appears in the paragraph, and exp() represents an exponential function with a natural constant as the base.

[0060] Represents the proportion of the characteristic part of speech of the j-th identical participle in the i-th paragraph of the p-th circuit design solution, The ratio of the number of characteristic parts of speech of the j-th identical participle in the i-th paragraph of the q-th circuit design solution, Represents the difference between the proportion of the number of characteristic parts of speech of the j-th identical participle in the i-th paragraph of the p-th circuit design scheme and the proportion of the number of characteristic parts of speech in the i-th paragraph of the q-th circuit design scheme. The larger the value, the greater the difference between the two. The negative correlation normalization result representing the difference between the proportion of the number of characteristic parts of speech of the jth identical participle in the i-th paragraph of the p-th circuit design scheme and the proportion of the number of characteristic parts of speech in the i-th paragraph of the q-th circuit design scheme. The greater the part of speech similarity value corresponding to the jth identical participle and the smaller the difference between the proportion of the number of characteristic parts of speech of the jth identical participle in the i-th paragraph of the p-th circuit design scheme and the proportion of the number of characteristic parts of speech in the i-th paragraph of the q-th circuit design scheme, the greater the semantic similarity of the jth identical participle in the i-th paragraph of the p-th circuit design scheme and the i-th paragraph of the q-th circuit design scheme.

[0061] By adopting the above method, the semantic similarity of each identical word in each paragraph corresponding to each two circuit design solutions can be obtained.

[0062] Step S22, obtaining the description consistency of each paragraph corresponding to each two circuit design solutions according to the number of segmented words in each paragraph corresponding to each two circuit design solutions, the difference in inverse document frequency corresponding to each identical segmented word, and the semantic similarity.

[0063] This embodiment has obtained the semantic similarity of each identical word in each paragraph corresponding to every two circuit design schemes. Next, the description consistency of each paragraph corresponding to every two circuit design schemes will be further evaluated based on the number of word segments in each paragraph corresponding to every two circuit design schemes and the difference in inverse document frequency corresponding to each identical word.

[0064] Specifically, for the i-th paragraph corresponding to the p-th circuit design scheme and the q-th circuit design scheme:

[0065] Obtain the minimum value of the number of segmentations in the i-th paragraph of the p-th circuit design scheme and the number of segmentations in the i-th paragraph of the q-th circuit design scheme; record the ratio of the number of identical segmentations in the i-th paragraph of the p-th circuit design scheme and the i-th paragraph of the q-th circuit design scheme to the minimum value as the first quantity ratio. At the same time, obtain the inverse document frequency of each segmentation in the paragraph in which it is located, and record it as the inverse document frequency corresponding to each segmentation. The process of obtaining the inverse document frequency is a prior art and will not be described in detail here. According to the difference in the inverse document frequency corresponding to each identical segmentation in the i-th paragraph of the p-th circuit design scheme and the i-th paragraph of the q-th circuit design scheme, the semantic similarity of the j-th identical segmentation in the i-th paragraph of the p-th circuit design scheme and the i-th paragraph of the q-th circuit design scheme, and the first quantity ratio, obtain the description consistency of the i-th paragraph corresponding to the p-th circuit design scheme and the q-th circuit design scheme. The specific calculation formula for the description consistency of the i-th paragraph corresponding to the p-th circuit design scheme and the q-th circuit design scheme is:

[0066]

[0067] Among them, θ p,q(i) represents the description consistency between the i-th paragraph of the p-th circuit design and the i-th paragraph of the q-th circuit design, J represents the number of identical segmentations in the i-th paragraph of the p-th circuit design and the i-th paragraph of the q-th circuit design, T p,q(ij) represents the difference in inverse document frequency of the jth identical word in the ith paragraph of the pth circuit design and the ith paragraph of the qth circuit design, α p,q(ij) represents the semantic similarity of the jth identical word in the ith paragraph of the pth circuit design and the ith paragraph of the qth circuit design, H p,q(i) represents the minimum value of the number of segmentations in the ith paragraph of the pth circuit design and the number of segmentations in the ith paragraph of the qth circuit design, and exp() represents an exponential function with a natural constant as the base.

[0068] The method for obtaining the difference in inverse document frequencies corresponding to the jth identical participle in the i-th paragraph of the p-th circuit design scheme and the i-th paragraph of the q-th circuit design scheme is: calculating the absolute value of the difference between the inverse document frequency corresponding to the i-th paragraph of the p-th circuit design scheme and the inverse document frequency corresponding to the j-th identical participle in the i-th paragraph of the q-th circuit design scheme, and using the absolute value as the difference in inverse document frequencies corresponding to the j-th identical participle in the i-th paragraph of the p-th circuit design scheme and the i-th paragraph of the q-th circuit design scheme. It represents the proportion of the first quantity. The larger the proportion is, the more identical participles there are in the ith paragraph of the p-th circuit design scheme and the ith paragraph of the q-th circuit design scheme; the greater the semantic similarity between the ith paragraph of the p-th circuit design scheme and the j-th identical participles in the ith paragraph of the q-th circuit design scheme, the smaller the difference in inverse document frequencies corresponding to the j-th identical participles in the ith paragraph of the p-th circuit design scheme and the ith paragraph of the q-th circuit design scheme, and the larger the proportion of the first quantity is, the more similar the descriptions of the texts in the ith paragraph of the p-th circuit design scheme and the ith paragraph of the q-th circuit design scheme are, that is, the greater the description consistency between the ith paragraph of the p-th circuit design scheme and the ith paragraph of the q-th circuit design scheme.

[0069] By adopting the above method, the description consistency of each paragraph corresponding to each two circuit design solutions to be stored can be obtained, such as Figure 2 As shown, the figure is a flow chart describing the method for obtaining consistency.

[0070] Step S3, determining a consistency evaluation value of every two circuit design solutions based on the description consistency of all paragraphs corresponding to every two circuit design solutions; and clustering all circuit design solutions based on the consistency evaluation value to obtain each cluster.

[0071] This embodiment has obtained the description consistency of each paragraph corresponding to every two circuit design schemes. Next, based on the description consistency of all paragraphs corresponding to every two circuit design schemes, the overall similarity of every two circuit design schemes will be evaluated, the consistency evaluation value of every two circuit design schemes will be determined, and then all circuit design schemes will be clustered.

[0072] Specifically, for the p-th circuit design and the q-th circuit design:

[0073] Calculate the range, variance and average value of the description consistency of all paragraphs corresponding to the p-th circuit design scheme and the q-th circuit design scheme respectively; record the product of the range and the variance as the first product; and determine the product of the negative correlation normalized result of the first product and the average value as the consistency evaluation value of the p-th circuit design scheme and the q-th circuit design scheme. The specific calculation formula for the consistency evaluation value of the p-th circuit design scheme and the q-th circuit design scheme is:

[0074]

[0075] Among them, Y p,q represents the consistency evaluation value of the p-th circuit design scheme and the q-th circuit design scheme, I is the number of paragraphs of each circuit design scheme, θ p,q(max) represents the maximum value of the description consistency between the i-th paragraph of the p-th circuit design and all paragraphs of the q-th circuit design, θ p,q(min) represents the minimum value of the description consistency between the i-th paragraph of the p-th circuit design and all paragraphs of the q-th circuit design, represents the variance of the description consistency between the i-th paragraph of the p-th circuit design and all paragraphs of the q-th circuit design, θ p,q(i) It represents the description consistency between the i-th paragraph of the p-th circuit design scheme and the i-th paragraph of the q-th circuit design scheme, and exp() represents an exponential function with a natural constant as the base.

[0076] θ p,q(max) -θ p,q(min) Characterizes the extreme difference of the description consistency of all paragraphs corresponding to the p-th circuit design scheme and the q-th circuit design scheme, and is used to reflect the maximum amplitude of the description consistency change of all paragraphs corresponding to the p-th circuit design scheme and the q-th circuit design scheme; The average value of the description consistency of all paragraphs corresponding to the p-th circuit design scheme and the q-th circuit design scheme is used to reflect the average level of description consistency; the variance of the description consistency of the i-th paragraph of the p-th circuit design scheme and all paragraphs of the q-th circuit design scheme is used to reflect the discrete degree of description consistency of all paragraphs corresponding to the p-th circuit design scheme and the q-th circuit design scheme. The larger the value, the greater the discrete degree of description consistency. When the range of the description consistency of all paragraphs corresponding to the p-th circuit design scheme and the q-th circuit design scheme is smaller, the variance is smaller, and the average value is larger, the consistency evaluation value of the p-th circuit design scheme and the q-th circuit design scheme is greater.

[0077] By adopting the above method, the consistency evaluation value of every two circuit design schemes can be obtained. The larger the consistency evaluation value, the more similar the corresponding two circuit design schemes are. Therefore, this embodiment will use the K-means clustering algorithm based on the consistency evaluation value to cluster all circuit design schemes to obtain multiple cluster clusters. When this embodiment uses the K-means clustering algorithm to cluster all circuit design schemes, the inverse of the consistency evaluation value of every two circuit design schemes is used as the distance metric of the corresponding two circuit design schemes for clustering processing. In this embodiment, when using the K-means clustering algorithm for clustering, the k value when clustering is obtained by using the silhouette coefficient method. The silhouette coefficient method is a prior art and will not be described in detail here. As other implementation methods, the value of k can also be set according to the number of circuit design schemes to be stored.

[0078] So far, this embodiment has divided all circuit design solutions to be stored into multiple clusters.

[0079] Step S4: grouping the circuit design solutions in each cluster using the consistency evaluation value of the circuit design solutions in each cluster, and encrypting and storing the circuit design solutions in each group using the AES method.

[0080] In step S3, this embodiment divides all circuit design schemes into multiple clusters based on the similarity between every two circuit design schemes. The similarity of circuit design schemes in the same cluster is relatively high, and the difference between circuit design schemes in different clusters is relatively large. Next, this embodiment will again use the consistency evaluation value of the circuit design scheme in each cluster to group the circuit design schemes in each cluster, and use the AES method for encryption based on the grouping results.

[0081] Specifically, for the mth cluster:

[0082] The cumulative sum of the consistency evaluation values ​​of each circuit design scheme in the mth cluster and all other circuit design schemes in the mth cluster is recorded as the first eigenvalue of each circuit design scheme in the mth cluster; the circuit design scheme with the largest first eigenvalue in the mth cluster is taken as the central scheme of the mth cluster. All circuit design schemes in the mth cluster are sorted in descending order of the consistency evaluation values ​​of each circuit design scheme in the mth cluster and the central scheme, and the sequence obtained at this time is recorded as the circuit design scheme sequence corresponding to the mth cluster. It should be noted that the first circuit design scheme in the circuit design scheme sequence corresponding to the mth cluster is the central scheme of the mth cluster, and the second circuit design scheme in the circuit design scheme sequence corresponding to the mth cluster is the circuit design scheme with the largest consistency evaluation value with the central scheme of the mth cluster except the central scheme of the mth cluster. In the process of AES encryption storage of the circuit design schemes in the mth cluster, since there are usually three fixed-length keys in the AES algorithm, this embodiment divides the circuit design schemes in the mth cluster into three groups. Specifically, taking the first circuit design scheme in the circuit design scheme sequence as the starting point, the elements in the circuit design scheme sequence are selected in sequence according to the set interval, and used as the circuit design schemes of the first group; taking the second circuit design scheme in the circuit design scheme sequence as the starting point, the elements in the circuit design scheme sequence are selected in sequence according to the set interval, and used as the circuit design schemes of the second group; taking the third circuit design scheme in the circuit design scheme sequence as the starting point, the elements in the circuit design scheme sequence are selected in sequence according to the set interval, and used as the circuit design schemes of the third group; wherein the set interval is 3. For example, if there are 11 circuit design schemes in the circuit design scheme sequence, the first group of circuit design schemes is composed of the 1st circuit design scheme, the 4th circuit design scheme, the 7th circuit design scheme and the 10th circuit design scheme in the circuit design scheme sequence, the second group of circuit design schemes is composed of the 2nd circuit design scheme, the 5th circuit design scheme, the 8th circuit design scheme and the 11th circuit design scheme in the circuit design scheme sequence, and the third group of circuit design schemes is composed of the 3rd circuit design scheme, the 6th circuit design scheme and the 9th circuit design scheme in the circuit design scheme sequence. By adopting the above method, the circuit design schemes in each cluster can be grouped respectively, and the distribution of the consistency evaluation values ​​of the circuit design schemes in each group and the central scheme of the cluster to which it belongs is relatively uniform.

[0083] By adopting the above method, all circuit design solutions can be grouped, and then the circuit design solutions in each group are encrypted and stored using an independent key according to the AES method, so that the keys between the block data of the circuit design solutions with greater similarity are different, thereby increasing the security of the circuit design solution storage and preventing the key of one group from being leaked and causing the security of other groups to be threatened. The AES method is a prior art and will not be described in detail here.

[0084] So far, the encrypted storage of all circuit design solutions to be stored has been completed using the method provided in this embodiment.

[0085] This embodiment takes into account that the traditional AES algorithm uses the same key for circuit design schemes with higher similarity when encrypting all circuit design schemes to be stored, so that once the encrypted information of one circuit design scheme is cracked, other similar design schemes can also be easily identified and cracked. This embodiment combines the similarity of the part of speech of each identical word in each paragraph corresponding to each two circuit design schemes, the difference in the number of word segments and the difference in the inverse document frequency corresponding to each identical word segment, analyzes the description of each paragraph corresponding to each two circuit design schemes, obtains the description consistency of each paragraph corresponding to each two circuit design schemes, and then determines the consistency evaluation value of different circuit design schemes according to the change relationship of the description consistency between all paragraphs of different circuit design schemes, clusters all circuit design schemes based on the consistency evaluation value, clusters circuit design schemes with higher similarity into the same cluster cluster, and then uses the consistency evaluation value of the circuit design scheme in each cluster cluster to group all circuit design schemes in each cluster cluster, and uses different keys to encrypt and store each group of circuit design schemes, thereby improving the security of circuit design scheme encryption and storage.

[0086] It should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for securely storing a circuit design scheme, It is characterized in that The method comprises the following steps: Obtain all circuit design solutions to be stored, wherein each circuit design solution is composed of a plurality of paragraphs; obtain the word segmentation of each paragraph of each circuit design solution; According to the similarity of the parts of speech of each identical participle in each paragraph corresponding to each two circuit design schemes and the difference in the proportion of the number of each identical participle in each paragraph corresponding to each two circuit design schemes, the semantic similarity of each identical participle in each paragraph corresponding to each two circuit design schemes is obtained; according to the number of participles in each paragraph corresponding to each two circuit design schemes, the difference in the inverse document frequency corresponding to each identical participle and the semantic similarity, the description consistency of each paragraph corresponding to each two circuit design schemes is obtained; Determine the consistency evaluation value of each two circuit design solutions based on the description consistency of all paragraphs corresponding to each two circuit design solutions; cluster all circuit design solutions based on the consistency evaluation value to obtain each cluster cluster; The circuit design schemes in each cluster are grouped using the consistency evaluation value of the circuit design schemes in each cluster, and the circuit design schemes in each group are encrypted and stored using the AES method; The description consistency of each paragraph corresponding to each two circuit design solutions is obtained according to the number of segmented words in each paragraph corresponding to each two circuit design solutions, the difference in inverse document frequency corresponding to each identical segmented word, and the semantic similarity, including: For the i-th paragraph corresponding to the p-th circuit design and the q-th circuit design: Obtaining a minimum value of the number of segmentations in the i-th paragraph of the p-th circuit design and the number of segmentations in the i-th paragraph of the q-th circuit design; recording the ratio of the number of identical segmentations in the i-th paragraph of the p-th circuit design and the i-th paragraph of the q-th circuit design to the minimum value as a first quantity ratio; Obtaining description consistency of the i-th paragraph corresponding to the p-th circuit design scheme and the q-th circuit design scheme according to the difference in inverse document frequency corresponding to each identical segmentation in the i-th paragraph of the p-th circuit design scheme and the i-th paragraph of the q-th circuit design scheme, the semantic similarity of the j-th identical segmentation in the i-th paragraph of the p-th circuit design scheme and the i-th paragraph of the q-th circuit design scheme, and the first quantity proportion; The following formula is used to calculate the description consistency of the i-th paragraph corresponding to the p-th circuit design scheme and the q-th circuit design scheme: Among them, θ p,q(i) represents the description consistency between the i-th paragraph of the p-th circuit design and the i-th paragraph of the q-th circuit design, J represents the number of identical segmentations in the i-th paragraph of the p-th circuit design and the i-th paragraph of the q-th circuit design, T p,q(ij) represents the difference in inverse document frequency of the jth identical word in the ith paragraph of the pth circuit design and the ith paragraph of the qth circuit design, α p,q(ij) represents the semantic similarity of the jth identical word in the ith paragraph of the pth circuit design and the ith paragraph of the qth circuit design, H p,q(i) represents the minimum value of the number of segmentations in the ith paragraph of the pth circuit design and the number of segmentations in the ith paragraph of the qth circuit design, and exp() represents an exponential function with a natural constant as the base.

2. A circuit design scheme secure storage method according to claim 1, It is characterized in that The obtaining of the semantic similarity of each identical participle in each paragraph corresponding to each two circuit design solutions according to the similarity of the part of speech and the difference in the proportion of quantity of each identical participle in each paragraph corresponding to each two circuit design solutions includes: For the jth identical participle in the i-th paragraph of the p-th circuit design and the i-th paragraph of the q-th circuit design: If the characteristic part of speech of the jth identical participle in the i-th paragraph of the p-th circuit design scheme is different from the characteristic part of speech in the i-th paragraph of the q-th circuit design scheme, the part of speech similarity value corresponding to the jth identical participle is set to a preset first value; if the characteristic part of speech of the jth identical participle in the i-th paragraph of the p-th circuit design scheme is the same as the characteristic part of speech in the i-th paragraph of the q-th circuit design scheme, the part of speech similarity value corresponding to the jth identical participle is set to a preset second value; the preset first value is less than the preset second value; the process of obtaining the characteristic part of speech of the jth identical participle in the i-th paragraph of the p-th circuit design scheme is: the part of speech with the largest number of occurrences of the jth identical participle in the i-th paragraph of the p-th circuit design scheme is used as the characteristic part of speech of the jth identical participle in the i-th paragraph of the p-th circuit design scheme; According to the difference between the proportion of the characteristic parts of speech of the jth identical participle in the i-th paragraph of the p-th circuit design scheme and the proportion of the characteristic parts of speech in the i-th paragraph of the q-th circuit design scheme, and the part-of-speech similarity value corresponding to the jth identical participle, the semantic similarity of the jth identical participle in the i-th paragraph of the p-th circuit design scheme and the i-th paragraph of the q-th circuit design scheme is obtained.

3. A circuit design scheme secure storage method according to claim 2, It is characterized in that Acquiring the semantic similarity of the jth identical word in the i-th paragraph of the p-th circuit design solution and the i-th paragraph of the q-th circuit design solution includes: Calculate the negative correlation normalization result of the difference between the proportion of the number of characteristic parts of speech of the j-th identical participle in the i-th paragraph of the p-th circuit design scheme and the proportion of the number of characteristic parts of speech in the i-th paragraph of the q-th circuit design scheme; obtain the semantic similarity of the j-th identical participle in the i-th paragraph of the p-th circuit design scheme and the i-th paragraph of the q-th circuit design scheme based on the negative correlation normalization result and the part-of-speech similarity value corresponding to the j-th identical participle; the negative correlation normalization result and the part-of-speech similarity value are both positively correlated with the semantic similarity.

4. A circuit design scheme secure storage method according to claim 1, It is characterized in that The step of determining the consistency evaluation value of each of the two circuit design solutions based on the description consistency of all paragraphs corresponding to each of the two circuit design solutions includes: For the pth circuit design and the qth circuit design: Calculate the range, variance and average of the description consistency of all paragraphs corresponding to the p-th circuit design scheme and the q-th circuit design scheme respectively; According to the range, the variance and the average value, the consistency evaluation values ​​of the p-th circuit design scheme and the q-th circuit design scheme are obtained.

5. A circuit design scheme secure storage method according to claim 4, It is characterized in that The obtaining, according to the range, the variance and the average value, a consistency evaluation value of the p-th circuit design scheme and the q-th circuit design scheme comprises: Recording the product of the range and the variance as a first product; The product of the negative correlation normalized result of the first product and the average value is determined as the consistency evaluation value of the p-th circuit design scheme and the q-th circuit design scheme.

6. A circuit design scheme secure storage method according to claim 1, It is characterized in that The K-means clustering algorithm is used to cluster all circuit design schemes.

7. A circuit design scheme secure storage method according to claim 1, It is characterized in that The circuit design solutions in each cluster are grouped by using the consistency evaluation value of the circuit design solutions in each cluster, including: For the mth cluster: Determine the central scheme of the mth cluster according to the consistency evaluation value of each circuit design scheme in the mth cluster and other circuit design schemes in the mth cluster; According to the order of consistency evaluation values ​​of each circuit design scheme in the mth cluster and the central scheme from large to small, all circuit design schemes in the mth cluster are sorted in turn to obtain a circuit design scheme sequence corresponding to the mth cluster; Taking the first circuit design scheme in the circuit design scheme sequence as the starting point, select elements in the circuit design scheme sequence in sequence according to the set interval and use them as the circuit design scheme of the first group; taking the second circuit design scheme in the circuit design scheme sequence as the starting point, select elements in the circuit design scheme sequence in sequence according to the set interval and use them as the circuit design scheme of the second group; taking the third circuit design scheme in the circuit design scheme sequence as the starting point, select elements in the circuit design scheme sequence in sequence according to the set interval and use them as the circuit design scheme of the third group; wherein the set interval is 3.

8. A circuit design scheme secure storage method according to claim 7, It is characterized in that The center solution of the mth cluster is obtained, including: The cumulative sum of the consistency evaluation values ​​of each circuit design scheme in the mth cluster and all other circuit design schemes in the mth cluster is recorded as the first eigenvalue of each circuit design scheme in the mth cluster; The circuit design solution with the largest first eigenvalue in the mth cluster is taken as the central solution of the mth cluster.