<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.2 20120330//EN"
        "http://jats.nlm.nih.gov/publishing/1.2/JATS-journalpublishing1.dtd">
<!--<?xml-stylesheet type="text/xsl" href="article.xsl"?>-->
<article article-type="research-article" dtd-version="1.2" xml:lang="en" xmlns:mml="http://www.w3.org/1998/Math/MathML"
         xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <front>
        <journal-meta>
            <journal-id journal-id-type="issn">2303-9868</journal-id>
            <journal-id journal-id-type="eissn">2227-6017</journal-id>
            <journal-title-group>
                <journal-title>International Research Journal</journal-title>
            </journal-title-group>
            <issn pub-type="epub">2303-9868</issn>
            <publisher>
                <publisher-name>Cifra LLC</publisher-name>
            </publisher>
        </journal-meta>
        <article-meta>
            <article-id pub-id-type="doi">10.60797/IRJ.2024.150.121</article-id>
            <article-categories>
                <subj-group>
                    <subject>Brief communication</subject>
                </subj-group>
            </article-categories>
            <title-group>
                <article-title>Development of control schemes for basic cryptographic transformation operations performed by a programmable logic integrated circuit
                </article-title>
            </title-group>
            <contrib-group>
                <contrib contrib-type="author" corresp="yes">
                    <contrib-id contrib-id-type="orcid">https://orcid.org/0009-0009-4472-6042</contrib-id>
                    <name>
                        <surname>Lukin</surname>
                        <given-names>Maksim Vladimirovich</given-names>
                    </name>
                    <email>maxim@vishnin.ru</email>
                    <xref ref-type="aff" rid="aff-1">1</xref>

                </contrib>
            </contrib-group>
            <aff id="aff-1"><label>1</label>Central Research Institute of the Air Force (Ministry of Defense of the Russian Federation)</aff>
            
        <pub-date publication-format="electronic" date-type="pub" iso-8601-date="2024-12-17">
            <day>17</day>
            <month>12</month>
            <year>2024</year>
        </pub-date>
        
            
        <pub-date pub-type="collection">
            <year>2024</year>
        </pub-date>
        
            <volume>7</volume>
            <issue>150</issue>
            <fpage>1</fpage>
            <lpage>7</lpage>
            <history>
                
        <date date-type="received" iso-8601-date="2023-07-07">
            <day>07</day>
            <month>07</month>
            <year>2023</year>
        </date>
        
                
        <date date-type="accepted" iso-8601-date="2023-11-22">
            <day>22</day>
            <month>11</month>
            <year>2023</year>
        </date>
        
            </history>
            <permissions>
                <copyright-statement>Copyright: &#x00A9; 2022 The Author(s)</copyright-statement>
                <copyright-year>2022</copyright-year>
                <license license-type="open-access" xlink:href="http://creativecommons.org/licenses/by/4.0/">
                    <license-p>This is an open-access article distributed under the terms of the Creative Commons
                        Attribution 4.0 International License (CC-BY 4.0), which permits unrestricted use, distribution,
                        and reproduction in any medium, provided the original author and source are credited. See <uri
                                xlink:href="http://creativecommons.org/licenses/by/4.0/">
                            http://creativecommons.org/licenses/by/4.0/</uri>.
                    </license-p>
                </license>
            </permissions>
            <self-uri xlink:href="https://research-journal.org/archive/12-150-2024-december/10.60797/IRJ.2024.150.121"/>
            <abstract>
                <p>This article discusses the procedure for developing control schemes for the basic operations of cryptographic transformation of information performed by a programmable logic integrated circuit that is part of the control system of an autonomous technical means. The purpose of the research is to analyze the basic logical operations used by various algorithms for cryptographic transformation of information, as well as to develop a mathematical apparatus for monitoring the correctness of these operations. The control of the execution of logical operations is carried out inside a programmable logic integrated circuit in parallel with the main algorithm of cryptographic transformation of information. In the future, the developed control schemes can be used in the development of an algorithm for technical diagnostics of programmable logic integrated circuits with localization of the location and cause of the malfunction.</p>
            </abstract>
            <kwd-group>
                <kwd>technical control</kwd>
