SlideShare a Scribd company logo
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 04 Issue: 10 | Oct -2017 www.irjet.net p-ISSN: 2395-0072
© 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 365
An efficient design for Data Encryption and Decryption using
Reconfigurable Reversible Logic Gates
Patancheru Jyothi1, B. Kalpana2
1Student, Master of Technology, Dept. of Electronics and communication Engineering, Mallareddy College of
Engineering (Autonomous), Telangana, India.
2Assistant Professor, Dept. of Electronics and communication Engineering,
Mallareddy College of Engineering (Autonomous), Telangana, India
---------------------------------------------------------------------***------------------------------------------------------------------
Abstract - The development in the field of nanometer
technology leads to minimize the power consumption of logic
circuits. The reversible logic design has been one of the
promising technologies gaining greater interest due to less
dissipation of heat and low power consumption. On the other
hand, energy dissipation in reversible logic gatescandecrease
to zero. Recently an approach to encryption based on using
reversible logic circuits is proposed. This paper presents a
solution for designing dataencryptionand decryptionschemes
based entirely on reconfigurable reversible logic. In our
solution, a building block of encryptionanddecryptionscheme
is a cascade of 4-input reversible gates. In this way, the
building block can perform any reversible 4-variablefunction.
For this purpose, a reconfigurable reversible logic gate has
been proposed. The design of such a reconfigurable reversible
gate is built from standard reversible gates, i.e., NOT, CNOT,
Fredkin and Toffoli gates. This paper presents a complete
scheme for data encryption and decryption of 9-bit data using
Verilog HDL language. Simulation and verification of this
scheme are obtained on Xilinx ISE 14.7.
Key Words: Encryption, Decryption, Reversible circuits,
Reconfigurable reversible gate, logic gates.
1. INTRODUCTION
The developing technologies have increased the demandfor
high-performance computing. According to G. Moore’s law,
some transistor counts to be integrated per unit area in
devices will almost double in one and half year. To
accomplish fast computation, high packaging density in the
logic circuits is required which brings about more heat
dissipation. The conventional computing is found unable to
deal with low power, high compaction and heat dissipation
issues of the current computing environment. Recently, it is
applied to cryptography. A reversible gate is a one-to-one
correspondence betweenits inputsandoutputs.Researchon
reversible logic circuitsismotivated byadvancesinquantum
computing, nanotechnology, and low-power design. As a
result, reversiblelogic synthesishasbeenintensivelystudied
recently.
The attention is focused on the synthesis of circuits built
from the NCT library of gates, i.e., NOT, CNOT and Toffoli
gates. Recent simulation tools based on FPGAs have enabled
modeling of such circuits. In the paper, we study an
application of reversible logic to developing encryption and
decryption circuits. The simple implementation of a cipher
using reversible logic circuits was the aim of this work. Each
gate used in a cascade of reversible gates is determined by
the main key. By choosing different main keys, different
cascades and different substitution, data encryption and
decryption are determined. For this purpose, a
reconfigurable reversible logic gate has been proposed.
Results of Xilinx ISE based simulation of a simple data
encryption and decryption circuitsbuiltfromreconfigurable
reversible logic gates are also presented in the paper.
1.1. Reversible Definitions
Let us recall basic notions of reversible logic gates and
circuits.
Definition-1: A completely determined n-input and n-
output Boolean function (referred to as n*n function) are
reversible if it maps each input value to a unique output
value.
For n*n Boolean functions, there are 2n! Reversible logics.
For n = 3 this number equals to 40,320, for n = 4 is greater
than 2Â1013.
Definition-2: An n-input,n-output(n*n)gate(orcircuit)is
reversible if it realizes an n*n reversible function. In a
reversible logic circuit fan out always equal to 1. As a result,
n*n reversible circuits can be built only as a cascade of k*k
reversible gates (k ≤ n).
Definition-3: A set of reversible gates which can be used
to build reversible circuits is called a gate library.
The so-called NCT library for n ≤four consists of 1*1 NOT,
2*2 CNOT and 3*3 and 4*4 TOFFOLI gates.
Definitions of mixed polarity generalizations of these gates
as well as 3*3 Fredkin gate are given below.
Definition-4: Let ai ∈ {0, 1} for i = 1, 2, 3, 4, and let x'
denotes negation of x.
1*1 NOT gate (x1) performs the operation
(x1) - (x1 ⊕ 1),
2*2 CNOT (x1, x2) gate performs the operation
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 04 Issue: 10 | Oct -2017 www.irjet.net p-ISSN: 2395-0072
© 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 366
(x1, x2) - (x1, (x1 ⊕ a1) ⊕ x2),
3*3 TOFFOLI(x1, x2, x3) gate performs the operation
(x1, x2, x3) - (x1, x2, (x1 ⊕ a1)
(x2 ⊕ a2) ⊕ x3),
4*4 TOFFOLI4(x1, x2, x3, x4) gate performs the operation
(x1, x2, x3, x4) - (x1, x2, x3, (x1 ⊕ a1)(x2 ⊕ a2)
(x3 ⊕ a3) ⊕ x4),
3*3 FREDKIN(x1, x2, x3) gate performs the operation
(x1, x2, x3) - (x1, x1' x2 + x1 x3, x1 x2 + x1' x3).
The above defined i*i gates, where i = 1, 2, 3, 4, (also,
denoted by N, C, T, T4 and F, respectively) invert input xi, if
and only if the values of inputs x1, x2, ..., xi-1 differ from
corresponding a1, a2, ..., ai-1 coefficients, passes these
inputs that are unchanged to corresponding outputs.
Control lines are the signals which are passed unchanged
from input to output of the gate.
Target is the signal ‘xi’ which can be modified by the gate. In
the Fredkin gate, x1 is the control line. When its input signal
is 0 then the signals x2 and x3 are passed to outputs
unchanged, and when it’s input signal isonethenthesignals
x2 and x3 are swapped.
If all a1, a2..., ai coefficients equals zero, that gate has
positive-polarity control lines. On the other hand, if all a1,
a2..., ai coefficients equals one, thegatehasnegativepolarity
control lines. These names are obtained after expandingthe
expressions for the functions realized by the gate.
Positive polarity means that all inputs which correspond to
control lines directly affect the target line.Negative-polarity
means that the target line is affected only if the values of
control lines are equal to 0. The term mixed-polaritycontrol
lines are used, if all values of the coefficients a1, a2, ..., ai
allowed to be either 0 or 1. Pictorial symbols of the above
defined positive-polarity gates are shown in Figure 1, and
the pictorial symbol of Fredkin gate is shown in Figure. 2.
Figure 1: The Graphical representations of reversible
gates N3, C3-1 and T3-210.
Figure 2: The Graphical representation of Fredkin gate
F10-2.
In the description of a gate from NCT library, e.g., T3-210
(see Figure 1), the first number appearing after the gates
name (in this case: T) denotes the target line (3) while the
numbers are appearing after the hyphen denote control
lines (2, 1, 0).
In the description of a Fredkin gate, e.g, F10-2, the first two
numbers appearing after the gates describes name
(in this example: F) denote controlled (swapping) lines (1
and 0) while the number appearing after the hyphen
denotes control line (2).
The number of positive-polarity gates belonging to NCT
library which can appear in 4-line circuits is 32 (4 NOT
gates, 12 CNOT gates, 4 T4 gates and 12 Toffoli gates).
2. RRG IMPLEMENTATION
Reconfigurable reversible gate replaces oneof32gatesfrom
the NCT library in the cipher. This iswhy,besidesfourinputs
transferring information data, there have to be five lines for
choosing one of 32 types of gates.
Figure 3: The General scheme of Reconfigurable
Reversible Gate (RRG).
At the present state-of-the-art of reversiblelogicsynthesis,it
is not possible to optimally synthesize 9-input reversible
gate. After considering many variants of gates RRG the
circuit is shown in Figure 3. It has been constructed with the
relatively small quantum cost equal to 79.
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 04 Issue: 10 | Oct -2017 www.irjet.net p-ISSN: 2395-0072
© 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 367
The RRG built from basic reversible gates isshowninFigure
4.
Figure 4: Reconfigurable Reversible Gate (RRG).
The first three Fredkin gates B0, B1 and B2 select the input
signal which will be modified by the 4- Input Toffoli gate B6.
The next three 3-input Toffoli gates B3, B4 and B5 feed
control signals for the gate B6 that are selected, by the given
configuration either input or constant signals.
Thus, the functioning of the gate B6 is determined by signals
K. Gates B7, B8 and B9 reconstruct constant signals, while
gates B10, B11 and B12 fix the order of outputsignalsY3,Y2,
Y1, and Y0.
For simulation of a reversible gate, a procedure B_FREDKIN
and B_NCT date from NCT library have been constructed in
VHDL and shown in Tables I and II.
2.1 PROCEDURE B_FREDKIN
In the procedure B_NCT signals C1, C2 and C3 determine the
number of lines to which control inputs of Toffoli gate are
attached while the number of controlled lines is determined
by signal C0.
Binary signals N1, N2, and N3, determine the polarization of
the control signal Ci. Value N1 = 1 indicates that the signal is
a negative control signal.
2.2 PROCEDURE B_NCT
The above-presented procedures were used for describing
the gate RRG as shown below.
KX(0):=(KEY(0)&KEY(1)&KEY(2)&KEY(3)&KEY(4)&"111"&
DIN(0)&DIN(1)&DIN(2)& DIN(3));
B_FREDKIN (KX (0), 0, 10, 11, KX (1));
B_FREDKIN (KX (1), 0, 8, 9, KX(2));
B_FREDKIN (KX (2), 1, 9, 11, KX (3));
B_NCT (KX (3), 2,'0', 8, '1', 12,'0', 5, KX (4));
B_NCT (KX (4), 3, '0', 9, '1', 12,'0', 6, KX (5));
B_NCT (KX (5), 4, '0', 10, '1', 12,'0', 7, KX (6));
B_NCT (KX (6), 5, '0', 6, '0', 7,'0', 11, KX (7));
B_NCT (KX (7), 4, '0', 10,'1', 12,'0', 7, KX (8));
B_NCT (KX (8), 3, '0', 9,'1', 12,'0', 6, KX (9));
B_NCT (KX (9), 2,’0’, 8 ,'1' , 12 , '0' , 5 ,KX(10));
B_FREDKIN (KX (10), 1, 9, 11, KX (11));
B_FREDKIN (KX (11), 0, 8, 9, KX (12));
B_FREDKIN (KX (12), 0, 10, 11, KX (13));
12-bit word KX is the state of line just before or just after
gate and is transferred from i-th to (i+1) th gate.
Procedure B_FREDKIN
(X: in std_logic_vector; -- input line
C: in integer; -- number of control line
L1: in integer; -- number of first line
L2: in integer; -- number of second line
Y: out std_logic_vector) -- output line
begin
If X(C) =’0’ then Y=X;
Else Y=X; Y (L1):= X (L2);
Y (L2):= X (L1);
Procedure B_NCT
(X: in std_logic_vector ; -- input line
C1: in integer; -- control line
N1: in std_logic; -- negative control line
C2: in integer; -- control line
N2: in std_logic; -- negative control line C2
C3: in integer; -- control line
N3: in std_logic; -- negative control line C3
C0: in integer; -- control line output
Y: out std_logic_vector) – output line
begin
If C1=12 then Y: =X; Y (C0): not X (C0);
elsif C2=12 then Y:=X;
Y (C0) :=((X(C1) xor N1) xor X(C0)
elsif C3=12 then Y:=X;
Y (C0) :=(( X (C1) xor N1)
and (X(C2) xor N2) xor X(C0);
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 04 Issue: 10 | Oct -2017 www.irjet.net p-ISSN: 2395-0072
© 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 368
3. DESIGN OF ENCRYPTION BY RRG GATE
The general idea of a cipher built from reversible gates was
presented Figure 5.
The basic element of the cipher is a cascade of 16 4-input
reversible gates. The same main key is used for data
encryption and decryption. The order of gatesinthecascade
for decryption is reversed in comparison with the cascade
for encryption that ensures that it transforms cipher-text
into plaintext.
Figure 5: The General idea of a cipher for encryption and
decryption
It has been proved that optimal circuits for any of the 16!
(Equal to over 2x1013) require at most 15 4-input gates.
Thus the circuit shown in Figure 6 enables the realization of
any 4-variable reversible function. The circuit has K which
denotes 80 inputs that are partitioned into groups with five
inputs in each of them.
A 5-line group K [(5*(i+1) – 1):5*i] is used to configure with
RRG gate. All inputs K are transferred to outputs so they can
be reused for controlling the next gate.
There are 4 data inputs X [3:0] and three lines with constant
inputs (equal to 1) and equivalent outputs.
A detailed description of the main key register, as well asthe
circuit modifying its contents, during encryption and
decryption, are presented in following figures.
Figure 6: The cascade of reversible gates implementing the
4-bit cipher.
4. SYNTHESIS AND SIMULATION RESULTS
For encryption and decryption, a 5-bit key, two 4-bitciphers
and the main key, a register was used. In this section, first,
we will see the synthesis and simulation of the Encryption
and Decryption using a reconfigurable reversible gate.
Encryption and Decryption using reconfigurable reversible
gates are designed on Xilinx ISE 14.7 with Verilog HDL. The
RTL schematics and simulation results of the proposed
design are shown below.
Figure 7: RTL Schematic of Proposed Reconfigurable
Reversible Encryption
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 04 Issue: 10 | Oct -2017 www.irjet.net p-ISSN: 2395-0072
© 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 369
Figure 8: Internal RTL Schematic of Proposed
Reconfigurable Reversible Encryption
Figure 9: Technology Schematic of Proposed
reconfigurable reversible Encryption and Decryption
Figure 10: Simulation of Proposed Reconfigurable
Reversible Encryption
Figure 11: RTL Schematic of Proposed Reconfigurable
Reversible Decryption
Figure 12: Internal RTL Schematic of Proposed Reversible
Decryption
Figure 13: Technology Schematic of Proposed
Reconfigurable Reversible Decryption
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 04 Issue: 10 | Oct -2017 www.irjet.net p-ISSN: 2395-0072
© 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 370
Figure 14: Simulation of Proposed Reconfigurable
Reversible Decryption
5. CONCLUSION
Firstly, we have coded Verilog code for the reconfigurable
reversible data encryption and decryption, and all the
synthesis and simulation results are implemented on Xilinx
ISE 14.7. The main aim of this paper is a design of simple
reconfigurable reversible gate (RRG) which enables
implementation of any of the 32 4-input reversible gates
from the NCT library. An application of this gate is to
implement ciphers for encryptionanddecryptionintheform
of binary data. Results of data encryption and decryption
simulation of the cipher built from reversible gates are also
presented.
REFERENCES
[1] A. De Vos, Reversible Computing. Fundamentals,
Quantum Computing, and Applications, 2010.
[2] H. Thapliyal and M. Zwolinski,: “Reversible logic to
cryptographic hardware” Proc. 49th International Midwest
Conference on Circuits and Systems,2006.
[3] N. M. Nayeem, L. Jamal, and H. M. H. Babu, “Efficiently
reversible multiplier and its application to hardware
cryptography,” Journal of Computer Science, 2009.
[4] Y. Zhang, Z. Guan, and Z. Nie, “Function modulardesign of
DES encryption system based on reversible logic gates,”
Proc. International Conference on Multimedia
Communications, 2010.
[5] A. Banerjee, “Reversible cryptographic hardware with
optimized quantum cost and delay,” Proc. Annual IEEEIndia
Conference, pp. 1- 4, 2010.
Ad

Recommended

Optimized study of one bit comparator using reversible
Optimized study of one bit comparator using reversible
eSAT Publishing House
 
Optimized study of one bit comparator using reversible logic gates
Optimized study of one bit comparator using reversible logic gates
eSAT Journals
 
International Journal of Engineering and Science Invention (IJESI)
International Journal of Engineering and Science Invention (IJESI)
inventionjournals
 
International Journal of Computational Engineering Research(IJCER)
International Journal of Computational Engineering Research(IJCER)
ijceronline
 
Design and Synthesis of Multiplexer based Universal Shift Register using Reve...
Design and Synthesis of Multiplexer based Universal Shift Register using Reve...
IOSRJVSP
 
C046051216
C046051216
IJERA Editor
 
Logic Fe Tcom
Logic Fe Tcom
Mukesh Mishra
 
Low Power Implementation of Booth’s Multiplier using Reversible Gates
Low Power Implementation of Booth’s Multiplier using Reversible Gates
IJMTST Journal
 
SCOPE OF REVERSIBLE ENGINEERING AT GATE-LEVEL: FAULT-TOLERANT COMBINATIONAL A...
SCOPE OF REVERSIBLE ENGINEERING AT GATE-LEVEL: FAULT-TOLERANT COMBINATIONAL A...
VLSICS Design
 
C0421013019
C0421013019
ijceronline
 
Reversible logic gate
Reversible logic gate
Debraj Maji
 
Design of Multiplexers, Decoder and a Full Subtractor using Reversible Gates
Design of Multiplexers, Decoder and a Full Subtractor using Reversible Gates
IJLT EMAS
 
Multiplier and Accumulator Using Csla
Multiplier and Accumulator Using Csla
IOSR Journals
 
Design and Implementation of High Speed Area Efficient Double Precision Float...
Design and Implementation of High Speed Area Efficient Double Precision Float...
IOSR Journals
 
Research Paper
Research Paper
Anjali S Babu
 
Lcdf4 chap 03_p2
Lcdf4 chap 03_p2
ozgur_can
 
Digital Logic & Design (DLD) presentation
Digital Logic & Design (DLD) presentation
foyez ahammad
 
International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)
IJERD Editor
 
Combinational logic With Multiplexers and Decoders
Combinational logic With Multiplexers and Decoders
Harsh Parmar
 
Combinational circuit
Combinational circuit
saravana kumaar
 
Partial generation of 2n length walsh codes using n-bit gray and inverse gray c
Partial generation of 2n length walsh codes using n-bit gray and inverse gray c
IAEME Publication
 
Combinational logic circuits by Tahir Yasin
Combinational logic circuits by Tahir Yasin
TAHIR YASIN
 
Digital Logic circuit
Digital Logic circuit
kavitha muneeshwaran
 
15-bit NOVEL Hamming Codec using HSPICE 22nm CMOS Technology based on GDI Tec...
15-bit NOVEL Hamming Codec using HSPICE 22nm CMOS Technology based on GDI Tec...
theijes
 
An FPGA Based Floating Point Arithmetic Unit Using Verilog
An FPGA Based Floating Point Arithmetic Unit Using Verilog
IJMTST Journal
 
Computer Organization And Architecture lab manual
Computer Organization And Architecture lab manual
Nitesh Dubey
 
1570285065
1570285065
Chiranjeevi Shilam
 
Ieee project reversible logic gates by_amit
Ieee project reversible logic gates by_amit
Amith Bhonsle
 
Design of Reversible Sequential Circuit Using Reversible Logic Synthesis
Design of Reversible Sequential Circuit Using Reversible Logic Synthesis
VLSICS Design
 
An Area Efficient and High Speed Reversible Multiplier Using NS Gate
An Area Efficient and High Speed Reversible Multiplier Using NS Gate
IJERA Editor
 

More Related Content

What's hot (20)

SCOPE OF REVERSIBLE ENGINEERING AT GATE-LEVEL: FAULT-TOLERANT COMBINATIONAL A...
SCOPE OF REVERSIBLE ENGINEERING AT GATE-LEVEL: FAULT-TOLERANT COMBINATIONAL A...
VLSICS Design
 
C0421013019
C0421013019
ijceronline
 
Reversible logic gate
Reversible logic gate
Debraj Maji
 
Design of Multiplexers, Decoder and a Full Subtractor using Reversible Gates
Design of Multiplexers, Decoder and a Full Subtractor using Reversible Gates
IJLT EMAS
 
Multiplier and Accumulator Using Csla
Multiplier and Accumulator Using Csla
IOSR Journals
 
Design and Implementation of High Speed Area Efficient Double Precision Float...
Design and Implementation of High Speed Area Efficient Double Precision Float...
IOSR Journals
 
Research Paper
Research Paper
Anjali S Babu
 
Lcdf4 chap 03_p2
Lcdf4 chap 03_p2
ozgur_can
 
Digital Logic & Design (DLD) presentation
Digital Logic & Design (DLD) presentation
foyez ahammad
 
International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)
IJERD Editor
 
Combinational logic With Multiplexers and Decoders
Combinational logic With Multiplexers and Decoders
Harsh Parmar
 
Combinational circuit
Combinational circuit
saravana kumaar
 
Partial generation of 2n length walsh codes using n-bit gray and inverse gray c
Partial generation of 2n length walsh codes using n-bit gray and inverse gray c
IAEME Publication
 
Combinational logic circuits by Tahir Yasin
Combinational logic circuits by Tahir Yasin
TAHIR YASIN
 
Digital Logic circuit
Digital Logic circuit
kavitha muneeshwaran
 
15-bit NOVEL Hamming Codec using HSPICE 22nm CMOS Technology based on GDI Tec...
15-bit NOVEL Hamming Codec using HSPICE 22nm CMOS Technology based on GDI Tec...
theijes
 
An FPGA Based Floating Point Arithmetic Unit Using Verilog
An FPGA Based Floating Point Arithmetic Unit Using Verilog
IJMTST Journal
 
Computer Organization And Architecture lab manual
Computer Organization And Architecture lab manual
Nitesh Dubey
 
1570285065
1570285065
Chiranjeevi Shilam
 
Ieee project reversible logic gates by_amit
Ieee project reversible logic gates by_amit
Amith Bhonsle
 
SCOPE OF REVERSIBLE ENGINEERING AT GATE-LEVEL: FAULT-TOLERANT COMBINATIONAL A...
SCOPE OF REVERSIBLE ENGINEERING AT GATE-LEVEL: FAULT-TOLERANT COMBINATIONAL A...
VLSICS Design
 
Reversible logic gate
Reversible logic gate
Debraj Maji
 
Design of Multiplexers, Decoder and a Full Subtractor using Reversible Gates
Design of Multiplexers, Decoder and a Full Subtractor using Reversible Gates
IJLT EMAS
 
Multiplier and Accumulator Using Csla
Multiplier and Accumulator Using Csla
IOSR Journals
 
Design and Implementation of High Speed Area Efficient Double Precision Float...
Design and Implementation of High Speed Area Efficient Double Precision Float...
IOSR Journals
 
Lcdf4 chap 03_p2
Lcdf4 chap 03_p2
ozgur_can
 
Digital Logic & Design (DLD) presentation
Digital Logic & Design (DLD) presentation
foyez ahammad
 
International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)
IJERD Editor
 
Combinational logic With Multiplexers and Decoders
Combinational logic With Multiplexers and Decoders
Harsh Parmar
 
Partial generation of 2n length walsh codes using n-bit gray and inverse gray c
Partial generation of 2n length walsh codes using n-bit gray and inverse gray c
IAEME Publication
 
Combinational logic circuits by Tahir Yasin
Combinational logic circuits by Tahir Yasin
TAHIR YASIN
 
15-bit NOVEL Hamming Codec using HSPICE 22nm CMOS Technology based on GDI Tec...
15-bit NOVEL Hamming Codec using HSPICE 22nm CMOS Technology based on GDI Tec...
theijes
 
