Semester
Subject
Year
Tribhuwan University
2078
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
The CIA Triad is a model that represents the three fundamental goals of information security: Confidentiality, Integrity, and Availability.
Confidentiality — Ensures that information is accessible only to authorized individuals. Prevents unauthorized disclosure of data.
Integrity — Ensures that information is not altered or tampered with by unauthorized parties. Data remains accurate and complete.
Availability — Ensures that information and resources are accessible to authorized users whenever needed.
These three principles form the foundation of any security policy or system design.
Double DES applies the DES algorithm twice with two different keys to increase security.
Process:
Where:
Key Length: bits
Limitation: Vulnerable to Meet-in-the-Middle attack, which reduces effective security to operations instead of .
Triple DES applies the DES algorithm three times using two or three keys to provide stronger encryption.
Process (EDE mode — Encrypt-Decrypt-Encrypt):
Two-key variant: (effective key length = 112 bits)
Three-key variant: All keys different (effective key length = 168 bits)
Advantage: Much stronger than Double DES and resistant to Meet-in-the-Middle attack.
The S-Box (Substitution Box) performs non-linear substitution in DES, providing confusion by making the relationship between the key and ciphertext complex.
Role of S-Box:
How it works:
Given 6-bit input: 101100
Step a: Row = 1st and 6th bit = 1 and 0 → Row = = 2
Step b: Column = middle 4 bits = 0110 → Column = = 6
Step c: Look up S-Box 1, Row 2, Column 6:
| Row\Col | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | ... |
|---|---|---|---|---|---|---|---|---|---|
| 0 | 14 | 4 | 13 | 1 | 2 | 15 | 11 | 8 | ... |
| 1 | 0 | 15 | 7 | 4 | 14 | 2 | 13 | 1 | ... |
| 2 | 4 | 1 | 14 | 8 | 13 | 6 | 2 | 11 | ... |
| 3 | 15 | 12 | 8 | 2 | 4 | 9 | 1 | 7 | ... |
Step d: Output = 2 → in 4 bits = 0010
So the 6-bit input 101100 is substituted by 4-bit output 0010.
The CIA Triad defines the core security objectives. Double DES and Triple DES enhance DES security by applying multiple encryption rounds. The S-Box is the heart of DES providing non-linearity and confusion, making the cipher resistant to linear and algebraic attacks.
Short Answers Questions