<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Definition of Chipher Key on Plaintexts and Chipher Texts by the Method of Equivalent Keys</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>ry Sizov[</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Plekhanov Russian University of Economics M oscow</institution>
          ,
          <addr-line>Russian Federation</addr-line>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2019</year>
      </pub-date>
      <fpage>0000</fpage>
      <lpage>0002</lpage>
      <abstract>
        <p>One of the important tasks related to the implementation of the Digital Economy program is to improve cybersecurity when creating digital platforms, as distributed information and communication systems of the subjects of a single digital market. When building distributed information security subsystems of digital platforms, an urgent task is to increase the cryptographic strength of the cryptographic mechanisms used to encrypt short texts. The paper deals with the problem of encrypting short texts with ciphers with a large number of keys, from which the equivalent keys appear in the cipher, which leads to a significant reduction in the cryptographic strength of ciphers. The concept of weak key equivalence in the C. Shannon cipher model is introduced. M ethods for determining the key from the open and encrypted texts with the calculation of the parameters of their complexity are proposed. The methods are applicable to both symmetric ciphers and asymmetric ciphers. The following situations are considered: 1) representatives of classes of equivalent keys are known; 2) the capacities of the classes of equivalent keys and representatives of these classes are known; 3) only the capacities of the classes of equivalent keys are known; 4) the number of classes of equivalent keys is known. A part of encryption devices (encoders) is built using a serial connection of the control unit with an encryption unit, where the actual control unit performs the role of a pseudorandom number generator. The keys of such an encoder are the keys of the pseudo-random number generator. The output sequence of the pseudo-random number generator is the control sequence of the encryption unit. Often the encryption unit uses the gamming cipher. In this case, the equivalence of the keys of such an encoder is equivalent to the equivalence of the keys of the pseudorandom number generator. The results obtained below allow us to apply the method of equivalent keys developed in the article to ciphers that have equivalent keys in a pseudo-random number generator.</p>
      </abstract>
      <kwd-group>
        <kwd>Equivalent Keys</kwd>
        <kwd>Cipher Encoding Algebra</kwd>
        <kwd>Plaintext</kwd>
        <kwd>Ciphertext</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>
        For many ciphers, decoding methods other than the “brute force” technique,
sometimes called the Monte Carlo method, or the total method, the key testing method
[13], have not yet been found. At the same time, for many of them, the absence of
equivalent keys has not been proven [
        <xref ref-type="bibr" rid="ref10 ref11 ref4 ref5 ref6 ref7 ref8 ref9">4–11</xref>
        ]. Moreover, when encrypting short texts
with ciphers with a large number of keys, the presence of equivalent keys in the
cipher follows from quantitative considerations. The concept is introduced in the paper
- weak equivalence of keys relative to a given plaintext. The presence of equivalent
keys in the cipher or weak equivalent keys leads to the possibility of grouping keys
into classes of keys with subsequent testing of representatives of such classes. Su c h a
situation, as a rule, significantly reduces the cryptographic strength of ciphers. This
idea lies in the cipher key identification methods developed below. Finally, the
solutions of two problems of interest for decoding of cipher are given:
1) what is the largest k, at which the probability that all the keys χ1, χ2, ..., χk pairwise
are not equivalent is less than the given probability P;
2) what is the minimum k for the average number of equivalent key pairs from the set
χ1, χ2, ..., χk greater than 1.
      </p>
      <p>The decoding methods described in the paper are given with estimation of their
complexity parameters.
2</p>
      <p>Basic Concepts and Notation
Let’s denote the cipher encoding algebra by A = (X, K, Y, f). Here: X – a set of
plaintexts; K – a number of keys; Y – a set of ciphertexts (cryptograms); f - encoding
function f(х,)=y, xX, K, yY.</p>
      <p>Definition 1. Keys ,` are called equivalent if f(х,)=f(х,`)for any хХ.</p>
      <p>Definition 2. The keys ,`К are called equivalent with respect to the subset
X` X if f(х,)=f(х,`) for any xX.</p>
      <p>The binary relation  (X `) introduced in this definition for a set of keys K is a binary
equivalence relation (the properties of reflexivity, symmetry and transitivity are
fulfilled). Therefore, the entire set of keys K is divided into equivalence classes of the
L(Х`)
binary relation (Х`). We denote this partition by R((Х`))= U К Хj` .
j1
It is obvious that the equivalence of keys ,`Кwith respect to Х`implies also their
equivalence with respect to any X` ` subset of a X` set. It results that any equivalence
class К Хj` is contained entirely in a certain equivalence class К Хj``` with respect to a
subset X `` of the set X`. Each class К Хj``` consists of the combination of some classes
К Хj` . In particular, L(Х``)  L(Х`), and classes К Хj` are “smaller” than classes К Хj``` .
3</p>
      <p>Formulation of the Problem
Find solutions of the equation f(х,)=у with respect to К, i.e. the problem of
determining the key  by agiven plaintext x and a cipher text y. In the terminology
adopted above, this task consists in finding the key up to equivalence with respect to a
set consisting of a single element x.</p>
      <p>Let’s denote byК1,К2,…,КLequivalence classes with respect to the element
хХ.Further, for brevity, we will call these classes simply the equivalence classes of
keys, although their more meaningful name, in our opinion, would be "weak
equivalence classes of keys."
4</p>
      <p>Problem Solutions with Various Additional Assumptions
1. The representatives 1,2,…, of classes К1, К2,…, КL of equivalent keys are
known.</p>
      <p>In this case, testing is carried out without the return of representatives until the first
success (until receiving a representative of the equivalence class in which the key is
located). That is, f(х,)=y is estimated for each test key  , and y is compared with
the given у. The testing process ends when the equality y=у is obtained.The
performance of Т in testing such a method coincides with the performance of the total
method with r=|К|=L and zero errors of the statistical criterion:
Т= L  1
2
The reliability method is =1.
2.Capacities of classes of equivalent keys and representatives of these classes are
known.</p>
      <p>Let’s arrange i(1),i(2),…,i(L)the representatives known to us in accordance with the
capacities of the classes of equivalent keys:</p>
      <p>|Кi(1)||Кi(2)| …|Кi(L)|
and try them out according to this order i(1),i(2),…,i(L),r  L . The algorithm stops its
operation if the key sought is found (up to equivalence) or r tests are performed.
If the cipher key was chosen randomly and equiprobably from K, then the probability
|К |
of choosing a key from the class Kj is equal to j . Therefore, the average number
|К|
Tr tested in the implementation of the key algorithm is</p>
      <p>r-1 j |К j |  rL | К j |
Тr= j1 | К | jr | К |
,
and the reliability of the method is
When r = L we have
= r|К j|
j1 |К|
ТL= L j|К j|
j1 |К|
3. Only the capacities |К1|, |К2|,…,|КL| of the equivalent key classes are known.
Let’s conduct testing without returning the K keys until a true key is obtained, up
to equivalence.</p>
      <p>If the cipher key was chosen randomly and equiprobably from K, then the probability
of choosing the key  from the class Kjis equal to
|К |</p>
      <p>j . Let’s denote by T (j) the
|К|
average number of tests of the algorithm, provided that the key sought is Кj. Then
|К|1
and the total average number of algorithm tests is
Т(j)=</p>
      <p>|К j |1</p>
      <p>L
Т=  Т(j)
j1
|К j|=|К|1 L |К j|
|К| |К| j1|К j |1</p>
      <p>The reliability method is =1.</p>
      <p>Let’s note that if in this method testing is carried out with return, then the average
number of tests of the algorithm will be equal to
L |К||К j |
j1|К j||К|</p>
      <p> L .
1  Т </p>
      <p>K 1
,
Consequently, under the conditions of the third problem, always T &lt;L.
Obviously,
2
in this case, the lower bound is attained at L = 1, | Kj | = | K |, and the upper one at L
= | K |, | Kj | = 1.</p>
      <p>If the estimated capacities ratings of equivalent key classes are
then</p>
      <p>cj|Кj|Cj , j 1, L ,
|К|1 L с</p>
      <p>
|К| j1 с j  1
j Т
|К|1 L Сj
|К| j1 С j  1
4. The number L of classes of equivalent keys is known. Carrying out the method of
paragraph 3, for the complexity of the method, we obtain the estimate T &lt;L.
5</p>
      <p>Discussion
Let’s draw attention to the fact that the methods outlined were based on the
equivalence of keys with respect to a given xX (“weak equivalence of keys”). Usually, the
exact estimation of capacities of such equivalence classes is difficult, and therefore,
the equivalence of keys with respect to the whole set X is used. In this case, it is easy
to obtain lower bounds for the capacities of the classes of weak equivalences we used.
The direct use of the capacities of the classes of equivalent keys with respect to the
whole set X in methods 1–4 allows to estimate upper bounds of performances of the
above methods of “weak equivalences”.</p>
      <p>The second circumstance to which attention should be paid is that in a number of
cases other key equivalences can be used in a similar way. For example, using the
mode of generating one-time keys with the help of a markant (special cipher mode for
obtaining one-time keys from a long-term key).
6</p>
      <p>Methods of using equivalent keys and the birthday paradox
Let the number L of classes of equivalent keys of the used cipher be known, all the
classes having equally capacities and the number k of ciphered texts being used
randomly and equally probably selected keys χ1, χ2, ..., χk.</p>
      <p>In various tasks of cryptographic practice, the solution of the following problems is of
interest.
1. what is the largest k, at which the probability that all the keys χ1, χ2, ..., χk pairs are
not equivalent is less than the given probability P.
2. what is the minimum k for the average number of equivalent key pairs from the set
χ1, χ2, ..., χk greater than 1.</p>
      <p>
        The birthday paradox [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ] is connected with the answer to the question: how many
people should be in the room so that with high probability there are two born on the
same day? The paradox is that the answer is significantly less than the number of days
in a year, which seems implausible. So, we consider that keys are people, and the
number L of classes of equivalent keys is the number of possible dates of birth. We
believe that in the year 365 = L days and that the birthdays of k people are chosen
randomly and independently from each other.
      </p>
      <p>We first estimate the probability that all the birthdays of the selected k people (k  L)
will be different. Let the birthday of the first is already chosen. Then the birthday of
the second coincides with it with a probability of 1/L. With selected (and different)
birthdays of the first and second person, the probability that the third birthd ay will
coincide with one of the existing ones will have 2 / L, and so on. As a result, the
probability Pk that k people will have different birthdays has Рk=(1-1/L)(1-2/L)…(1-(k
1/L)).</p>
      <p>The factors Pk can be increased using a known inequality 1+х≤ех:</p>
      <p>Рk≤е-1/Lе-2/L… е-(k-1)/L=e-(1+2+3+…+(k-1))/L=e-k(k-1)/2L.</p>
      <p>With increasing k, the probability Pkdecreases. For which k is this probability
strictly less than a given P? Let’s solve inequality</p>
      <p>e-k(k-1)/2L&lt;P.</p>
    </sec>
    <sec id="sec-2">
      <title>We have</title>
      <p>-k (k -1)/2L&lt;lnP, -k 2+k&lt; 2LlnP, k 2-k &gt;2Lln(1/P),
k 2-k +1/4&gt;2Lln(1/P)+ 1/4,
(k -(1/2))2&gt;2Lln(1/P)+ 1/4.</p>
      <p>Find k 0 in which (k 0-(1/2))2=2Lln(1/P)+ 1/4. We have
k 0-(1/2)= (2Lln(1/P)+ 1/4)(1/2).</p>
    </sec>
    <sec id="sec-3">
      <title>Whence,</title>
      <p>k 0=(1/2) (1+(1+8Lln(1/P))1/2 .</p>
      <p>In this connection, when k is smaller than k 0, the probability Pk is less than the given
P. Therefore, when k is not less than k 0, the probability Pk is not less than the given P.
Assuming, for example, L = 365 (669) is the number of different birthdays, P = 0,5,
we find that for k  23 (k  31) the probability that among k people there will be two
born on one day no less than P = 0.5. In other words, if the cipher has 365 (669)
classes of equivalent keys and there is a set of k  23 (k  31) cipher telegrams, then
among them with a probability of at least 0.5 there will be a pair of cipher telegrams
encrypted on equivalent keys.</p>
      <p>Let us turn to the solution of the second task. At what minimum k the average number
of equivalent key pairs of χ1, χ2, …, χkis greater than 1. For each key pair (i, j) from
the set {χ1, χ2, ..., χk}, let’s consider the random variable Xij</p>
      <p>Xij=1, if χi and χjare equivalent, otherwise Xij=0.</p>
      <p>Since the classes of equivalent keys of the used cipher have equal capacities and the
keys χ1, χ2, …, χkare chosen randomly and equiprobably, the probability of
equivalence of any key pair is 1/L. Therefore, the mathematical expectation М(Xij)of the
random value Xij (i≠j) is calculated by the formula</p>
      <p>М(Xij)=1∙1/L+0∙(1-1/L)= 1/L
The random value Y equal to the sum of all Xij (in all Ck2  k(k 1) ) has a
mathemat2
ical expectation equal to the sum of all М(Xij)</p>
      <p>М(Y)= 1  k(k 1) .</p>
    </sec>
    <sec id="sec-4">
      <title>Let’s find the value k0 from equality</title>
      <p>2
L
2
L
1  ko (k0 1) =1.</p>
      <p>1 1 8L
This value is</p>
      <p>2
pairs of equivalent keys will be no less than 1. So if L=365, (669), then with k≥28
(k≥38) the expected number of pairs of equivalent keys is not less than
(28∙27)/ 2∙365=1.0356.</p>
      <p> 2L . Consequently, when k ≥k0, the average value of
7</p>
      <p>Conclusion
1. The concept of weak key equivalence in the C. Shannon cipher model is
introduced. A method is proposed for decrypting both symmetric and asymmetric ciphers
using the weak key equivalence parameters and calculating performances and
reliabilities.
2. The proposed method can be used to determine the initial states of pseudo -random
generators from known input and output sequences.
3. Due to the lack of proof of the absence of weakly equivalent keys, many ciphers
have a successful chance of practical application of the above described method of
decoding.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Panasenko</surname>
            <given-names>S.P.</given-names>
          </string-name>
          <article-title>Encryption algorithms</article-title>
          .
          <source>Special reference book BHV-Petersburg</source>
          ,
          <year>2009</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2. 2Schneier Bruce,
          <string-name>
            <given-names>Ferguson</given-names>
            <surname>Nils</surname>
          </string-name>
          . Practical cryptography, (
          <year>2005</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Schneier</surname>
            <given-names>B. Applied</given-names>
          </string-name>
          <string-name>
            <surname>Cryptography</surname>
          </string-name>
          . Protocols, Algorithms, and Source Code in 2nd ed. N.Y.: Wiley, (
          <year>1996</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <source>GOST 28147-89. Information processing systems</source>
          . Cryptographic protection.
          <article-title>Algorithm of cryptographic transformation. M .: State Standard of the USSR</article-title>
          , (
          <year>1989</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Adams</surname>
            <given-names>C.</given-names>
          </string-name>
          RFC 2144:
          <string-name>
            <surname>The</surname>
            <given-names>CAST</given-names>
          </string-name>
          - 128 Encryption Algorithm // Entrust Technologies, (May
          <year>1997</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Adams</surname>
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gilchrist</surname>
            <given-names>J</given-names>
          </string-name>
          / RFC 2612:
          <string-name>
            <surname>The</surname>
            <given-names>CAST</given-names>
          </string-name>
          -256 Encryption Algorithm // Entrust Technologies, June (
          <year>1999</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <given-names>Advanced</given-names>
            <surname>Encryption Standart (AES). Questions</surname>
          </string-name>
          and Answers // http // csrc.nist.
          <source>gov - January</source>
          <volume>28</volume>
          , (
          <year>2002</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8. AES Round 1 Inforation //http:csrc.
          <source>nist.gov - January</source>
          <volume>26</volume>
          ,(
          <year>2001</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Biham</surname>
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Dunkelman</surname>
            <given-names>O.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ketller</surname>
            <given-names>N. Rectangle</given-names>
          </string-name>
          <article-title>Attacks on the 49th Round SHACAL-</article-title>
          1 //http: //vipe.technion,ac.il - Technion, Haifa, Israel.
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Biham</surname>
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Biryukov</surname>
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Dunkelman</surname>
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <given-names>RichardsonE.</given-names>
            ,
            <surname>Shamir</surname>
          </string-name>
          <string-name>
            <given-names>A</given-names>
            . Observations on Skipjack: cryptanalysis of Skipjack
            <surname>-</surname>
            3XOR // http://www.cs.technion.ac.il - Technion -
          </string-name>
          (
          <year>1998</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <given-names>T.</given-names>
            <surname>Cormen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Lazerson</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Rivest</surname>
          </string-name>
          .
          <article-title>Algorithms and analysis</article-title>
          . M .,
          <string-name>
            <surname>M CNM O</surname>
          </string-name>
          , (
          <year>2002</year>
          ).
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>