An FPGA Based Floating Point Arithmetic Unit Using Verilog
An FPGA Based Floating Point Arithmetic Unit Using Verilog
IJMTST Journal
 
Computer Organization And Architecture lab manual
Computer Organization And Architecture lab manual
Nitesh Dubey
 
Ieee project reversible logic gates by_amit
Ieee project reversible logic gates by_amit
Amith Bhonsle
 

Similar to An Efficient Design for Data Encryption and Decryption using Reconfigurable Reversible Logic Gates (20)

Design of Reversible Sequential Circuit Using Reversible Logic Synthesis
Design of Reversible Sequential Circuit Using Reversible Logic Synthesis
VLSICS Design
 
An Area Efficient and High Speed Reversible Multiplier Using NS Gate
An Area Efficient and High Speed Reversible Multiplier Using NS Gate
IJERA Editor
 
Efficient Design of Reversible Multiplexers with Low Quantum Cost
Efficient Design of Reversible Multiplexers with Low Quantum Cost
IJERA Editor
 
Design of Reversible Sequential Circuit Using Reversible Logic Synthesis
Design of Reversible Sequential Circuit Using Reversible Logic Synthesis
VLSICS Design
 
A low power adder using reversible logic gates
A low power adder using reversible logic gates
eSAT Journals
 
A low power adder using reversible logic gates
A low power adder using reversible logic gates
eSAT Publishing House
 
Delay Optimization of Low Power Reversible Gate using MOS Transistor Level de...
Delay Optimization of Low Power Reversible Gate using MOS Transistor Level de...
IJERA Editor
 
Design of 4:16 decoder using reversible logic gates
Design of 4:16 decoder using reversible logic gates
IJERA Editor
 
Bk044382388
Bk044382388
IJERA Editor
 
An Extensive Literature Review on Reversible Arithmetic and Logical Unit
An Extensive Literature Review on Reversible Arithmetic and Logical Unit
IRJET Journal
 
Review On 2:4 Decoder By Reversible Logic Gates For Low Power Consumption
Review On 2:4 Decoder By Reversible Logic Gates For Low Power Consumption
IRJET Journal
 
S4102152159
S4102152159
IJERA Editor
 
Performance Analysis of Reversible 16 Bit ALU based on Novel Programmable Rev...
Performance Analysis of Reversible 16 Bit ALU based on Novel Programmable Rev...
IRJET Journal
 
Reversible code converter
Reversible code converter
Rakesh kumar jha
 
High Speed Time Efficient Reversible ALU Based Logic Gate Structure on Vertex...
High Speed Time Efficient Reversible ALU Based Logic Gate Structure on Vertex...
IJERD Editor
 
A Novel Design of a 4 Bit Reversible ALU using Kogge-Stone Adder
A Novel Design of a 4 Bit Reversible ALU using Kogge-Stone Adder
ijtsrd
 
OPTIMIZED MULTIPLIER USING REVERSIBLE MULTICONTROL INPUT TOFFOLI GATES
OPTIMIZED MULTIPLIER USING REVERSIBLE MULTICONTROL INPUT TOFFOLI GATES
VLSICS Design
 
Efficient Design of Reversible Sequential Circuit
Efficient Design of Reversible Sequential Circuit
IOSR Journals
 
Power and Delay Analysis of Logic Circuits Using Reversible Gates
Power and Delay Analysis of Logic Circuits Using Reversible Gates
RSIS International
 
IRJET- Design and Implementation of Combinational Circuits using Reversible G...
IRJET- Design and Implementation of Combinational Circuits using Reversible G...
IRJET Journal
 
Design of Reversible Sequential Circuit Using Reversible Logic Synthesis
Design of Reversible Sequential Circuit Using Reversible Logic Synthesis
VLSICS Design
 
An Area Efficient and High Speed Reversible Multiplier Using NS Gate
An Area Efficient and High Speed Reversible Multiplier Using NS Gate
IJERA Editor
 
Efficient Design of Reversible Multiplexers with Low Quantum Cost
Efficient Design of Reversible Multiplexers with Low Quantum Cost
IJERA Editor
 
Design of Reversible Sequential Circuit Using Reversible Logic Synthesis
Design of Reversible Sequential Circuit Using Reversible Logic Synthesis
VLSICS Design
 
A low power adder using reversible logic gates
A low power adder using reversible logic gates
eSAT Journals
 
A low power adder using reversible logic gates
A low power adder using reversible logic gates
eSAT Publishing House
 
Delay Optimization of Low Power Reversible Gate using MOS Transistor Level de...
Delay Optimization of Low Power Reversible Gate using MOS Transistor Level de...
IJERA Editor
 
Design of 4:16 decoder using reversible logic gates
Design of 4:16 decoder using reversible logic gates
IJERA Editor
 
An Extensive Literature Review on Reversible Arithmetic and Logical Unit
An Extensive Literature Review on Reversible Arithmetic and Logical Unit
IRJET Journal
 
Review On 2:4 Decoder By Reversible Logic Gates For Low Power Consumption
Review On 2:4 Decoder By Reversible Logic Gates For Low Power Consumption
IRJET Journal
 
