matlab代写-Advanced Topics in Wireless Security

ECE 487/587: Advanced Topics in Wireless Security Homework 2

Due Tuesday Feb. 14, 2019

Note: Matlab is recommended, but you can choose whatever language you prefer. Please submit your code through Isidore.

Submission: Please submit screenshots of your results, and your scripts on Isidore.

Problem 1. (Design and Program) Design and implement a block cipher based on Feistel Cipher. Please see the requirements as follows:

Determine the important components before implementation

  1. Block size: 64-bit is recommended, you are free to choose any block size no

    smaller than 64 bits.

  2. Key size: 128-bit is recommended, you are free to choose any block size no smaller than 64 bits.

  3. Number of rounds: you can pick it on your own.

  4. Subkey generation algorithm: design an algorithm to generate subkeys based on the secret key.

  5. Round function: design a round function which takes in the right half of the input

    and the subkey.

    Implement your block cipher

  6. Show a demo by doing one encryption

    1. The input is one block of all 1s (i.e., 64-bit 111111…. if your block size is 64-bit).

    2. The secret key is set as all 1s.(i.e., 111111…)

  7. Do the decryption correspondingly.

    Performance preliminary analysis

  8. Encrypt a block for 1,000 times and record the computational time.

    1. Report your computer configurations (CPU clock speed, RAM, programming language, etc.)

    2. Feel free to change running iterations to get a good evaluation on

      computational time.

  9. Show the avalanche effect in your design by

    1. changing the first bit of the plaintext to 0,

    2. and then do the encryption again.

    3. Record the number of different bits in the two cipher texts.

51作业君 51作业君


添加客服微信: ITCSdaixie