Encrypt the plaintexts using the baby des cryptosystem

Assignment Help Computer Network Security
Reference no: EM131232580

(1) Using the Baby DES cryptosystem with 3 rounds, encrypt the plaintexts 000000111111, and 111111111111. Use the key K = 000111000. Show the outcome of each round. More precisely, for each of the two encryptions show:

L_0 R_0,
L_1 R_1, K1
L_2 R_2, K2
and
L_3 R_3, K3

also show the work

(2) In this part you are asked to execute the differential attack on Baby DES with 3 rounds that we discussed in class. For that use the above two plaintexts (i.e., 000000111111 and 111111111111) and the ciphertexts that you have obtained in part (1). Next run the differential attack using the method discussed in class. You should, of course, pretend that you do not know the key K. Show all the steps. Do all these for the left half and the right half and derive the possibilities for K_3.

You need to present the following:

• The 16 pairs of inputs having the desired XOR (for the left half and the right half),

• The pairs that yield after the S-box substitutions the desired output (for the left half and the right half),

• List all the possibilities for K_3.

• List all the possibilities for K. If you worked correctly, the actual K should be on this list.

Organize your write-up neatly so that the grader can follow what you did.

Notes: Some elements of Baby DES and of the differential attack for BabyDES with 3 rounds:

Recall the notation: L_i is the left half after round i, and R_i is the right half. K_i is the key for round i. We use + for bitwise XOR (which is the same as addition modulo 2).

One round follows the Feistelstructure which means that

L_i = R_(i-1) andR_i = L_(i-1) + f( R_(i-1), K_i )

The function f(R,K) is defined as follows.

(a) Expand R, obtaining E(R)
(b) E(R ) + K
(c) The left 4 bits are substituted using S_1 and the right 4 bits are substituted using S_2.

The expander (from a 6-bit string to a 8-bit string) in Baby DES is

( 1 2 3 4 5 6) → ( 1 2 4 3 4 3 5 6)

For example 001011 becomes after extension 00010111.

The S_1 table is

( 101 010 001 110 011 100 111 000)
( 001 100 110 010 000 111 101 011)

The S_2 table is

(100 000 110 101 111 001 011 010
101 011 000 111 110 010 001 100)

The S_1 table defines a substation from 4-bit strings to 3-bit strings as follows.

Let b_1 b_2 b_3b_4 be the 4-bit string. We look in S_1 at row b_1 and column b_2 b_3 b_4 and substitute b_1b_2b_3b_4 with what we see at that location.

S_2 works in the same way.

K_i is obtained from K, by taking 8 bits from K starting with the i-th position (where the leftmost bit is in position 1). For example if K = 000 111 000, then K_3 = 01110000.

The differential attack is a chosen plaintext attack. For Baby DES with 3 rounds, the main steps are as follows.

We choose 2 plaintexts L_0 R_0 and L*_0 R*_0 with R_0 = R*_0.

We get the corresponding 2 ciphertexts L_3 R_3 and L*_3 R*_3.

Let us denote A = L_0 + L*_0 + R_3 + R*_3, a string which we have. The goal is to find K_3.

It holds 9we showed this in class) that A = f(L_3, K_3) + f(L*_3, K_3).

This implies that the

left 4-bit half of E(L_3) + K_3 and

the left 4-bit half of E(L*_3) + K_3

when entered as input to the S_1 substitution produce two strings whose XOR is the left half of A.

Thus, for the S_1 substitution, we know the XOR of 2-inputs (because when we XOR the two inputs above, the two K_3 cancel each other) and the XOR of their outputs. This allows us to get a few candidates for the left half of K_3 in the following way: we look at the list of pairs whose XOR is E(L_3) + E(L*_3) (the left 4 bits) and output XOR is left half of A. We know that the pair (E(L_3) + K_3, E(L*_3) + K3) (left 4 bits) is on this list. From here we find the possibilities for K_3 (left 4 bits).

Then we do the same thing for the right half, using S_2.

Reference no: EM131232580

Questions Cloud