Performance Analysis of Reversible 16 Bit ALU based on Novel Programmable Rev...
Performance Analysis of Reversible 16 Bit ALU based on Novel Programmable Rev...
IRJET Journal
 
High Speed Time Efficient Reversible ALU Based Logic Gate Structure on Vertex...
High Speed Time Efficient Reversible ALU Based Logic Gate Structure on Vertex...
IJERD Editor
 
A Novel Design of a 4 Bit Reversible ALU using Kogge-Stone Adder
A Novel Design of a 4 Bit Reversible ALU using Kogge-Stone Adder
ijtsrd
 
OPTIMIZED MULTIPLIER USING REVERSIBLE MULTICONTROL INPUT TOFFOLI GATES
OPTIMIZED MULTIPLIER USING REVERSIBLE MULTICONTROL INPUT TOFFOLI GATES
VLSICS Design
 
Efficient Design of Reversible Sequential Circuit
Efficient Design of Reversible Sequential Circuit
IOSR Journals
 
Power and Delay Analysis of Logic Circuits Using Reversible Gates
Power and Delay Analysis of Logic Circuits Using Reversible Gates
RSIS International
 
IRJET- Design and Implementation of Combinational Circuits using Reversible G...
IRJET- Design and Implementation of Combinational Circuits using Reversible G...
IRJET Journal
 
Ad

More from IRJET Journal (20)

Enhanced heart disease prediction using SKNDGR ensemble Machine Learning Model
Enhanced heart disease prediction using SKNDGR ensemble Machine Learning Model
IRJET Journal
 
Utilizing Biomedical Waste for Sustainable Brick Manufacturing: A Novel Appro...
Utilizing Biomedical Waste for Sustainable Brick Manufacturing: A Novel Appro...
IRJET Journal
 
Kiona – A Smart Society Automation Project
Kiona – A Smart Society Automation Project
IRJET Journal
 
DESIGN AND DEVELOPMENT OF BATTERY THERMAL MANAGEMENT SYSTEM USING PHASE CHANG...
DESIGN AND DEVELOPMENT OF BATTERY THERMAL MANAGEMENT SYSTEM USING PHASE CHANG...
IRJET Journal
 
Invest in Innovation: Empowering Ideas through Blockchain Based Crowdfunding
Invest in Innovation: Empowering Ideas through Blockchain Based Crowdfunding
IRJET Journal
 
SPACE WATCH YOUR REAL-TIME SPACE INFORMATION HUB
SPACE WATCH YOUR REAL-TIME SPACE INFORMATION HUB
IRJET Journal
 
A Review on Influence of Fluid Viscous Damper on The Behaviour of Multi-store...
A Review on Influence of Fluid Viscous Damper on The Behaviour of Multi-store...
IRJET Journal
 
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
IRJET Journal
 
Explainable AI(XAI) using LIME and Disease Detection in Mango Leaf by Transfe...
Explainable AI(XAI) using LIME and Disease Detection in Mango Leaf by Transfe...
IRJET Journal
 
BRAIN TUMOUR DETECTION AND CLASSIFICATION
BRAIN TUMOUR DETECTION AND CLASSIFICATION
IRJET Journal
 
The Project Manager as an ambassador of the contract. The case of NEC4 ECC co...
The Project Manager as an ambassador of the contract. The case of NEC4 ECC co...
IRJET Journal
 
"Enhanced Heat Transfer Performance in Shell and Tube Heat Exchangers: A CFD ...
"Enhanced Heat Transfer Performance in Shell and Tube Heat Exchangers: A CFD ...
IRJET Journal
 
Advancements in CFD Analysis of Shell and Tube Heat Exchangers with Nanofluid...
Advancements in CFD Analysis of Shell and Tube Heat Exchangers with Nanofluid...
IRJET Journal
 
Breast Cancer Detection using Computer Vision
Breast Cancer Detection using Computer Vision
IRJET Journal
 
Auto-Charging E-Vehicle with its battery Management.
Auto-Charging E-Vehicle with its battery Management.
IRJET Journal
 
Analysis of high energy charge particle in the Heliosphere
Analysis of high energy charge particle in the Heliosphere
IRJET Journal
 
A Novel System for Recommending Agricultural Crops Using Machine Learning App...
A Novel System for Recommending Agricultural Crops Using Machine Learning App...
IRJET Journal
 
Auto-Charging E-Vehicle with its battery Management.
Auto-Charging E-Vehicle with its battery Management.
IRJET Journal
 
Analysis of high energy charge particle in the Heliosphere
Analysis of high energy charge particle in the Heliosphere
IRJET Journal
 
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
IRJET Journal
 
Enhanced heart disease prediction using SKNDGR ensemble Machine Learning Model
Enhanced heart disease prediction using SKNDGR ensemble Machine Learning Model
IRJET Journal
 
Utilizing Biomedical Waste for Sustainable Brick Manufacturing: A Novel Appro...
Utilizing Biomedical Waste for Sustainable Brick Manufacturing: A Novel Appro...
IRJET Journal
 
Kiona – A Smart Society Automation Project
Kiona – A Smart Society Automation Project
IRJET Journal
 
DESIGN AND DEVELOPMENT OF BATTERY THERMAL MANAGEMENT SYSTEM USING PHASE CHANG...
DESIGN AND DEVELOPMENT OF BATTERY THERMAL MANAGEMENT SYSTEM USING PHASE CHANG...
IRJET Journal
 
Invest in Innovation: Empowering Ideas through Blockchain Based Crowdfunding
Invest in Innovation: Empowering Ideas through Blockchain Based Crowdfunding
IRJET Journal
 
SPACE WATCH YOUR REAL-TIME SPACE INFORMATION HUB
SPACE WATCH YOUR REAL-TIME SPACE INFORMATION HUB
IRJET Journal
 
A Review on Influence of Fluid Viscous Damper on The Behaviour of Multi-store...
A Review on Influence of Fluid Viscous Damper on The Behaviour of Multi-store...
IRJET Journal
 
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
IRJET Journal
 
Explainable AI(XAI) using LIME and Disease Detection in Mango Leaf by Transfe...
Explainable AI(XAI) using LIME and Disease Detection in Mango Leaf by Transfe...
IRJET Journal
 
BRAIN TUMOUR DETECTION AND CLASSIFICATION
BRAIN TUMOUR DETECTION AND CLASSIFICATION
IRJET Journal
 
The Project Manager as an ambassador of the contract. The case of NEC4 ECC co...
The Project Manager as an ambassador of the contract. The case of NEC4 ECC co...
IRJET Journal
 
"Enhanced Heat Transfer Performance in Shell and Tube Heat Exchangers: A CFD ...
"Enhanced Heat Transfer Performance in Shell and Tube Heat Exchangers: A CFD ...
IRJET Journal
 
Advancements in CFD Analysis of Shell and Tube Heat Exchangers with Nanofluid...
Advancements in CFD Analysis of Shell and Tube Heat Exchangers with Nanofluid...
IRJET Journal
 
Breast Cancer Detection using Computer Vision
Breast Cancer Detection using Computer Vision
IRJET Journal
 
Auto-Charging E-Vehicle with its battery Management.
Auto-Charging E-Vehicle with its battery Management.
IRJET Journal
 
Analysis of high energy charge particle in the Heliosphere
Analysis of high energy charge particle in the Heliosphere
IRJET Journal
 
A Novel System for Recommending Agricultural Crops Using Machine Learning App...
A Novel System for Recommending Agricultural Crops Using Machine Learning App...
IRJET Journal
 
Auto-Charging E-Vehicle with its battery Management.
Auto-Charging E-Vehicle with its battery Management.
IRJET Journal
 
Analysis of high energy charge particle in the Heliosphere
Analysis of high energy charge particle in the Heliosphere
IRJET Journal
 
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
IRJET Journal
 
Ad

Recently uploaded (20)

362 Alec Data Center Solutions-Slysium Data Center-AUH-Adaptaflex.pdf
362 Alec Data Center Solutions-Slysium Data Center-AUH-Adaptaflex.pdf
djiceramil
 
Rigor, ethics, wellbeing and resilience in the ICT doctoral journey
Rigor, ethics, wellbeing and resilience in the ICT doctoral journey
Yannis
 
machine learning is a advance technology
machine learning is a advance technology
ynancy893
 
Modern multi-proposer consensus implementations
Modern multi-proposer consensus implementations
François Garillot
 
Industry 4.o the fourth revolutionWeek-2.pptx
Industry 4.o the fourth revolutionWeek-2.pptx
KNaveenKumarECE
 
IPL_Logic_Flow.pdf Mainframe IPLMainframe IPL
IPL_Logic_Flow.pdf Mainframe IPLMainframe IPL
KhadijaKhadijaAouadi
 
60 Years and Beyond eBook 1234567891.pdf
60 Years and Beyond eBook 1234567891.pdf
waseemalazzeh
 
Structural Design for Residential-to-Restaurant Conversion
Structural Design for Residential-to-Restaurant Conversion
DanielRoman285499
 
Pavement and its types, Application of rigid and Flexible Pavements
Pavement and its types, Application of rigid and Flexible Pavements
Sakthivel M
 
Fundamentals of Digital Design_Class_21st May - Copy.pptx
Fundamentals of Digital Design_Class_21st May - Copy.pptx
drdebarshi1993
 
IntroSlides-June-GDG-Cloud-Munich community [email protected]
IntroSlides-June-GDG-Cloud-Munich community [email protected]
Luiz Carneiro
 
David Boutry - Mentors Junior Developers
David Boutry - Mentors Junior Developers
David Boutry
 
Center Enamel can Provide Aluminum Dome Roofs for diesel tank.docx
Center Enamel can Provide Aluminum Dome Roofs for diesel tank.docx
CenterEnamel
 
Impurities of Water and their Significance.pptx
Impurities of Water and their Significance.pptx
dhanashree78
 
ElysiumPro Company Profile 2025-2026.pdf
ElysiumPro Company Profile 2025-2026.pdf
info751436
 
OCS Group SG - HPHT Well Design and Operation - SN.pdf
OCS Group SG - HPHT Well Design and Operation - SN.pdf
Muanisa Waras
 
WIRELESS COMMUNICATION SECURITY AND IT’S PROTECTION METHODS
WIRELESS COMMUNICATION SECURITY AND IT’S PROTECTION METHODS
samueljackson3773
 
Development of Portable Biomass Briquetting Machine (S, A & D)-1.pptx
Development of Portable Biomass Briquetting Machine (S, A & D)-1.pptx
aniket862935
 
Engineering Mechanics Introduction and its Application
Engineering Mechanics Introduction and its Application
Sakthivel M
 
Introduction to Natural Language Processing - Stages in NLP Pipeline, Challen...
Introduction to Natural Language Processing - Stages in NLP Pipeline, Challen...
resming1
 
362 Alec Data Center Solutions-Slysium Data Center-AUH-Adaptaflex.pdf
362 Alec Data Center Solutions-Slysium Data Center-AUH-Adaptaflex.pdf
djiceramil
 
Rigor, ethics, wellbeing and resilience in the ICT doctoral journey
Rigor, ethics, wellbeing and resilience in the ICT doctoral journey
Yannis
 
machine learning is a advance technology
machine learning is a advance technology
ynancy893
 
Modern multi-proposer consensus implementations
Modern multi-proposer consensus implementations
François Garillot
 
Industry 4.o the fourth revolutionWeek-2.pptx
Industry 4.o the fourth revolutionWeek-2.pptx
KNaveenKumarECE
 
IPL_Logic_Flow.pdf Mainframe IPLMainframe IPL
IPL_Logic_Flow.pdf Mainframe IPLMainframe IPL
KhadijaKhadijaAouadi
 
60 Years and Beyond eBook 1234567891.pdf
60 Years and Beyond eBook 1234567891.pdf
waseemalazzeh
 
Structural Design for Residential-to-Restaurant Conversion
Structural Design for Residential-to-Restaurant Conversion
DanielRoman285499
 
Pavement and its types, Application of rigid and Flexible Pavements
Pavement and its types, Application of rigid and Flexible Pavements
Sakthivel M
 
Fundamentals of Digital Design_Class_21st May - Copy.pptx
Fundamentals of Digital Design_Class_21st May - Copy.pptx
drdebarshi1993
 
David Boutry - Mentors Junior Developers
David Boutry - Mentors Junior Developers
David Boutry
 
Center Enamel can Provide Aluminum Dome Roofs for diesel tank.docx
Center Enamel can Provide Aluminum Dome Roofs for diesel tank.docx
CenterEnamel
 
Impurities of Water and their Significance.pptx
Impurities of Water and their Significance.pptx
dhanashree78
 
ElysiumPro Company Profile 2025-2026.pdf
ElysiumPro Company Profile 2025-2026.pdf
info751436
 
OCS Group SG - HPHT Well Design and Operation - SN.pdf
OCS Group SG - HPHT Well Design and Operation - SN.pdf
Muanisa Waras
 
WIRELESS COMMUNICATION SECURITY AND IT’S PROTECTION METHODS
WIRELESS COMMUNICATION SECURITY AND IT’S PROTECTION METHODS
samueljackson3773
 
Development of Portable Biomass Briquetting Machine (S, A & D)-1.pptx
Development of Portable Biomass Briquetting Machine (S, A & D)-1.pptx
aniket862935
 
Engineering Mechanics Introduction and its Application
Engineering Mechanics Introduction and its Application
Sakthivel M
 
Introduction to Natural Language Processing - Stages in NLP Pipeline, Challen...
Introduction to Natural Language Processing - Stages in NLP Pipeline, Challen...
resming1
 

An Efficient Design for Data Encryption and Decryption using Reconfigurable Reversible Logic Gates

  • 1. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 04 Issue: 10 | Oct -2017 www.irjet.net p-ISSN: 2395-0072 © 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 365 An efficient design for Data Encryption and Decryption using Reconfigurable Reversible Logic Gates Patancheru Jyothi1, B. Kalpana2 1Student, Master of Technology, Dept. of Electronics and communication Engineering, Mallareddy College of Engineering (Autonomous), Telangana, India. 2Assistant Professor, Dept. of Electronics and communication Engineering, Mallareddy College of Engineering (Autonomous), Telangana, India ---------------------------------------------------------------------***------------------------------------------------------------------ Abstract - The development in the field of nanometer technology leads to minimize the power consumption of logic circuits. The reversible logic design has been one of the promising technologies gaining greater interest due to less dissipation of heat and low power consumption. On the other hand, energy dissipation in reversible logic gatescandecrease to zero. Recently an approach to encryption based on using reversible logic circuits is proposed. This paper presents a solution for designing dataencryptionand decryptionschemes based entirely on reconfigurable reversible logic. In our solution, a building block of encryptionanddecryptionscheme is a cascade of 4-input reversible gates. In this way, the building block can perform any reversible 4-variablefunction. For this purpose, a reconfigurable reversible logic gate has been proposed. The design of such a reconfigurable reversible gate is built from standard reversible gates, i.e., NOT, CNOT, Fredkin and Toffoli gates. This paper presents a complete scheme for data encryption and decryption of 9-bit data using Verilog HDL language. Simulation and verification of this scheme are obtained on Xilinx ISE 14.7. Key Words: Encryption, Decryption, Reversible circuits, Reconfigurable reversible gate, logic gates. 1. INTRODUCTION The developing technologies have increased the demandfor high-performance computing. According to G. Moore’s law, some transistor counts to be integrated per unit area in devices will almost double in one and half year. To accomplish fast computation, high packaging density in the logic circuits is required which brings about more heat dissipation. The conventional computing is found unable to deal with low power, high compaction and heat dissipation issues of the current computing environment. Recently, it is applied to cryptography. A reversible gate is a one-to-one correspondence betweenits inputsandoutputs.Researchon reversible logic circuitsismotivated byadvancesinquantum computing, nanotechnology, and low-power design. As a result, reversiblelogic synthesishasbeenintensivelystudied recently. The attention is focused on the synthesis of circuits built from the NCT library of gates, i.e., NOT, CNOT and Toffoli gates. Recent simulation tools based on FPGAs have enabled modeling of such circuits. In the paper, we study an application of reversible logic to developing encryption and decryption circuits. The simple implementation of a cipher using reversible logic circuits was the aim of this work. Each gate used in a cascade of reversible gates is determined by the main key. By choosing different main keys, different cascades and different substitution, data encryption and decryption are determined. For this purpose, a reconfigurable reversible logic gate has been proposed. Results of Xilinx ISE based simulation of a simple data encryption and decryption circuitsbuiltfromreconfigurable reversible logic gates are also presented in the paper. 1.1. Reversible Definitions Let us recall basic notions of reversible logic gates and circuits. Definition-1: A completely determined n-input and n- output Boolean function (referred to as n*n function) are reversible if it maps each input value to a unique output value. For n*n Boolean functions, there are 2n! Reversible logics. For n = 3 this number equals to 40,320, for n = 4 is greater than 2Â1013. Definition-2: An n-input,n-output(n*n)gate(orcircuit)is reversible if it realizes an n*n reversible function. In a reversible logic circuit fan out always equal to 1. As a result, n*n reversible circuits can be built only as a cascade of k*k reversible gates (k ≤ n). Definition-3: A set of reversible gates which can be used to build reversible circuits is called a gate library. The so-called NCT library for n ≤four consists of 1*1 NOT, 2*2 CNOT and 3*3 and 4*4 TOFFOLI gates. Definitions of mixed polarity generalizations of these gates as well as 3*3 Fredkin gate are given below. Definition-4: Let ai ∈ {0, 1} for i = 1, 2, 3, 4, and let x' denotes negation of x. 1*1 NOT gate (x1) performs the operation (x1) - (x1 ⊕ 1), 2*2 CNOT (x1, x2) gate performs the operation
  • 2. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 04 Issue: 10 | Oct -2017 www.irjet.net p-ISSN: 2395-0072 © 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 366 (x1, x2) - (x1, (x1 ⊕ a1) ⊕ x2), 3*3 TOFFOLI(x1, x2, x3) gate performs the operation (x1, x2, x3) - (x1, x2, (x1 ⊕ a1) (x2 ⊕ a2) ⊕ x3), 4*4 TOFFOLI4(x1, x2, x3, x4) gate performs the operation (x1, x2, x3, x4) - (x1, x2, x3, (x1 ⊕ a1)(x2 ⊕ a2) (x3 ⊕ a3) ⊕ x4), 3*3 FREDKIN(x1, x2, x3) gate performs the operation (x1, x2, x3) - (x1, x1' x2 + x1 x3, x1 x2 + x1' x3). The above defined i*i gates, where i = 1, 2, 3, 4, (also, denoted by N, C, T, T4 and F, respectively) invert input xi, if and only if the values of inputs x1, x2, ..., xi-1 differ from corresponding a1, a2, ..., ai-1 coefficients, passes these inputs that are unchanged to corresponding outputs. Control lines are the signals which are passed unchanged from input to output of the gate. Target is the signal ‘xi’ which can be modified by the gate. In the Fredkin gate, x1 is the control line. When its input signal is 0 then the signals x2 and x3 are passed to outputs unchanged, and when it’s input signal isonethenthesignals x2 and x3 are swapped. If all a1, a2..., ai coefficients equals zero, that gate has positive-polarity control lines. On the other hand, if all a1, a2..., ai coefficients equals one, thegatehasnegativepolarity control lines. These names are obtained after expandingthe expressions for the functions realized by the gate. Positive polarity means that all inputs which correspond to control lines directly affect the target line.Negative-polarity means that the target line is affected only if the values of control lines are equal to 0. The term mixed-polaritycontrol lines are used, if all values of the coefficients a1, a2, ..., ai allowed to be either 0 or 1. Pictorial symbols of the above defined positive-polarity gates are shown in Figure 1, and the pictorial symbol of Fredkin gate is shown in Figure. 2. Figure 1: The Graphical representations of reversible gates N3, C3-1 and T3-210. Figure 2: The Graphical representation of Fredkin gate F10-2. In the description of a gate from NCT library, e.g., T3-210 (see Figure 1), the first number appearing after the gates name (in this case: T) denotes the target line (3) while the numbers are appearing after the hyphen denote control lines (2, 1, 0). In the description of a Fredkin gate, e.g, F10-2, the first two numbers appearing after the gates describes name (in this example: F) denote controlled (swapping) lines (1 and 0) while the number appearing after the hyphen denotes control line (2). The number of positive-polarity gates belonging to NCT library which can appear in 4-line circuits is 32 (4 NOT gates, 12 CNOT gates, 4 T4 gates and 12 Toffoli gates). 2. RRG IMPLEMENTATION Reconfigurable reversible gate replaces oneof32gatesfrom the NCT library in the cipher. This iswhy,besidesfourinputs transferring information data, there have to be five lines for choosing one of 32 types of gates. Figure 3: The General scheme of Reconfigurable Reversible Gate (RRG). At the present state-of-the-art of reversiblelogicsynthesis,it is not possible to optimally synthesize 9-input reversible gate. After considering many variants of gates RRG the circuit is shown in Figure 3. It has been constructed with the relatively small quantum cost equal to 79.
  • 3. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 04 Issue: 10 | Oct -2017 www.irjet.net p-ISSN: 2395-0072 © 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 367 The RRG built from basic reversible gates isshowninFigure 4. Figure 4: Reconfigurable Reversible Gate (RRG). The first three Fredkin gates B0, B1 and B2 select the input signal which will be modified by the 4- Input Toffoli gate B6. The next three 3-input Toffoli gates B3, B4 and B5 feed control signals for the gate B6 that are selected, by the given configuration either input or constant signals. Thus, the functioning of the gate B6 is determined by signals K. Gates B7, B8 and B9 reconstruct constant signals, while gates B10, B11 and B12 fix the order of outputsignalsY3,Y2, Y1, and Y0. For simulation of a reversible gate, a procedure B_FREDKIN and B_NCT date from NCT library have been constructed in VHDL and shown in Tables I and II. 2.1 PROCEDURE B_FREDKIN In the procedure B_NCT signals C1, C2 and C3 determine the number of lines to which control inputs of Toffoli gate are attached while the number of controlled lines is determined by signal C0. Binary signals N1, N2, and N3, determine the polarization of the control signal Ci. Value N1 = 1 indicates that the signal is a negative control signal. 2.2 PROCEDURE B_NCT The above-presented procedures were used for describing the gate RRG as shown below. KX(0):=(KEY(0)&KEY(1)&KEY(2)&KEY(3)&KEY(4)&"111"& DIN(0)&DIN(1)&DIN(2)& DIN(3)); B_FREDKIN (KX (0), 0, 10, 11, KX (1)); B_FREDKIN (KX (1), 0, 8, 9, KX(2)); B_FREDKIN (KX (2), 1, 9, 11, KX (3)); B_NCT (KX (3), 2,'0', 8, '1', 12,'0', 5, KX (4)); B_NCT (KX (4), 3, '0', 9, '1', 12,'0', 6, KX (5)); B_NCT (KX (5), 4, '0', 10, '1', 12,'0', 7, KX (6)); B_NCT (KX (6), 5, '0', 6, '0', 7,'0', 11, KX (7)); B_NCT (KX (7), 4, '0', 10,'1', 12,'0', 7, KX (8)); B_NCT (KX (8), 3, '0', 9,'1', 12,'0', 6, KX (9)); B_NCT (KX (9), 2,’0’, 8 ,'1' , 12 , '0' , 5 ,KX(10)); B_FREDKIN (KX (10), 1, 9, 11, KX (11)); B_FREDKIN (KX (11), 0, 8, 9, KX (12)); B_FREDKIN (KX (12), 0, 10, 11, KX (13)); 12-bit word KX is the state of line just before or just after gate and is transferred from i-th to (i+1) th gate. Procedure B_FREDKIN (X: in std_logic_vector; -- input line C: in integer; -- number of control line L1: in integer; -- number of first line L2: in integer; -- number of second line Y: out std_logic_vector) -- output line begin If X(C) =’0’ then Y=X; Else Y=X; Y (L1):= X (L2); Y (L2):= X (L1); Procedure B_NCT (X: in std_logic_vector ; -- input line C1: in integer; -- control line N1: in std_logic; -- negative control line C2: in integer; -- control line N2: in std_logic; -- negative control line C2 C3: in integer; -- control line N3: in std_logic; -- negative control line C3 C0: in integer; -- control line output Y: out std_logic_vector) – output line begin If C1=12 then Y: =X; Y (C0): not X (C0); elsif C2=12 then Y:=X; Y (C0) :=((X(C1) xor N1) xor X(C0) elsif C3=12 then Y:=X; Y (C0) :=(( X (C1) xor N1) and (X(C2) xor N2) xor X(C0);
  • 4. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 04 Issue: 10 | Oct -2017 www.irjet.net p-ISSN: 2395-0072 © 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 368 3. DESIGN OF ENCRYPTION BY RRG GATE The general idea of a cipher built from reversible gates was presented Figure 5. The basic element of the cipher is a cascade of 16 4-input reversible gates. The same main key is used for data encryption and decryption. The order of gatesinthecascade for decryption is reversed in comparison with the cascade for encryption that ensures that it transforms cipher-text into plaintext. Figure 5: The General idea of a cipher for encryption and decryption It has been proved that optimal circuits for any of the 16! (Equal to over 2x1013) require at most 15 4-input gates. Thus the circuit shown in Figure 6 enables the realization of any 4-variable reversible function. The circuit has K which denotes 80 inputs that are partitioned into groups with five inputs in each of them. A 5-line group K [(5*(i+1) – 1):5*i] is used to configure with RRG gate. All inputs K are transferred to outputs so they can be reused for controlling the next gate. There are 4 data inputs X [3:0] and three lines with constant inputs (equal to 1) and equivalent outputs. A detailed description of the main key register, as well asthe circuit modifying its contents, during encryption and decryption, are presented in following figures. Figure 6: The cascade of reversible gates implementing the 4-bit cipher. 4. SYNTHESIS AND SIMULATION RESULTS For encryption and decryption, a 5-bit key, two 4-bitciphers and the main key, a register was used. In this section, first, we will see the synthesis and simulation of the Encryption and Decryption using a reconfigurable reversible gate. Encryption and Decryption using reconfigurable reversible gates are designed on Xilinx ISE 14.7 with Verilog HDL. The RTL schematics and simulation results of the proposed design are shown below. Figure 7: RTL Schematic of Proposed Reconfigurable Reversible Encryption
  • 5. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 04 Issue: 10 | Oct -2017 www.irjet.net p-ISSN: 2395-0072 © 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 369 Figure 8: Internal RTL Schematic of Proposed Reconfigurable Reversible Encryption Figure 9: Technology Schematic of Proposed reconfigurable reversible Encryption and Decryption Figure 10: Simulation of Proposed Reconfigurable Reversible Encryption Figure 11: RTL Schematic of Proposed Reconfigurable Reversible Decryption Figure 12: Internal RTL Schematic of Proposed Reversible Decryption Figure 13: Technology Schematic of Proposed Reconfigurable Reversible Decryption
  • 6. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 04 Issue: 10 | Oct -2017 www.irjet.net p-ISSN: 2395-0072 © 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 370 Figure 14: Simulation of Proposed Reconfigurable Reversible Decryption 5. CONCLUSION Firstly, we have coded Verilog code for the reconfigurable reversible data encryption and decryption, and all the synthesis and simulation results are implemented on Xilinx ISE 14.7. The main aim of this paper is a design of simple reconfigurable reversible gate (RRG) which enables implementation of any of the 32 4-input reversible gates from the NCT library. An application of this gate is to implement ciphers for encryptionanddecryptionintheform of binary data. Results of data encryption and decryption simulation of the cipher built from reversible gates are also presented. REFERENCES [1] A. De Vos, Reversible Computing. Fundamentals, Quantum Computing, and Applications, 2010. [2] H. Thapliyal and M. Zwolinski,: “Reversible logic to cryptographic hardware” Proc. 49th International Midwest Conference on Circuits and Systems,2006. [3] N. M. Nayeem, L. Jamal, and H. M. H. Babu, “Efficiently reversible multiplier and its application to hardware cryptography,” Journal of Computer Science, 2009. [4] Y. Zhang, Z. Guan, and Z. Nie, “Function modulardesign of DES encryption system based on reversible logic gates,” Proc. International Conference on Multimedia Communications, 2010. [5] A. Banerjee, “Reversible cryptographic hardware with optimized quantum cost and delay,” Proc. Annual IEEEIndia Conference, pp. 1- 4, 2010.