One-time pad method based on state machine

Through the state machine-based one-time pad method, probabilistic simulation and binary finite field addition are used to generate ciphertext and keys, which solves the problem of information leakage caused by the uniformity of key distribution in traditional one-time pad technology, and realizes ciphertext and The differentiation of key entropy enhances the security of the confidentiality system.

CN114938271BActive Publication Date: 2024-10-25ZHEJIANG UNIV OF TECH
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202210465119.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-29
Publication Date
2024-10-25
Estimated Expiration
2042-04-29

AI Technical Summary

Technical Problem

Traditional one-time pad technology requires the key to obey a uniform probability distribution, resulting in the ciphertext and key being isentropic, leaking key information, and being imperfect.

Method used

Using a one-time pad method based on a state machine, the plaintext is read bit by bit, and the ciphertext and key are generated using probability simulation transformation decisions. The ciphertext and plaintext are added in a binary finite field to generate the key, ensuring that the key and ciphertext are It is different from the information entropy of plaintext.

Benefits of technology

An encryption process that does not rely on keys is realized. The key is generated after the ciphertext is generated. The entropy information of the key, ciphertext and plaintext is not equal to each other. Theoretically, the entropy of the key cannot be predicted or speculated from the ciphertext, which enhances confidentiality. sex.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114938271B_ABST
    Figure CN114938271B_ABST
Patent Text Reader

Abstract

The present invention discloses a one-time one-key method based on a state machine, comprising the following steps: 1) reading plaintext bit by bit, and using probability simulation to make a conversion decision for the current bit to be encrypted, converting it to 0 with probability p0 and converting it to 1 with probability p1; 2) performing binary finite field addition on the converted ciphertext bit and the input plaintext bit to obtain the current key bit; 3) repeatedly performing the above steps 1) and 2 until the plaintext is read; and finally obtaining two sequences, one is the ciphertext bit sequence, and the other is the key bit sequence; wherein the ciphertext bit sequence is the result of encryption, which is directly transmitted to the receiver, and the key bit sequence can be transmitted to the receiver through a key dedicated line. The different entropies of the key, ciphertext and plaintext make the entropy information of any element of the confidentiality system unknown to the attacker, thereby being more conducive to confidentiality. In addition, it is independent of the entropy value of the plaintext, so that no preprocessing of the plaintext is required.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of encryption and decryption, and in particular to a one-time pad method based on a state machine. Background Art

[0002] The one-time pad encryption theory created by Shannon is considered to be the only secure and reliable encryption and decryption technology to date. During the Cold War between the United States and the Soviet Union in the 1960s, the hotline between the leaders of the United States and the Soviet Union was the only hotline to date that used one-time pad encryption. To use one-time pads for encrypted communication, a dedicated secure channel must be guaranteed, which is the path for transmitting keys. Since the 1980s, the theory and technology of quantum key distribution have gradually emerged, providing a very secure and reliable quantum key channel. Pan Jianwei and others established a secure key channel based on quantum key distribution between Beijing and Shanghai to serve the financial industry. In 2019, Falco and others achieved perfect confidentiality by mixing chaotic waves in irreversible time-varying silicon chips, providing a cheaper solution than quantum key distribution, the so-called fiber key distribution.

[0003] However, the traditional one-time pad technology requires that the key obeys a uniform probability distribution, and the ciphertext and the key are isentropic, which leaks the key information. Therefore, the traditional one-time pad technology is not perfect. Summary of the invention

[0004] In view of the problems existing in the prior art, the present invention provides a one-time pad method based on a state machine, in which the key, ciphertext and plaintext have different entropies, so that the entropy information of any element of the confidentiality system cannot be known to the attacker, which is more conducive to confidentiality.

[0005] The technical solution of the present invention is as follows:

[0006] The one-time pad method based on the state machine includes the following steps:

[0007] 1) Read the plaintext bit by bit, and use probability simulation to make a conversion decision for the current bit to be encrypted, converting it to 0 with probability p0 and to 1 with probability p1;

[0008] 2) Perform binary finite field addition on the converted ciphertext bits and the input plaintext bits to obtain the current key bits;

[0009] 3) Repeat steps 1) and 2 above until the plaintext is read; eventually two sequences are obtained, one is the ciphertext bit sequence, and the other is the key bit sequence; the ciphertext bit sequence is the result of encryption and is directly transmitted to the receiver, and the key bit sequence can be transmitted to the receiver through a key dedicated line.

[0010] Furthermore, in step 1), the probability simulation adopts the following mechanism:

[0011] 1.1) Generate a random number;

[0012] 1.2) Divide the number by the upper limit parameter MAX of the random number range to obtain a random floating point number between 0 and 1;

[0013] 1.3) Determine whether the floating point number is less than p0, or greater than or equal to p0;

[0014] If it is less than p0, it is considered that the probability of obtaining the value is p0, and the input bit is converted to 0; if it is greater than or equal to p0, it is considered that the probability of obtaining the value is p1, and the input bit is converted to 1.

[0015] The beneficial effects of the present invention are as follows:

[0016] 1) No key is required for encryption, and only a state machine is relied upon;

[0017] 2) Generate the key after the ciphertext is generated;