What are the advantages and disadvantages of using rodc : Describe a minimum of two circumstances or situation where the use of RODC would be warranted. What considerations need to be planned for the implementation and placement of a RODC? What are the advantages and disadvantages of using RODC?
Initiating structure is term most closely associated : All of the types of power listed below are position power except: "Initiating structure" is a term most closely associated with what type of leadership? The ability of a group to outperform the sum of its individual members is called:
Evaluate and make important credit risk related decisions : FIN5CRM 2016 Simulate a real world situation and evaluate and make important credit risk related decisions - Apply your knowledge of credit risk to solve real problems faced by banks.
Briefly explain how aud is determined in the forex market : From the article titled 'RBA happy with Australian dollar but further falls expected in 2016' Using Demand and Supply model of exchange rate determination briefly explain how AUD is determined in the forex market, and what factors influence its flu..
Encrypt the plaintexts using the baby des cryptosystem : Using the Baby DES cryptosystem with 3 rounds, encrypt the plaintexts 000000111111, and 111111111111. Use the key K = 000111000. Show the outcome of each round.
Employment-worker protection and immigration law : Watch the video case study (link below) and discuss the case emphasizing the connections between business, law, politics, and ethics. Video Case Study: Employment, Worker Protection, and Immigration Law. Under what authority in the Constitution could..
Analyze the mini-case and table of requirements to assess : The assignment is to analyze the mini-case and table of requirements to assess and identify a standard tablet mobile device that will be used across the Sales Department.
Using the trend projection method : Sales of? Volkswagen's popular Beetle have grown steadily at auto dealerships in Nevada during the past 5 years? (see table? below). Forecasted sales for year 6 using the trend projection? (linear regression) method are 619.3 sales. The MAD for a lin..
Define and describe what an electronic product code : BMO2203 -Industry Report Assignment. The report should establish links between key points you have learned in the classroom, academic literature, and the role of GS1. Particular issues that should be addressed include: Definition of the term standa..

Reviews

Write a Review

Computer Network Security Questions & Answers

  What is the decryption function

a). What is the decryption function, b). What is the decrypted plaintext? c). What are some weaknesses of this cipher?

  Network forensic data collection

Explain how the Silk Road case serves as an example of how to carry out network forensic data collection. Conduct research to find out how the FBI collected evidence and traced the owner of the Silk Road. Suggest alternate steps that you might hav..

  Compare and contrast online analytic processing

Write a one page paper (250 words) on Compare and contrast Online Analytic Processing (OLAP) and Online Transaction Processing (OLTP); also discuss Codd's rules for TP databases and OLAP databases (New Times Roman, 12 pt, double spaced, Essay). Ci..

  Analyze the importance of having acceptable use policies

Analyze the importance of having acceptable use policies, remote access policies, and network security control policies. Choose one acceptable use policy, remote access policy, or network security control policy.

  Design a remote access control policy for richman

Design a remote access control policy for Richman using the appropriate access controls for systems, applications, and data access. Include the design and justification for using the selected access controls for systems, applications, and data acc..

  Describe the fundamental security policies outlined by pci

Describe the fundamental security policies outlined by PCI DSS, FISMA, and COBIT. In a subsequent paragraph, identify at least 2 types of industries (e.g., Internet service providers, health care, education) and describe which of the latter standa..

  How can rfid works in construction company

How can RFID works in construction company, take one construction company as an example and write how RFID functions in it, i dont want you to explain each and every standard.

  Explaining ethical issues and the abuse of privacy

Search the Internet for good examples of cases that involve ethical issues and the abuse of privacy. Provide a review and analysis of your findings.

  Research on personally identifiable information

Learn to correctly use the tools and techniques within Word to format a research paper including using Word 2010/2013's citation tools. These skills will be valuable throughout students' academic career. The paper will require a title page, NO a..

  Security risk to acknowledge using macros

Write down 200- to 300-word response which answers the following question: Based on article by Lenning (2005), what is main security risk which users must acknowledge when using macros?

  Inherent flaws in the department of homeland securitys

In your opinion, what are the inherent flaws in the Department of Homeland Security's Blueprint for a Secure Cyber Future? Explain your answer

  Description of the kerberos authentication protocol

Give your general description of the Kerberos authentication protocol and explain the term: Authenticator used in the Kerberos authentication protocol.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd