2. Write a program in HACK assembly, without using symbols, that implements the described Feistel encryption system. The initial key, Ko, will be stored in RAM[1], and the 16-bit plaintext will be stored in RAM[2]. The result of the encryption should be stored in RAM[0]. Your solution should be submitted in a file called "FeistelEncryption.asm". You may use any RAM locations not specified in the description for intermediate variables.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

could you please code this on notepade. 

The Feistel cipher is a symmetric block cipher encryption framework which is the basis
of many modern day encryption algorithms. In this coursework you will implement a
Feistel cipher system as a hardware component and as a software implementation. In a
Feistel cipher the plaintext, P, to be encrypted is split into two equal size parts Lo and
Ro such thatP = L,Ro- A function F is applied to one half of the plaintext, combined
with a key, and the result is XOR'd with the other half of the plaintext. Feistel ciphers
often employ multiple rounds of this scheme. In general the scheme works as follows, for
all i = 0, .. . , n,
L;+1= R;
R+1 = L; © F(R, K;)
To decrypt an encrypted message using this cipher we can apply the same procedure
in reverse. For i = n, n – 1, . , 0,
R; = L,+1
Lat1
L, = R,-1 e F(L,-1, K.)
For this coursework we are interested in the 16-bit Feistel cipher which uses 4 rounds.
The function F(A, B) = AOB. The keys are derived from a single 8-bit key Ko such that,
Ko = b,b6b;b4b3bzbi bo
K1 = b6b5b,b3b2bibob,
K2 = b;b,bzb,b,bob-b6
K3 = b,b3b2b1bob-b6b5
1
Transcribed Image Text:The Feistel cipher is a symmetric block cipher encryption framework which is the basis of many modern day encryption algorithms. In this coursework you will implement a Feistel cipher system as a hardware component and as a software implementation. In a Feistel cipher the plaintext, P, to be encrypted is split into two equal size parts Lo and Ro such thatP = L,Ro- A function F is applied to one half of the plaintext, combined with a key, and the result is XOR'd with the other half of the plaintext. Feistel ciphers often employ multiple rounds of this scheme. In general the scheme works as follows, for all i = 0, .. . , n, L;+1= R; R+1 = L; © F(R, K;) To decrypt an encrypted message using this cipher we can apply the same procedure in reverse. For i = n, n – 1, . , 0, R; = L,+1 Lat1 L, = R,-1 e F(L,-1, K.) For this coursework we are interested in the 16-bit Feistel cipher which uses 4 rounds. The function F(A, B) = AOB. The keys are derived from a single 8-bit key Ko such that, Ko = b,b6b;b4b3bzbi bo K1 = b6b5b,b3b2bibob, K2 = b;b,bzb,b,bob-b6 K3 = b,b3b2b1bob-b6b5 1
2. Write a program in HACK assembly, without using symbols, that implements the
described Feistel encryption system. The initial key, Ko, will be stored in RAM[1],
and the 16-bit plaintext will be stored in RAM[2]. The result of the encryption
should be stored in RAM[0]. Your solution should be submitted in a file called
"FeistelEncryption.asm"
You may use any RAM locations not specified in the description for intermediate
variables.
Transcribed Image Text:2. Write a program in HACK assembly, without using symbols, that implements the described Feistel encryption system. The initial key, Ko, will be stored in RAM[1], and the 16-bit plaintext will be stored in RAM[2]. The result of the encryption should be stored in RAM[0]. Your solution should be submitted in a file called "FeistelEncryption.asm" You may use any RAM locations not specified in the description for intermediate variables.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Similar questions
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY