Retrieving academic index assets...
Makaut
HomePYQsTests
Pricing
Sign Up
Makaut

The premier academic archive for MAKAUT students, providing curated previous year questions, solutions, and official syllabus resources.

Get the Mobile App
GET IT ONGoogle Play
Download on theApp Store
Download from Indus App Store
Platform
  • Home
  • PYQs
  • Question Papers
  • Viva Questions
  • Important Questions
  • Syllabus
  • Academic Tools
  • Pricing
  • Blog
Guidelines
  • Disclaimer
  • Community Guidelines
Company
  • About
  • Contact
  • FAQ
Legal
  • Privacy Policy
  • Terms of Service
  • Refund Policy
  • Cookie Policy
  • Subscription Policy
© 2026 MAKAUT Study Dev Hub. All rights reserved.
Platform version: v1.0.0
Viva Questions/PEC-CS801B
Semester 8PEC-CS801B

Cryptography and Network Security (PEC-CS801B) Viva Questions and Answers

36 Questions•10 min read
Prepared from MAKAUT past-year question papers.
Practice Mode:All answers visible
Jump to Topic
Cryptography Basics (1)Public Key Cryptography (1)Cipher Design Principles (1)DES (4)Block Cipher Modes (2)RSA (3)Message Authentication (2)Hash Functions (2)Digital Certificates (2)SSL/TLS (5)IPSec (2)Kerberos (1)PGP (2)PGP and S/MIME (1)Network Security (2)Malware (2)Password Security (2)Firewalls (1)

Cryptography Basics

1 question
Q1.EASY

What is the difference between symmetric and asymmetric key cryptography?

Symmetric cryptography uses a single shared key for both encryption and decryption, making it fast but requiring secure key distribution. Asymmetric cryptography uses a public-private key pair, solving the key distribution problem but being computationally slower. Symmetric is used for bulk data, asymmetric for key exchange and digital signatures.

Public Key Cryptography

1 question
Q2.EASY

Why is public key cryptography advantageous over symmetric key cryptography?

Public key cryptography solves the key distribution problem because the public key can be shared openly without compromising security. It also provides digital signatures for authentication and non-repudiation, which symmetric cryptography cannot offer. However, it is much slower, so it is typically used for key exchange rather than bulk encryption.

Cipher Design Principles

1 question
Q3.MEDIUM

Explain the diffusion and confusion principles. Which cipher achieves which?

Diffusion spreads the influence of one plaintext bit over many ciphertext bits, achieved by transposition ciphers. Confusion makes the relationship between ciphertext and key complex, achieved by substitution ciphers. Together they form a product cipher, as in DES.

DES

4 questions
Q4.EASY

How many rounds are there in DES, and what is the subkey length per round?

DES has 16 rounds, and each round uses a 48-bit subkey generated from the 56-bit key. The subkey is derived by permuting and compressing the 56-bit key using the key schedule algorithm.
Q5.MEDIUM

Describe a single round of DES with a block diagram.

In each DES round, the 32-bit right half is expanded to 48 bits, XORed with the 48-bit subkey, passed through 8 S-boxes to produce 32 bits, then permuted by a P-box. The result is XORed with the left half to form the new right half, while the old right half becomes the new left half.
Q6.EASY

What is Triple DES (3DES) and why is it more secure than DES?

3DES applies DES three times with either two or three keys, effectively increasing the key length to 112 or 168 bits. This makes brute-force attacks infeasible compared to DES's 56-bit key. It is more secure but slower than DES.
Q7.HARD

Show that DES decryption is the inverse of DES encryption.

DES decryption uses the same algorithm as encryption but applies the subkeys in reverse order (K16 down to K1). Because the Feistel structure is symmetric, this exactly undoes the encryption process, recovering the original plaintext.

Block Cipher Modes

2 questions
Q8.MEDIUM

What is the difference between CBC and ECB modes of operation?

ECB encrypts each block independently, so identical plaintext blocks produce identical ciphertext blocks, leaking patterns. CBC XORs each plaintext block with the previous ciphertext block (or an IV for the first block) before encryption, so identical blocks produce different ciphertexts, providing better security.
Q9.MEDIUM

What is an Initialization Vector (IV) and why is it used in CBC mode?

An IV is a random block used to XOR with the first plaintext block in CBC mode. It ensures that encrypting the same plaintext with the same key produces different ciphertexts each time. The IV need not be secret but must be unpredictable.

RSA

3 questions
Q10.MEDIUM

What is the RSA cryptosystem? Explain its key generation.

RSA is an asymmetric cryptosystem based on the difficulty of factoring large integers. Key generation: choose two large primes p and q, compute n = p*q and phi(n) = (p-1)(q-1), choose e coprime to phi(n), and compute d = e^{-1} mod phi(n). Public key is (e, n), private key is (d, n).
Q11.MEDIUM

What is the factorization problem and why is it important in RSA?

The factorization problem is the difficulty of finding the prime factors of a large composite number. RSA security relies on this: given n = p*q, an attacker cannot feasibly recover p and q to compute the private key d. For sufficiently large n (e.g., 2048 bits), factoring is computationally infeasible.
Q12.MEDIUM

In RSA, compute 195mod  11919^5 \mod 119195mod119.

First, 192=361≡4(mod119)19^2 = 361 \equiv 4 \pmod{119}192=361≡4(mod119) since 361−3×119=4361 - 3 \times 119 = 4361−3×119=4. Then 194≡16(mod119)19^4 \equiv 16 \pmod{119}194≡16(mod119), and
195=194×19≡16×19=304≡66(mod119)19^5 = 19^4 \times 19 \equiv 16 \times 19 = 304 \equiv 66 \pmod{119}195=194×19≡16×19=304≡66(mod119)
. So the answer is 66.

Message Authentication

2 questions
Q13.EASY

What is a MAC and what does it ensure?

A Message Authentication Code is a short tag computed from a message and a secret key. It ensures message integrity and authentication, verifying that the message came from someone who knows the key and was not altered. It does not provide confidentiality.
Q14.MEDIUM

Give an example of message authentication using symmetric-key and asymmetric-key cryptography.

Symmetric: HMAC, where sender and receiver share a secret key to compute and verify the MAC. Asymmetric: digital signature, where the sender signs the message hash with their private key and the receiver verifies with the public key.

Hash Functions

2 questions
Q15.MEDIUM

Describe the SHA-1 algorithm briefly.

SHA-1 processes the message in 512-bit blocks, padding it to a multiple of 512 bits. It initializes five 32-bit buffers and runs 80 rounds of operations involving logical functions, rotations, and addition. The final output is a 160-bit message digest.
Q16.MEDIUM

How does SHA-1 differ from MD5?

SHA-1 produces a 160-bit digest, while MD5 produces 128 bits, making SHA-1 more resistant to brute-force collisions. SHA-1 uses 80 rounds versus MD5's 64, and they have different internal structures and constants. Both are now considered insecure for collision resistance.

Digital Certificates

2 questions
Q17.EASY

What is a digital certificate and why is it used?

A digital certificate is an electronic document that binds a public key to an identity, signed by a trusted Certificate Authority. It is used to verify the authenticity of public keys, preventing man-in-the-middle attacks. It is essential in SSL/TLS for server authentication.
Q18.MEDIUM

Name the four key steps in the creation of a digital certificate.

  1. Key pair generation by the subject,
  2. Certificate signing request (CSR) sent to the CA,
  3. CA verifies identity and signs the certificate,
  4. Certificate issued and installed by the subject. The CA's signature vouches for the binding of public key to identity.

SSL/TLS

5 questions
Q19.MEDIUM

Why is the SSL layer positioned between the Application and Transport layers?

SSL provides security services (encryption, integrity, authentication) to any application protocol without modifying it. Placing it above Transport allows it to use TCP for reliable delivery, and below Application allows transparent security for protocols like HTTP. This design makes SSL application-independent.
Q20.MEDIUM

Describe the fields of the SSL Record Protocol header.

The SSL Record header has three fields: Content Type (8 bits) indicating the higher-level protocol, Protocol Version (16 bits), and Length (16 bits) of the fragment. The payload follows, optionally compressed and encrypted.
Q21.HARD

How are the pre-master secret and master secret prepared in the SSL handshake?

The client generates a pre-master secret, encrypts it with the server's public key, and sends it. Both sides then compute the master secret using a PRF (pseudo-random function) over the pre-master secret and random nonces. The master secret is then used to derive session keys.
Q22.MEDIUM

What is the difference between the Alert protocol and Record protocol in SSL?

The Record protocol provides the basic framing, compression, and encryption for all SSL messages. The Alert protocol is a higher-level protocol that conveys error or warning messages (e.g., handshake failure) between peers. Alerts are carried within Record protocol messages.
Q23.HARD

How many messages are used in the SSL handshake protocol?

A full SSL handshake typically involves 10 messages: ClientHello, ServerHello, Certificate, ServerKeyExchange (optional), CertificateRequest (optional), ServerHelloDone, ClientKeyExchange, CertificateVerify (optional), ChangeCipherSpec, and Finished. The exact count varies with options.

IPSec

2 questions
Q24.MEDIUM

What is the difference between transport mode and tunnel mode in IPSec?

