Professional Documents
Culture Documents
Performance Analysis of Maximum Length LFSR and BBS Method For Cryptographic Application
Performance Analysis of Maximum Length LFSR and BBS Method For Cryptographic Application
Key Key
Abstract- Today cryptography is an integral part of our
lives. PRNG's are used in modern cryptography. The
maximal length PN-sequence (m-sequence) is the best known
best-described PN-sequence whose length is equal to its
period. Various PN-codes can be generated using Linear
Feedback Shift Register (LFSR). The generator polynomial
Stream Stream
provides the necessary feedback taps for the LFSR circuit.
The implementation of the LFSR circuit with VLSI Cipher Cipher
technology makes it useful in low-power communication
system design. This paper presents the performance
comparison of 4 bit LFSR method with BBS and the reported
results show that LFSR is more suitable for cryptographic Plaintext Plaintext
application.
Cipher text
Index terms - Cryptography, Linear Feedback Shift
Register, and Low power VLSI. Figure 1 Fundamental of Cryptography
�-- - - �
cryptography. "./ J
11-2 0
Modular division is used to increase the periodicity. By The true random number generation using Mersenne
combining both LFSR and Modular Division circuit Twister algorithm has been presented [11]. In this paper,
throughput of the system is increased by 2"_1 times as design and implementation of a parallel implementation
has been done using FPGA, CPU and GPU. Resource
utilization is 128slices and 193 FFs for 32bit word length. polynomial must be 1's or O's. This is called the feedback
And also it has been reported that FPGA based polynomial or characteristic polynomial. For example, in 4
implementation can achieve 25x speed-up compared with bit LFSR if the taps are at the 4th and 3rd bits (as shown),
CPU and 9x with GPu. High performance mersenne then the feedback polynomial is
twister [12] reported that the fast generation of very high X4+X3+1
quality PRN using LFSR. The performance of proposed
algorithm required only330 slices and 539LUTs for 32 1) The Rules for Selecting Feedback Polynomial:
bit word length. The rules for selecting feedback polynomial which is
D. Digital map approach given in [1], [7] are as follows:
The digital maps [13] for PRNGs and also compared 1. The 'one' in the polynomial does not correspond to
this with LFSR PRNGs. Digital map approach is the non a tap it corresponds to the input to the first bit (i.e.
periodic approach with Complex circuit this approach is Xo which is equivalent to 1).
not able to reduce or simplify the polynomials. LFSR is 2. The powers of the terms represent the tapped bits,
low circuit complexity, low power dissipation and capable counting from the left. The first and last bits are
of generating PRS at high bit rate. Logistic digital map always connected as an input and output tap
required at least 30 bit to achieve above 20,000 period respectively.
sequences, only 15bit LFSR enough to generate the same 3. The LFSR will only be maximum-length if the
sequence. number of taps is even; just 2 or 4 taps can suffice
even for extremely long sequences.
III. ANALYSIS OF DATA COLLECTION 4. The set of taps taken all together, not pair wise (i.e.
as pairs of elements) must be relatively prime. In
A.BBS Method other words, there must be no common divisor to all
DEFINITION (liP generator): lip generator is taps.
completely predictable and one can infer the 'seed' and 5. Once one maximum-length tap sequence has been
continue the sequence backwards and forwards. To defme found, another automatically follows. If the tap
the seed space, let N = {integers P>1 relatively prime to b} sequence, in an n-bit LFSR is [n, A, B, C, 0],
be the parameter values, and let the seed domain X be the where the 0 corresponds to the xO = 1 term, then the
disjoint union. corresponding 'mirror' sequence is [n, n -C, n -B, n
DEFINITION [x2 mod N generator]: X2 mod N -A, 0]. So the tap sequence [32, 7,3, 2, and 0] has as
generator is unpredictable and one can generate the its counterpart [32, 30, 29, 25, 0]. Both give a
sequence forward and one cannot generate the sequence maximwn-Iength sequence.
backward. Let N= {integers NIN= P*Q, such that P, Q are
equal length (IPI=IQI) distinct primes 3 mod 4} be the set TABLE I. POSSIBLE AND MAXIMUM LENGTH
POLYNOMIAL
of parameter values.
Size of Possible feedback Maximum
B. Basic models analysis of LFSRs LFSR Polynomial length
Number of slices 02 00
No. oftlip-tlops 04 16
MINIMUM MAXIMUM
PERFORMANCE LENGTH LENGTH
FEEDBACK FEEDBACK
Shift Register 8 8
Xor gate 01 01
GCLK 01 01
FigureS. PN Sequence for 4bit Fibonacci LFSR
Total pin 10 10
From the above TABLEIII it is clear that by using
[9]. Dr.AshishNegi, Jayveer Singh Farswan,
maximum length feedback LFSR increases the total
V.MThakkar, SiddharthGhansala "Cryptography Play fair Cipher
random output states than that of minimum length using Linear Feedback Shift Register", IOSR Journal of
feedback LFSR. Engineering May. 2012, Vol. 2(5) pp: 1212-1216.
[10]. Arnault. F, Berger. T, Minier. M and Pousse. M, "Revisiting
LFSRs for cryptographic applications", IEEE Transactions on
V. CONCLUSION
Information Theory, Vol. 57, No. 12, Dec 2011, pp.8095-8113.
[II]. Xiang Tian and KhaledBenkrid, "Mersenne Twister Number
This paper described the BBS method, LFSR sequence Generation on FPGA, CPU and GPU",Proc. Of NASAIESA
generator, Mersenne Twister algorithm and Digital map Conference on Adaptive Hardware and Systems, 2009, pp.460-
464.
approach for cryptographic application. The performance
[12]. ShrutisagarChandrasekaran and Abbes Amira "High Performance
analysis of BBS technique and 4 bit LFSR has been FPGA implementation of the Mersenne Twister", Proc. Of 4th
simulated and compared. As compared with BBS method, IEEE International Symposium on Electronic Design, Test &
LFSR utilized less number of flip flops and also shift Application, Jan 2008, pp.482-485.
[13]. Massimo Alioto, Simone Bernardi, Ada Fort, Santina Rocchi,
register. Hence it has been observed that it consumes less
Valerio Vignoli, "On the Suitability of Digital Maps for Integrated
power. And also selection of higher lengths of LFSRs with Pseudo-RNGs", Proc. Of ECCTD'03 - European Conference on
feedback gives much better attributes in comparison with Circuit Theory and Design, September 1-4, 2003, Cracow, Poland,
the selection of lower length of the LFSRs. pp.349-352.
[14]. Goresky, M.; Klapper, A.M.; Fibonacci and Galois representations
of feedback-with-carry shift registers, "IEEE Transactions on
REFERENCES Information Theory", Vol. 48, Issue II, Nov 2002, pp.2826-2836.
[15]. Deepthi P.P. and P.S. Sathidevi "Hardware Stream Cipher Based
[I]. KhushbooSewak, Panda Amit K, Rajput P, "FPGA Implementation on LFSR and Modular Division Circuit", International Journal of
of 16 bit BBS and LFSR PN Sequence Generator: A Comparative Electrical and Computer Engineering 3:12 2008.
Study", In Proc. of the IEEE Student Conference on Electrical, [16]. Elena Dubrova "A List of Maximum Period NLFSRs", Royal
Electronics and Computer Sciences 2012, 1-2 Mar 2012, NIT Institute oITechnology (KTH), Forum 120, 164 40 Kista, Sweden,
Bhopal, India, pp. 1-3. pp.I-9.
[2]. Panda Amit K, Rajput P, Shukla B, "Design of Multi Bit LFSR [17]. AlexandruComan, RaduFratila, "Cryptographic Applications
PNRG and Performance comparison on FPGA using VHDL", using FPGA Technology"Journal of Mobile, Embedded and
International Journal of Advances in Engineering & Distributed Systems, vol. lll, no. 1, 2011, pp. 10-16.
Technology(IJAET), Mar 2012, Vol. 3, Issue 1, pp. 566-571. [18]. KaustubhGawande,MaithilyMundle"Variouslmplementations of
[3]. Sun Jing, Yang jing-yu, Fu De-sheng: Research On the Security of Blum BlumShubPseudo-Random Sequence
Key Generator in Stream Ciphers: The 1st International Conference enerator"http:lcs.ucsb.edul-koclaclprojectI2003Igawande
on information Science and engineering (ICISE2009) pp. 1831- mundle.pdJ
83. [19]. Lecuyer, Pierre, "Tables of Linear Congruential Generators of
[4]. Lenore Blum, Manuel Blum, Mikeshub, "A Simple unpredictable DifferentSizes and Good Lattice Structure," Mathematics of
pseudo random number generator", SIAM Compute 0111986. Computation, Vo1.68, No. 225, 1999, pp. 249-260.
[5]. M.Luby, Pseudo randomness and Cryptographic Applications,
Princeton Computer Science Notes, 1996.
[6]. Efficient Shift Registers, LFSR Counters, and Long Pseudo
Random Sequence Generators, Application Note,Xilinx Inc.
[7]. Amit Kumar Panda*, Praveena Rajput, BhawnaShukla, "FPGA
Implementation of 8, 16, and 32 bit LFSR with Maximum length
feedback polynomial using VHDL", Proc. Of International
Conference on Communication Systems and Network
Technologies, 2012, pp.769-773.
[8]. Afaq Ahmad "Better PN Generators for CDMA Application - A
Verilog-HDL Implementation Approach", International Journal of
Information Engineering (IJlE) Vol.2, No.1, Mar. 2012, pp. 6-11.