Semester
Subject
Year
Tribhuwan University
2079
Bachelor Level / Third Year / Fifth Semester / Science
(Cryptography)
Full Marks: 60
Pass Marks: 24
Time: 3 Hours
Candidates are required to give their answers in their own words as for as practicable.
The figures in the margin indicate full marks.
Long Answers Questions
A security policy defines what security goals must be achieved, while a security mechanism defines how those goals are implemented.
Security Policy:
Security Mechanism:
Example:
| Feature | Block Cipher | Stream Cipher |
|---|---|---|
| Input | Encrypts data in fixed-size blocks (e.g., 64 or 128 bits) | Encrypts data one bit or one byte at a time |
| Speed | Slower for real-time applications | Faster, suitable for real-time streaming |
| Complexity | More complex implementation | Simpler and requires less code |
| Error Propagation | Error in one block may affect that entire block | Error affects only the specific bit |
| Examples | AES, DES, 3DES | RC4, Salsa20, ChaCha20 |
| Key Usage | Same key used for each block | Key combined with a pseudo-random keystream |
| Use Case | File encryption, database encryption | Wireless communication, SSL/TLS streams |
Key Expansion (also called Key Schedule) is the process of generating multiple round keys from the original cipher key for use in each round of AES encryption.
Overview:
Steps of Key Expansion:
a. The original 128-bit key is divided into 4 words:
b. For each subsequent word where :
If is NOT a multiple of 4:
If IS a multiple of 4:
c. The transformation function T involves three operations on :
Diagrammatic Representation:
Original Key → [W0][W1][W2][W3]
↓
Round 1 Key → [W4][W5][W6][W7]
↓
Round 2 Key → [W8][W9][W10][W11]
...
Round 10 Key → [W40][W41][W42][W43]
Where , , and so on.
Conclusion: Key expansion ensures that each round uses a unique round key derived from the original key, adding complexity and making cryptanalysis significantly harder. The combination of RotWord, SubWord, and Rcon prevents patterns and ensures diffusion across rounds.
Short Answers Questions