Lab Exercise: Implementing Data Encryption Standard (DES) in MATLAB, Lab Reports of Network security

A lab exercise for implementing the data encryption standard (des) encryption and decryption techniques in matlab. The exercise covers key generation, sub key generation, and the implementation of the fk function and main code for encryption and decryption. Students are expected to write programs for each task and display the final ciphertext or plaintext, key, and plaintext.

Typology: Lab Reports

2019/2020

Uploaded on 09/16/2020

mariyam-ashraf
mariyam-ashraf 🇵🇰

5 documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
CE-408: Cryptography & Network Security SSUET/QR/114
LAB#05
Modern Encryption Techniques
Data Encryption Standard (DES)
OBJECTIVE
The purpose of this lab is to implement DES encryption and decryption in MATLAB.
THEORY
Encryption: It takes 64-bit block of plain text and a 58-bit key as input and produces 64-
bit block of cipher text as output.
Decryption: It takes 64-bit block of cipher text and the same 58-bit key used to produce
that ciphertext as input and produces the original 64-bit block of plaintext.
Refer to the detailed figure for encryption and decryption from the lecture notes.
The reference figures are shown below for encryption and key generation:
Lab#05: Data Encryption Standard (DES) Page | 20
pf2

Partial preview of the text

Download Lab Exercise: Implementing Data Encryption Standard (DES) in MATLAB and more Lab Reports Network security in PDF only on Docsity!

CE-408: Cryptography & Network Security SSUET/QR/

LAB#

Modern Encryption Techniques

Data Encryption Standard (DES)

OBJECTIVE

The purpose of this lab is to implement DES encryption and decryption in MATLAB.

THEORY

Encryption: It takes 64-bit block of plain text and a 58-bit key as input and produces 64- bit block of cipher text as output.  Decryption: It takes 64-bit block of cipher text and the same 58-bit key used to produce that ciphertext as input and produces the original 64-bit block of plaintext.  Refer to the detailed figure for encryption and decryption from the lecture notes.  The reference figures are shown below for encryption and key generation: Lab#05: Data Encryption Standard (DES) Page | 20

CE-408: Cryptography & Network Security SSUET/QR/

Lab Tasks:

  1. Write the program for sub keys generation of DES 16 rounds.
  2. Write the program for the fk function.
  3. Write the program for the main code for encryption through which the key and fk function are called. Perform Initial permutation, switching and inverse permutation here. Display the final ciphertext along with key and plaintext.
  4. Write the program for the main code for decryption through which the key and fk function are called. Perform Initial permutation, switching and inverse permutation here. Display the final plaintext along with key and plaintext. Lab#05: Data Encryption Standard (DES) Page | 21