In transport mode, IPSec protects only the payload of an IP packet, leaving the original IP header intact; it is used for host-to-host communication. In tunnel mode, the entire IP packet is encapsulated in a new IP packet, providing security for gateway-to-gateway VPNs. Tunnel mode hides the original source and destination.
Q25.MEDIUM

What is the Authentication Header (AH) in IPSec and what does it provide?

AH provides data integrity, authentication of the IP packet, and anti-replay protection, but not confidentiality. It contains fields like Next Header, Payload Length, Security Parameters Index, Sequence Number, and Authentication Data. It authenticates the entire IP packet including the header.

Kerberos

1 question
Q26.MEDIUM

Explain briefly Kerberos version 4.

Kerberos v4 is a symmetric-key authentication protocol using a trusted Key Distribution Center (KDC) that shares a unique password with every user. It issues tickets for accessing services, using timestamps to prevent replay. It provides authentication but not full confidentiality of data.

PGP

2 questions
Q27.MEDIUM

In PGP, how do Bob and Alice exchange the secret key for encrypting messages?

PGP uses a hybrid approach: the message is encrypted with a random session key (symmetric), and the session key is encrypted with the recipient's public key. So Alice generates a session key, encrypts the message with it, and encrypts the session key with Bob's public key. Bob decrypts the session key with his private key and then decrypts the message.
Q29.HARD

Why does PGP generate a signature before applying compression?

Signing before compression ensures the signature is computed over the original message, so it can be verified after decompression. If compression were applied first, the signature would be over compressed data, which is less efficient and may vary. Also, signing before compression allows the signature to be stored with the compressed message for later verification.

PGP and S/MIME

1 question
Q28.HARD

Compare and contrast key management in PGP and S/MIME.

PGP uses a decentralized web of trust, where users sign each other's keys, while S/MIME uses a hierarchical PKI with trusted Certificate Authorities. PGP keys are often self-generated and distributed informally, whereas S/MIME certificates are issued by CAs. Both support encryption and digital signatures but differ in trust models.

Network Security

2 questions
Q30.EASY

What are passive threats and active threats? Differentiate them.

Passive threats involve eavesdropping or monitoring without modifying data, such as traffic analysis; they are hard to detect. Active threats involve modification of data or system state, such as masquerading, replay, or denial of service; they are detectable but disruptive. Passive attacks focus on confidentiality, active on integrity and availability.
Q31.EASY

Explain different types of attacks with examples.

Attacks include interception (eavesdropping), modification (altering messages), fabrication (injecting false messages), and interruption (denial of service). Examples: packet sniffing, man-in-the-middle, IP spoofing, and SYN flooding. They can be passive or active, targeting confidentiality, integrity, or availability.

Malware

2 questions
Q32.EASY

What is a worm and how is it different from a virus?

A worm is a self-replicating program that spreads across networks without user intervention, often causing denial of service. A virus attaches itself to a host file and requires user action (like opening a file) to propagate. Worms are standalone, viruses are dependent on hosts.
Q33.EASY

What are Trojan horse and Cookie?

A Trojan horse is a malicious program disguised as legitimate software that tricks users into installing it, often giving attackers remote access. A cookie is a small piece of data stored by a web browser to maintain state, which can be used for tracking but is not inherently malicious. Trojans are malware; cookies are a benign web mechanism.

Password Security

2 questions
Q34.EASY

What are the problems associated with clear text passwords?

Clear text passwords can be easily intercepted by eavesdropping on the network or stolen from storage. They are also vulnerable to replay attacks if transmitted without encryption. This is why password hashing and secure protocols like SSL/TLS are used.
Q35.MEDIUM

What are two common techniques used to protect a password file?

One technique is hashing passwords with a salt before storage, making precomputed rainbow table attacks ineffective. Another is using a shadow password file, which restricts access to the hashed passwords to privileged users only. Both aim to prevent offline password cracking.

Firewalls

1 question
Q36.EASY

List three design goals for a firewall.

  1. All traffic from inside to outside and vice versa must pass through the firewall.
  2. Only authorized traffic, as defined by the local security policy, is allowed to pass.
  3. The firewall itself is immune to penetration. These goals ensure controlled access and protection.

Frequently Asked Viva Voce Questions

High-priority theoretical and lab evaluation questions typically tested by MAKAUT external examiners.

Related Course Resources

SYLLABUSCryptography and Network Security Syllabus & Handouts
Open resource
PYQSemester 8 PYQ Papers
Open resource

On This Page

18 Units
Cryptography Basics1
Public Key Cryptography1
Cipher Design Principles1
DES4
Block Cipher Modes2
RSA3
Message Authentication2
Hash Functions2
Digital Certificates2
SSL/TLS5
IPSec2
Kerberos1
PGP2
PGP and S/MIME1
Network Security2
Malware2
Password Security2
Firewalls1