<kwd> programmable logic integrated circuit</kwd>
<kwd> modular arithmetic</kwd>
<kwd> cryptographic transformation of information</kwd>
<kwd> technical diagnostics</kwd>
<kwd> autonomous technical tool</kwd>
</kwd-group>
        </article-meta>
    </front>
    <body> 
        
 
        
<sec>
	<title>HTML-content</title>
	<p>1. Introduction</p>
	<p>Cryptographic transformation of information (hereinafter referred to as KPI) is the process of changing information that depends on the parameter being changed, and has the property that it is impossible to restore the original information from the transformed one, without knowing the current key, with a labor intensity less than the specified one.</p>
	<p>Currently, KPI is implemented by software, hardware, and software-to-hardware tools. At the same time, in the case of even a minimal error of one bit, the information recovery process becomes impossible.</p>
	<p>Especially relevant is the problem of error occurrence during KPI on autonomous technical means (hereinafter referred to as PBX) that operate at a long distance from the technical operator and transmit cryptographically transformed information to the processing object via radio channels.</p>
	<p>In this regard, there is a need for autonomous monitoring of the implementation of KPI on the PBX in order to determine the error in advance and, if possible, eliminate the malfunction of the device that performs KPI.</p>
	<p>The main computing device that performs KPI is currently a programmable logic integrated circuit. This computing tool is the most versatile for implementing various KPI algorithms.</p>
	<p>The most cryptographic algorithms are based on four basic logical operations:</p>
	<p>– modulo 2 addition operation.</p>
	<p>– modulo 2^16 addition operation;</p>
	<p>– cyclic shift operation.</p>
	<p>– substitution operation.</p>
	<p>Control of these logical operations will allow you to most fully determine the technical condition of the FPGA performed by the KPI on the PBX.</p>
	<p>Consider numerical control of arithmetic operations modulo. The construction of control schemes is based on two theorems [1].</p>
	<p>Theorem 1. The sum of numbers is comparable modulo q with the sum of the residuals r of the same numbers, i.e. [2]</p>
	<code>[LATEX_FORMULA]\sum_{i=1}^n A_i=\sum_{i=1}^n r_{a i} \bmod q .[/LATEX_FORMULA]</code>
	<p>Theorem 2. The product of numbers is comparable modulo </p>
	<p>[2]</p>
	<code>[LATEX_FORMULA]\prod_{i=1}^n A_i=\prod_{i=1}^n r_{a i} \bmod q .[/LATEX_FORMULA]</code>
	<p> </p>
	<p>Let us consider control schemes for the following transformations: summation modulo 2, summation modulo 216, [3][4][5]</p>
	<p>2. Results and Discussion</p>
	<p>Development of an algorithm for controlling the modulo summation operation. The control scheme for adding numbers modulo 2 is shown in Fig. 1.</p>
	<fig id="F1">
		<label>Figure 1</label>
		<caption>
			<p>Control of the value of binary numbers modulo 2</p>
		</caption>
		<alt-text>Control of the value of binary numbers modulo 2</alt-text>
		<graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/media/images/2024-12-11/89c6bbb9-2ccb-4cf8-b338-36da3cd3c710.jpg"/>
	</fig>
	<p>The result of summing two numbers А1 and A2 is the number А3. In blocks B1 and B2, the residuals r1 and r2 numbers A1 and A2 before conversion, respectively. Then, in block S, the resulting residuals are summed up. Since the sum of the residuals can be greater than the modulus, then at the output of the adder, it is necessary to perform the operation of finding the remainder again using the conversion in block B3. As a result, the remainder rA3 obtained from the number A3 is compared with the sum of the remainder of the numbers А1 and A2 – [LATEX_FORMULA]r_{\Sigma}[/LATEX_FORMULA] in the comparison module (≡) with the formation of the &quot;norm&quot; sign (P) in the form of a logical unit and zero – otherwise. It should be noted that the P-value is an additional feature (parameter) of the subsystem functioning and diagnostics model, i.e. [LATEX_FORMULA]P \in \Omega_\zeta .[/LATEX_FORMULA]</p>
	<p>The functioning of the presented control scheme can be divided into several stages:</p>
	<p>1. At the initial stage, the numbers involved in the addition operation modulo 2 are obtained. After that, the remainder of the terms </p>
	<p>2. In the next step, we determine the remainder </p>
	<p>3. At the last stage, a report is generated about whether the summation is correct (output </p>
	<p>From a formal point of view, these stages can be represented as a set of the following maps </p>
	<p>[6]</p>
	<code>[LATEX_FORMULA]B_1: A_1 \rightarrow r_1,[/LATEX_FORMULA]</code>
	<p>where </p>
	<code>[LATEX_FORMULA]B_2: A_2 \rightarrow r_2,[/LATEX_FORMULA]</code>
	<p>where </p>
	<code>[LATEX_FORMULA]S: \sum_{i=1}^2 r_i \rightarrow s, s \in \mathrm{~S}[/LATEX_FORMULA]</code>
	<p>where </p>
	<code>[LATEX_FORMULA]B_3: S \rightarrow r_3,[/LATEX_FORMULA]</code>
	<p>where </p>
	<code>[LATEX_FORMULA]P: r_3 \vee r_4 \rightarrow p, p \in\{1,0\},[/LATEX_FORMULA]</code>
	<p>where </p>
	<p>When controlling addition modulo 2^16, the scheme is simplified, taking into account the fact that the remainder of two numbers is calculated in the transformation itself (Fig. 2).</p>
	<fig id="F2">
		<label>Figure 2</label>
		<caption>
			<p>Control of the position of binary numbers modulo 2^16</p>
		</caption>
		<alt-text>Control of the position of binary numbers modulo 2^16</alt-text>
		<graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/media/images/2024-12-11/327a609b-bc20-442f-86f1-27dbc5b2844a.jpg"/>
	</fig>
	<p>1. At the initial stage, the addition of numbers is performed. After that, the sum is compared with the number 2^16. If the value is exceeded, the difference is calculated [LATEX_FORMULA]S&amp;gt;2^{16} \Rightarrow S=S-2^{16} .[/LATEX_FORMULA]</p>
	<p>2. </p>
	<p>In the next step, we define the remainder ≡ </p>
	<p>3. At the last stage, a report is generated about whether the summation is correct (output </p>
	<p>Basic analytical relations </p>
	<p>[7]</p>
	<code>[LATEX_FORMULA]B_1: S \rightarrow r_1,[/LATEX_FORMULA]</code>
	<p>where B1 is an operator that characterizes getting the remainder r1 from a number S.</p>
	<code>[LATEX_FORMULA]P: r_1 \vee r_2 \rightarrow p, p \in\{1,0\},[/LATEX_FORMULA]</code>
	<p>where </p>
	<p>The control scheme  </p>
	<fig id="F3">
		<label>Figure 3</label>
		<caption>
			<p>Control scheme for the shift operation</p>
		</caption>
		<alt-text>Control scheme for the shift operation</alt-text>
		<graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/media/images/2024-12-11/a6d95b74-b78e-4d69-9aa9-e68fb2d7ae9a.jpg"/>
	</fig>
	<p>1. At the initial stage, the number is represented </p>
	<p>2. In the next step, the remainder of the numbers before and after the shift is compared.</p>
	<p>3. At the last stage, a report is generated about whether or not the number shift</p>
	<p>Basic analytical relations </p>
	<p>[8][9]</p>
	<code>[LATEX_FORMULA]\begin{aligned} &amp;amp; B_1: A_1 \rightarrow r_1 \\ &amp;amp; B_2: A_1 \rightarrow r_2 \end{aligned}[/LATEX_FORMULA]</code>
	<p>where </p>
	<code>[LATEX_FORMULA]\begin{aligned} &amp;amp; B_3: A_2 \rightarrow r_3 \\ &amp;amp; B_4: A_2 \rightarrow r_4 \end{aligned}[/LATEX_FORMULA]</code>
	<p>where </p>
	<p>Comparing numbers before and after the shift</p>
	<code>[LATEX_FORMULA]\begin{aligned} &amp;amp; r_1 \equiv r_4: P_2 \\ &amp;amp; r_2 \equiv r_3: P_1 \end{aligned}[/LATEX_FORMULA]</code>
	<p>where </p>
	<code>[LATEX_FORMULA]P: P_1 \vee P_2 \rightarrow p, p \in\{1,0\},[/LATEX_FORMULA]</code>
	<p>where </p>
	<p>The control scheme for substitution operations is shown in Figure 4.</p>
	<fig id="F4">
		<label>Figure 4</label>
		<caption>
			<p>Control scheme for the substitution operation</p>
		</caption>
		<alt-text>Control scheme for the substitution operation</alt-text>
		<graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/media/images/2024-12-11/0e63b12a-2c1a-4064-b06d-d80734edbfb4.jpg"/>
	</fig>
	<p>The functioning of the presented control scheme can be divided into several stages:</p>
	<p>1. At the initial stage, the division of the numbers A1 and A2 by the corresponding numbers is carried out, and the definition of the numbers [LATEX_FORMULA]A_1=\left\langle A_1^1, A_1^2\right\rangle[/LATEX_FORMULA] and [LATEX_FORMULA]A_2=\left\langle A_2^2, A_2^1\right\rangle[/LATEX_FORMULA].</p>
	<p>2. From the table of residuals </p>
	<p>3. The remainder ([LATEX_FORMULA]r_2^1[/LATEX_FORMULA] and [LATEX_FORMULA]r_2^2[/LATEX_FORMULA]) </p>
	<p>4. At the last stage, a report is generated about whether the substitution is correct or not (</p>
	<p>Basic analytical relations </p>
	<p>[10]</p>
	<code>[LATEX_FORMULA]B_3: A_2^1 \rightarrow r_2^1,[/LATEX_FORMULA]</code>
	<p>where B3 is an operator that characterizes getting the remainder [LATEX_FORMULA]r_2^1[/LATEX_FORMULA] from a number [LATEX_FORMULA]A_2^1[/LATEX_FORMULA].</p>
	<code>[LATEX_FORMULA]B_4: A_2^2 \rightarrow r_2^2[/LATEX_FORMULA]</code>
	<p>where B4 is an operator that characterizes getting the remainder [LATEX_FORMULA]r_2^2[/LATEX_FORMULA] from a number [LATEX_FORMULA]A_2^2[/LATEX_FORMULA].</p>
	<p>Comparing numbers before and after the shift</p>
	<code>[LATEX_FORMULA]\begin{aligned} &amp;amp; r_2^2 \equiv r^2: P_2 \\ &amp;amp; r_2^1 \equiv r^1: P_1 \end{aligned}[/LATEX_FORMULA]</code>
	<p>where P1, P2 are the results of comparing the residuals [LATEX_FORMULA]r_2^1[/LATEX_FORMULA] and [LATEX_FORMULA]r_2^2[/LATEX_FORMULA].</p>
	<code>[LATEX_FORMULA]P: P_1 \vee P_2 \rightarrow p, p \in\{1,0\},[/LATEX_FORMULA]</code>
	<p>where </p>
	<p>3. Conclusion</p>
	<p>Thus, we have developed control schemes for the main operations of cryptographic transformation, namely addition modulo 2,modulo 2 ^ 16, shift and substitution. Many additional parameters of the technical diagnostics process have been formed. It is necessary to make adjustments to the functioning model of the encoder, taking into account the process of its technical diagnostics, based on the obtained parameters.</p>
</sec>
        <sec sec-type="supplementary-material">
            <title>Additional File</title>
            <p>The additional file for this article can be found as follows:</p>
            <supplementary-material id="S1" xmlns:xlink="http://www.w3.org/1999/xlink"
                                    xlink:href="https://doi.org/10.5334/cpsy.78.s1">
                <!--[<inline-supplementary-material xlink:title="local_file" xlink:href="https://research-journal.org/media/articles/7680.docx">7680.docx</inline-supplementary-material>]-->
                <!--[<inline-supplementary-material xlink:title="local_file" xlink:href="https://research-journal.org/media/articles/7680.pdf">7680.pdf</inline-supplementary-material>]-->
                <label>Online Supplementary Material</label>
                <caption>
                    <p>Further description of analytic pipeline and patient demographic information. DOI:
                        <italic>
                            <uri>https://doi.org/10.60797/IRJ.2024.150.121</uri>
                        </italic>
                    </p>
                </caption>
            </supplementary-material>
        </sec>
    </body>
    <back>
        <ack>
            <title>Acknowledgements</title>
            <p>None</p>
        </ack>
        <sec>
            <title>Competing Interests</title>
            <p>None</p>
        </sec>
        <ref-list>
            <ref id="B1">
                    <label>1</label>
                    <mixed-citation publication-type="confproc">
                        Polikarpovskiy O.I. Ispol'zovaniye sistemy schisleniya ostatkov v kachestve matematicheskoy osnovy dlya programmno opredelyayemoy radiosvyazi [Using the Remainder System as a Mathematical Basis for Software-Defined Radio] / O.I. Polikarpovskiy, L.O. Kovtun, L.V. Karpova // Vestnik Natsional'nogo tekhnicheskogo universiteta Ukrainy. Seriya "Radiotekhnika". Sozdanie radioapparatury [Bulletin of the National Technical University of Ukraine. Series "Radio Engineering". Creation of Radio Equipment]. — 2019. — No. 76. — P. 21–28. DOI: 10.20535/RADAP.2019.76.21-28. [in Russian].
                    </mixed-citation>
                </ref><ref id="B2">
                    <label>2</label>
                    <mixed-citation publication-type="confproc">
                        Gladkov A.V. Modifikatsiya algorita obnaruzheniya i lokalizatsii oshibok v sisteme ostatkovykh klassov [Modification of the Error Detection and Localization Algorithm in the Remainder Class System] / A.V. Gladkov, V.A. Kuchukov, M.G. Babenko // Trudy Instituta sistemnogo programmirovaniya Rossiyskoy akademii nauk [Proceedings of the Institute of System Programming of the Russian Academy of Sciences]. — 2022. — No. 34. — P. 75–78. DOI: 10.15514/ISPRAS-2022-34(3)-6. [in Russian].
                    </mixed-citation>
                </ref><ref id="B3">
                    <label>3</label>
                    <mixed-citation publication-type="confproc">
                        Provornov I.A. Rol' i mesto priblizhennogo metoda vypolneniya nemodul'nykh operatsiy v sisteme ostatkovykh klassov [The Role and Place of the Approximate Method of Performing Non-Modular Operations in the Remainder Class System] / I.A. Provornov, E.A. Voloshin, E.M. Grinev // Tekhnologicheskoe razvitie nauki: tendentsii, problemy i perspektivy [Technological Development of Science: Trends, Problems, and Perspectives]. — 2018. — No. 1. — P. 50–52. [in Russian].
                    </mixed-citation>
                </ref><ref id="B4">
                    <label>4</label>
                    <mixed-citation publication-type="confproc">
                        Voloshin E.A. Bystroye teoretiko-chislovoe preobrazovaniye v sisteme ostatkovykh klassov [Fast Theoretical-Numerical Transformation in the Remainder Class System] / E.A. Voloshin, K.T. Tuncherov, M.V. Selivanova // Materialy 47-y Vserossiyskoy nauchno-tekhnicheskoy konferentsii molodykh uchenykh, aspirantov i studentov s mezhdunarodnym uchastiyem [Proceedings of the 47th All-Russian Scientific and Technical Conference of Young Scientists, Postgraduates, and Students with International Participation]. — 2020. — No. 1. — P. 716–718. [in Russian].
                    </mixed-citation>
                </ref><ref id="B5">
                    <label>5</label>
                    <mixed-citation publication-type="confproc">
                        Valuyeva M.V. Razrabotka apparatnoy realizatsii neyrosetevogo klassifikatora vizual'nykh obrazov s ispol'zovaniem vychisleniy v sisteme ostatkovykh klassov [Development of Hardware Implementation of a Neural Network Visual Image Classifier Using Computations in the Remainder Class System] / M.V. Valuyeva // Sbornik tezisov uchastnikov foruma "Nauka budushchego – nauka molodykh" [Proceedings of the Forum "Science of the Future – Science of the Young"]. — 2017. — No. 12(14). — P. 107–108. [in Russian].
                    </mixed-citation>
                </ref><ref id="B6">
                    <label>6</label>
                    <mixed-citation publication-type="confproc">
                        Kalita D.I. Primenenie sistemy ostatkovogo klassa v energosberegayushchikh prilozheniyakh tsifrovoy obrabotki signalov [Application of the Remainder Class System in Energy-Saving Applications of Digital Signal Processing] / D.I. Kalita, N.I. Chervyakov // Informatsionno-kommunikatsionnye tekhnologii v nauke, proizvodstve i obrazovanii [Information and Communication Technologies in Science, Industry, and Education]. — 2014. — No. 1. — P. 227–235. [in Russian].
                    </mixed-citation>
                </ref><ref id="B7">
                    <label>7</label>
                    <mixed-citation publication-type="confproc">
                        Malofey A.O. Matematicheskoye modelirovaniye parallel'nykh kanalov svyazi dlya peredachi dannykh v sisteme ostatkovykh klassov [Mathematical Modeling of Parallel Communication Channels for Data Transmission in the Remainder Class System] / A.O. Malofey, A.A. Smirnov // Matematicheskie metody i informatsionno-tekhnicheskie sredstva [Mathematical Methods and Information-Technical Means] : proceedings of the XIII All-Russian Scientific and Practical Conference. — 2017. — No. 1. — P. 165–169. [in Russian].
                    </mixed-citation>
                </ref><ref id="B8">
                    <label>8</label>
                    <mixed-citation publication-type="confproc">
                        Dzhurabaev A.E. Realizatsiya parallel'nykh vychisleniy s bol'shimi razryadnymi chislami na osnove sistemy ostatkovykh klassov [Implementation of Parallel Computations with Large Bit-Length Numbers Based on the Remainder Class System] / A.E. Dzhurabaev, M.A. Deryabin // Estestvennye nauki – osnova nastoyashchego i fundament budushchego [Natural Sciences – the Basis of the Present and the Foundation of the Future] : proceedings of the VII Annual Scientific and Practical Conference of the North-Caucasus Federal University "University Science for the Region". — 2019. — No. 1. — P. 16–18. [in Russian].
                    </mixed-citation>
                </ref><ref id="B9">
                    <label>9</label>
                    <mixed-citation publication-type="confproc">
                        Grankin V.V. Obzor metodov rasshireniya bazy sistemy ostatkovykh klassov [Overview of Methods for Expanding the Remainder Class System Base] / V.V. Grankin, M.S. Karamysheva // Novaya nauka: Teoreticheskiy i prakticheskiy vzglyad [New Science: Theoretical and Practical Perspective]. — 2016. — No. 1(2). — P. 120–122. [in Russian].
                    </mixed-citation>
                </ref><ref id="B10">
                    <label>10</label>
                    <mixed-citation publication-type="confproc">
                        Lyakhov P.A. Stokhasticheskiy kriptoanaliz sistemy razdeleniya sekretov v sisteme ostatkovykh klassov [Stochastic Cryptoanalysis of the Secret Sharing System in the Remainder Class System] / P.A. Lyakhov, V.I. Teplitskiy // Estestvennye nauki – osnova nastoyashchego i fundament budushchego [Natural Sciences – the Basis of the Present and the Foundation of the Future] : proceedings of the VI Annual Scientific and Practical Conference of the North-Caucasus Federal University "University Science for the Region". — 2018. — No. 1. — P. 35–38. [in Russian].
                    </mixed-citation>
                </ref>
        </ref-list>
    </back>
    <fundings>
        
    </fundings>
</article>