[0018] 3) The information entropy of the key, ciphertext and plaintext are not equal. Theoretically, it is impossible to predict or infer the entropy of the key from the ciphertext.

[0019] 4) The different entropies of the key, ciphertext and plaintext of the present invention make the entropy information of any element of the confidentiality system unknown to the attacker, which is more conducive to confidentiality. In addition, it is independent of the entropy value of the plaintext, so there is no need to pre-process the plaintext. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 is a flow chart of the present invention;

[0021] Figure 2 It is a schematic diagram of the present invention. DETAILED DESCRIPTION

[0022] The present invention will be further described below in conjunction with the accompanying drawings.

[0023] The one-time pad method based on the state machine, the state machine, that is, the two input state 0 and 1 bit values, correspond to the different output state bit values ​​0 and 1 through the transition probability, such as Figure 2 As shown, the left side is the input, which can be understood as plaintext, and the right side is the output, that is, the ciphertext, so the core encryption operation is a random simulation that can be simulated using Monte Carlo. Figure 2 In the example, the conditional probability of an input 0 going to an output 0 is p0, the conditional probability of an input 0 going to an output 1 is p1, while the conditional probability of an input 1 going to an output 0 is p0, and the conditional probability of an input 1 going to an output 1 is p1.

[0024] If the probability distribution of the input plaintext is:

[0025]

[0026] Then under the transformation of the above state machine, the probability distribution of the output ciphertext is:

[0027]

[0028] This is due to:

[0029]

[0030] That is, the output distribution obtained by multiplying the transition probability matrix of the state machine and the input probability distribution.

[0031] Use the output ciphertext and plaintext to perform addition operations on binary finite fields, such as:

[0032] 0+0=0

[0033] 0+1=1

[0034] 1+1=0

[0035] 1+0=1

[0036] The key can be calculated. For example, if the current ciphertext is 1 and the plaintext is 0, then the key is 1+0=1.

[0037] The probability distribution of the key generated in this way is different from both the input plaintext and the output ciphertext. Through probability calculation, the key distribution obeys:

[0038]

[0039] Visible plaintext distribution Key distribution Ciphertext distribution These three distributions are different, so their entropies are also different. For an attacker, eavesdropping on the transition probability matrix of the state machine or using a ciphertext attack cannot predict the entropy of the key.

[0040] like Figure 1 As shown, the one-time pad method based on the state machine has the following execution steps:

[0041] 1) Read the plaintext bit by bit, and use probability simulation to make a conversion decision for the current bit to be encrypted, converting it to 0 with probability p0 and to 1 with probability p1;

[0042] The simulation of probability can adopt the following mechanism:

[0043] 1.1) Generate a random number;

[0044] 1.2) Divide the number by the upper limit parameter MAX of the random number range to obtain a random floating point number between 0 and 1;

[0045] 1.3) Determine whether the floating point number is less than p0, or greater than or equal to p0;

[0046] If it is less than p0, it is considered that the probability of obtaining the value is p0, and the input bit is converted (encrypted) to 0; if it is greater than or equal to p0, it is considered that the probability of obtaining the value is p1, and the input bit is converted (encrypted) to 1.

[0047] 2) Perform binary finite field addition on the converted ciphertext bits and the input plaintext bits to obtain the current key bits;

[0048] 3) Repeat steps 1) and 2) above until the plaintext is read. Finally, two sequences are obtained, one is the ciphertext bit sequence, and the other is the key bit sequence. The ciphertext bit sequence is the result of encryption and is directly transmitted to the receiver, and the key bit sequence can be transmitted to the receiver through the key dedicated line.

Claims

1. One-time pad method based on state machine, It is characterized in that The steps include: 1) Read the plaintext bit by bit, and use probability simulation to make a conversion decision for the current bit to be encrypted, with probability p 0 Converted to 0 with probability p 1 Convert to 1; In step 1), the probability simulation adopts the following mechanism: 1.1) Generate a random number; 1.2) Divide the number by the upper limit parameter MAX of the random number range to obtain a random floating point number between 0 and 1; 1.3) Determine whether the floating point number is less than p 0 , or greater than or equal to p 0 ; If it is less than p 0 Then the probability of obtaining is p 0 The possibility of size, convert the input bit to 0; if it is greater than or equal to p 0 Then the probability of obtaining is p 1 The possibility of size, converting the input bit into 1; 2) Perform binary finite field addition on the converted ciphertext bits and the input plaintext bits to obtain the current key bits; 3) Repeat steps 1) and 2) above until the plaintext is read; eventually two sequences are obtained, one is the ciphertext bit sequence, and the other is the key bit sequence; the ciphertext bit sequence is the result of encryption and is directly transmitted to the receiver, and the key bit sequence can be transmitted to the receiver through a key dedicated line.

Citation Information

Patent Citations

  • Binary data communication encryption method for concealing plaintext symbol boundaries

    CN109218013A

  • Data encoding and decoding method, device, equipment and storage medium

    CN110474876A

  • Systems and methods for simultaneous compression and encryption

    US20150086013A1

  • Stream Ciphering

    US20200396062A1

  • A method and apparatus for block encryption and synchronous stream cipher

    WO2010041264A1