Top Banner
Simulation on Simulation on Triple Data Encryption Triple Data Encryption standard standard Adviser Adviser Aj. Jarern Vongshumyen Aj. Jarern Vongshumyen By By Chatsiri Rattana Chatsiri Rattana 47221163 47221163 Woranart Hasawayukul Woranart Hasawayukul 47221858 47221858
34
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Design and Simulation Triple-DES

Simulation onSimulation onTriple Data Encryption Triple Data Encryption

standardstandard

AdviserAdviserAj. Jarern VongshumyenAj. Jarern Vongshumyen

ByByChatsiri RattanaChatsiri Rattana 47221163 47221163 Woranart HasawayukulWoranart Hasawayukul 47221858 47221858

Page 2: Design and Simulation Triple-DES

Agenda

• Introduction

• Theory on Triple DES

• Design on Triple DES

• Testing and Result on Triple DES

• Conclusion

Page 3: Design and Simulation Triple-DES

Introduction

Page 4: Design and Simulation Triple-DES

Background

• Low security of general data transfer.

• Use encryption system to secure the data communicates.

• Then we choose Triple-DES.

• Apply for design digital circuit by using VHDL(VHSIC Hardware Description Language).

Page 5: Design and Simulation Triple-DES

Objective• To learn about Triple-DES(Triple-Data

Encryption Standard) algorithm.

• To learn about VHDL(VHSIC Hardware Description Language) coding.

• Can design an implementable digital circuit of Triple-DES.

• Can simulate a circuit that perform result of encryption and decryption.

Page 6: Design and Simulation Triple-DES

Tools for Development

Xilinx Inc.Webpack 8.2i.

ModelSim

Page 7: Design and Simulation Triple-DES

Theory on Triple DES

Page 8: Design and Simulation Triple-DES

What is DES?

• DES - Data Encryption Standard• Symmetric system - uses the same key to encrypt/decrypt data.

CiphertextPlaintext DES

Key

Key

Encrypt

Decrypt

Page 9: Design and Simulation Triple-DES

DES Algorithm Structure

• The algorithm consists of:• An initial permutation of

the input data• Sixteen rounds of the

same process –the DES round

• A final inverse initial permutation of the data

Page 10: Design and Simulation Triple-DES

Step 1: Create 16 subkeys, each of which is 48-bits long.

Page 11: Design and Simulation Triple-DES

Step 2: Encode each 64-bit block of data

The Feistel (F) function

Page 12: Design and Simulation Triple-DES

Mode of 3DES

3DES – EDE (2 keys 3DES)

Keys = 112 bits

C = Ek1(Dk2(Ek1(M)))

Page 13: Design and Simulation Triple-DES

3DES-EDE

E D E

k1 k2 k1

Plaintext Ciphertext

D E D

k1 k2 k1

Ciphertext Plaintext

Page 14: Design and Simulation Triple-DES

Design on Triple DES

Page 15: Design and Simulation Triple-DES

Schematic On Top Module

Page 16: Design and Simulation Triple-DES

Coding Entity Top module • entity test_tdestop is• Port ( data_intdes : in std_logic_vector(0 to 63);• key1_intdes : in std_logic_vector(0 to 63); • key2_intdes : in std_logic_vector(0 to 63);• key3_intdes : in std_logic_vector(0 to 63);• clock : in std_logic;• function_selecttdes: in std_logic;• set_out: in std_logic;• lddatatdes : in std_logic;• ldkeytdes : in std_logic;• resettdes : in std_logic;• data_outtdes : out std_logic_vector(0 to 63);• out_readytdes : out std_logic • );

Page 17: Design and Simulation Triple-DES

Structure on DESCIPHERTOP

Page 18: Design and Simulation Triple-DES

DESCIPHERTOP 1,2,3

KEYSCHEDULE

DES

Page 19: Design and Simulation Triple-DES

KEYSCHEDULE

Page 20: Design and Simulation Triple-DES

DESTOP

Page 21: Design and Simulation Triple-DES

BLOCKTOP

Page 22: Design and Simulation Triple-DES

E_EXPANSION FUCNTION

Page 23: Design and Simulation Triple-DES

ADDKEY

Page 24: Design and Simulation Triple-DES

SBOX

Page 25: Design and Simulation Triple-DES

PBOX

Page 26: Design and Simulation Triple-DES

ADDLEFT

Page 27: Design and Simulation Triple-DES

Device Utilization Summary

Logic Utilizatio

n

Used Available

Utilization

Slices 1398 4656 30 %Slice FF 1140 9312 12%

IOB 305 232 131%GCLKs 1 24 4%

MAX CLK 77.548MHz

Page 28: Design and Simulation Triple-DES

Testing and Result on Triple DES

Page 29: Design and Simulation Triple-DES

Test by Test Bench and Wave Form • Injection Key 1,2,3 and Data to Triple DES

•Key1<=“DataBit”,Key2<=“DataBit”,Key3<=“DataBit”

• Use Text I/O Read and Write Data to Triple DES write write(out_data_out,data_outtdes); writeline(logdata_out,out_data_out); read readline(read_inputtest,read_inputtest_line); read(read_inputtest_line,input_temp);

• Test Bench not permission injection Output

Page 30: Design and Simulation Triple-DES

Strategy for test

Encryption Decryption

Text File Text File

Data

Page 31: Design and Simulation Triple-DES

Test Triple DES ( Encryption )

Input

Output

Page 32: Design and Simulation Triple-DES

Test of Triple DES ( Decryption )

Input

Output

Page 33: Design and Simulation Triple-DES

Conclusion

Page 34: Design and Simulation Triple-DES

Conclusion • Can design and simulation circuit .

• Use function for simulation circuit.

• Can Applied Algorithm Triple DES .

• Circuit has delay time and cannot control some gate.

• Can synthesis on FPGA board but it need clock generator and RAM.

• Large IOB must has floorplanning to save spaces that use.