• No results found

Implementation of Pseudo-Random Number Generator Using LFSR

N/A
N/A
Protected

Academic year: 2022

Share "Implementation of Pseudo-Random Number Generator Using LFSR"

Copied!
13
0
0

Loading.... (view fulltext now)

Full text

(1)

Paper ID #35679

Implementation of Pseudo-Random Number Generator Using LFSR

Fahmeda Khanom, New York City College of Technology

Fahmeda Khanom is a junior at New York City College of Technology, class of 2023, pursuing her bach- elor in Computer Engineering. Her areas of interests is to research on Cybersecurity and Embedded Systems.

Touheda Khanom , New York City College of Technology Dr. Yu Wang, New York City College of Technology

Dr. Yu Wang received her Ph.D. degree in Electrical Engineering from the Graduate Center of the City University of New York in 2009. Currently, she is a professor in the Department of Computer Engineering Technology at New York City College of Technology. Her primary area of interest includes engineering education, formal methods for modeling real-time systems, digital design, FPGA hardware-based sys- tems, Agile testing, Machine Learning algorithms, and the applications of neural networks.

American Society for Engineering Education, 2021c

(2)

1 Fall 2021 Middle Atlantic Conference

November 12-13, 2021

1

Implementation of Pseudo-Random Number Generator Using LFSR

Fahmeda Khanom & Touheda Khanom Yu Wang

New York City College of Technology

(3)

2 Fall 2021 Middle Atlantic Conference

November 12-13, 2021

2

Abstract

Linear Feedback Shift Registers (LFSR) play a vital role to provide cybersecurity for the data communication

system. LFSR is a shift register where the input is linear of its previous states. The most important application of LFSR is the device’s ability to generate a pseudo-random sequence of values that are used in encryption and decryption to secure personal data. Moreover, LFSR is used in Cyclic Redundancy Check Calculations (CRC) which can help to detect errors and corruption in data communications as LFSR feedback values can be modified. The main objective of the research is to generate the pseudo-random sequence of values in 3-bit, 4-bit, and 8-bit using the multiple registers with XOR as different taps selection. In the research, we used D(Data) flip flops and XOR alternative taps to identify the difference in the values for different arrangements in circuit diagrams using the software Quartus. After the simulation, we test the circuit on the Field Programmable Gate Array (FPGA) board to check the generated binary random number displaying the LED “on” or in “off” state. We would deeply work on CRC and use different approaches such as Verilog or VHDL code.

(4)

3 Fall 2021 Middle Atlantic Conference

November 12-13, 2021

3

Introduction/Motivation

LFSR is used in cryptography to encrypt and decrypt electronic data which helps to secure all our ATM cards, computer passwords, and electronic commerce [1]. Cyclic-Redundancy-Check(CRC) is used to detect error or corruption during signal data transmission which are possible to easily implement in hardware using LFSR.

The sequence of values stored in the LFSR is known as checksum and receivers check out the internal checksum generation with the checksum in the transmitter to figure out the real problems[3].

If there is no fault or corruption the receiver check produces all zeros. XOR plays a vital role because with the help of alternative tap selection we can get different random values.

Generating pseudo-random sequences of values using Linear Feedback Shift Register can help to build strong security to avoid unauthorized access to private information.

The main purpose of the research is to use LFSR to generate pseudo-random values with the help of shift registers and XOR alternative tap selections.

(5)

4 Fall 2021 Middle Atlantic Conference

November 12-13, 2021

4

Materials and Methods

❖ In LFSR each D flip flop represents a single bit of data

❖ We built 3-bit, 4-bit, and 8-bit shift register block designs using intel Quartus ii and did functional analysis.

❖ In our designs, all flip flops share the common clock input which is labeled as CLK

❖ CLK input is known as edge-triggered because the circuit activates when clock goes from low to high as we are using positive edge of the clock signal

❖ We used 2 different taps at bit 0 and 7 bit for figure 1 and at bit 3 and bit 7 for figure 2 and tested how alternative tap selection provides us with different pseudo-random values on figure 3 and figure 4.

❖ We group our output in vector based on waveform simulation data to get a clear observation of the sequence in decimal format of pseudo-random numbers generated based on the circuit

❖ We work on the FPGA board and test each block design to observe the binary on and off state at binary display

(6)

5 Fall 2021 Middle Atlantic Conference

November 12-13, 2021

Results

Figure 1

BLOCK DIAGRAMS

(7)

6 Fall 2021 Middle Atlantic Conference

November 12-13, 2021

Results

Figure 2

TIMING ANALYSIS / WAVEFORM

(8)

7 Fall 2021 Middle Atlantic Conference

November 12-13, 2021

Results

Figure 3

BLOCK DIAGRAMS

(9)

8 Fall 2021 Middle Atlantic Conference

November 12-13, 2021

Results

TIMING ANALYSIS / WAVEFORM

Figure 4

(10)

9 Fall 2021 Middle Atlantic Conference

November 12-13, 2021

Results

OUTPUT FROM FPGA EDUCATIONAL BOARD

Figure 5 Figure 6

(11)

10 Fall 2021 Middle Atlantic Conference

November 12-13, 2021

10

Results/Discussions

❖ From the experiment of different taps location applied to 8-bit group of registers generates pseudo- random outputs. When the load is on the high state and the clock pulse changes from low to high, we see the output values change.

❖ Moreover, we noticed that after a certain clock pulse we get repeated values on the outputs. 8-bit has 255 lengths of loops using 2

n

-1 where n represents the number of registers used in the circuit.

❖ Similarly for 4-bit we have 15 lengths of loops that have 15 random values before the values start

repeating[2]. If the tap selection is different, we get different sequence of numbers

(12)

11 Fall 2021 Middle Atlantic Conference

November 12-13, 2021

11

Conclusion/Acknowledgement

Based on our research, we can conclude that LFSR serves multiple important purposes in real life

applications. LFSR makes it easier for cybersecurity, CRC, cryptography and pseudo random generators.

Hardware and software can be used to work on random number generators. For future work, we would like

to work on the software skills and will use Verilog code. We would deeply work on CRC and use different

approaches like one-to-many implementation and more than two taps alternative using XOR to get more

random values.

(13)

12 Fall 2021 Middle Atlantic Conference

November 12-13, 2021

12

References

• [1] “Cryptography | Crypto Wiki | Fandom.”

https://cryptography.fandom.com/wiki/Cryptography (accessed Nov. 17, 2020)

• [2] M. Maxfield, “EETimes - Tutorial: Linear Feedback Shift Registers (LFSRs) - Part 1 -,” EETimes, Dec. 20, 2006. https://www.eetimes.com/tutorial-linear-

feedback-shift-registers-lfsrs-part-1/ (accessed Nov. 17, 2020).

• [3] Felsa Mary Fidus, Lalmohan K. S, Ambika Sekhar, and Sree Buddha College of Engineering, “Design and Implementation of a Secure Stream Cipher for

Cryptographic Applications,” IJERT, vol. V4, no. 07, p. IJERTV4IS070422, Jul.

2015, doi: 10.17577/IJERTV4IS070422.

References

Related documents

The consequences of the staff deficit and the poor con- ditions of work include a heavier workloads for the staff on duty, the closure of some services reducing patient access,

Self-Regulated Strategy Development (SRSD) is a flexible instructional model that complies with that mandate by helping students explicitly learn the same kinds of planning,

Although there is a great deal of evidence suggesting that healthy diets that are low in fat and refined sugars and rich in colorful fruit and vegetables can reduce the risk of

account the chemical speciation of the metal in solution and investigated the influence of Al-F complexes on the sorption and uptake of Al and F.. The formation of such

Background: To determine whether prebiopsy multiparametric magnetic resonance imaging (mpMRI) with subsequent systematic plus targeted biopsies for suspicious lesions improve

This is mainly attributable to a net change in operating receivables and operating liabilities (SEK 7.0 billion), a change in inventories (SEK 1.0 billion), and a change in

However, HMRC acknowledge that some self- employed travel will be undertaking business journeys where a deduction would be allowed: “Extra costs may be incurred wholly for business

Chi-square and Fisher ’ s exact tests were performed, as appropriate, to compare the proportions of responders who used each of the listed active learning methods (class