AI-703-A Cryptography and Information Security

Cryptography and Information Security (AI-703-A) Important Questions

These are the 10 Cryptography and Information Security (AI-703-A) topics we chose from the RGPV syllabus for RGPV B.Tech CSE-AI semester 7. No past paper of this subject is on this site yet, so we could not count repeats.

Download Paperwala Imp Question & Answer (PDF)

How we made this list
  • All papers on this site: 0
  • Answers: We wrote these answers with AI help from the real RGPV papers and the syllabus. A teacher has not checked them yet, so read them with your syllabus. How we make these

10 Cryptography and Information Security topics from the syllabus

Chosen from the syllabus. No past paper of this subject is on this site yet, so repeats could not be counted.

Cryptography and Information Security important questions with answers

Each answer starts with a short answer. Then come how often it was asked, the points to write, a diagram and an exam tip. The topics are chosen from the syllabus.

Q1. Security attacks, services and mechanisms

Short answer. Security attacks harm the security of information, while security services protect against them through security mechanisms. The OSI security architecture (ITU-T X.800) groups all three.

From the syllabus · Unit 1

From the papers

  • “Unit 1: Security Attacks, Security Services and Security Mechanisms, A model for Network security.” (Syllabus)

Write these points

Attacks

  • Passive attacks: read or study traffic without changing it. Examples: release of message contents, traffic analysis.
  • Active attacks: change the data or the flow. Examples: masquerade, replay, modification of messages, denial of service.

Services

  • Authentication: the sender is who it claims to be.
  • Access control: only allowed users reach a resource.
  • Confidentiality: data is hidden from others.
  • Integrity: data is not changed on the way.
  • Non-repudiation: a sender cannot deny sending.
  • Availability: the service stays usable.

Mechanisms

  • Encipherment, digital signature, access control, data integrity checks.
  • Authentication exchange, traffic padding, routing control, notarisation.
Diagram: Security attacks, services and mechanisms

Name the attack.

Case 1: an attacker records a bank login message and sends it again later. This is a replay attack, an active attack.

Case 2: an attacker only counts how often two offices exchange mail. This is traffic analysis, a passive attack.

Real-life example

Think of a letter sent by post. Someone reading it on the way is a passive attack. Someone changing the amount on a cheque inside is an active attack. A sealed envelope gives confidentiality and a signature gives authentication. The post office is the channel.

Difference between passive and active attacks

PointPassiveActiveSame or opposite
Threat to securityYesYesSame
Changes the dataNoYesOpposite
Easy to detectNoEasierOpposite
Best defencePrevent, by encryptionDetect and recoverOpposite
Can hit any networkYesYesSame

Exam tip. Define attack, service and mechanism in three lines. List the services with one line each. Draw the network security model.

Back to the topic list

Q2. Substitution ciphers: Caesar, Playfair and Hill

Short answer. Substitution ciphers replace each letter or group of letters with another. The Caesar cipher shifts letters, Playfair encrypts letter pairs with a 5 x 5 key square and Hill encrypts blocks with a key matrix.

From the syllabus · Unit 1

From the papers

  • “Unit 1: Classical encryption techniques: Substitute Techniques.” (Syllabus)

Write these points

Caesar

  • C = (P + k) mod 26 and P = (C - k) mod 26.
  • Only 25 keys, so brute force breaks it at once.

Playfair

  • Fill a 5 x 5 square with the key, then the rest of the alphabet (I and J share a cell).
  • Split plaintext into pairs. Put X between a repeated letter pair.
  • Same row: take the letter to the right. Same column: take the letter below.
  • Otherwise: take the letter in the same row at the other letter's column.

Hill

  • C = K P mod 26, with K an m x m matrix.
  • K must have an inverse mod 26, so det(K) must share no factor with 26.
Diagram: Substitution ciphers: Caesar, Playfair and Hill

Worked results (from calc.py).

Caesar, k = 3: HELLO becomes KHOOR.

Playfair, key MONARCHY: BALLOON splits as BA LX LO ON and becomes IB SU PM NA.

Hill, K = [[3, 3], [2, 5]]: HELP becomes HIAT. det(K) = 9, which shares no factor with 26, so K can be inverted.

Real-life example

Children send secret notes by writing the next letter of the alphabet for each letter. That is a Caesar cipher. Anyone who tries 25 shifts can read it. Playfair and Hill mix letters in pairs or blocks, so the same letter does not always turn into the same letter.

Difference between Playfair and Hill cipher

PointPlayfairHillSame or opposite
Substitution cipherYesYesSame
Unit of encryptionPairs of lettersBlocks of m lettersOpposite
KeyKeyword squareInvertible matrixOpposite
Maths usedTable rulesMatrix product mod 26Opposite
Hides single letter countsYesYesSame

Exam tip. Write the rules, then encrypt a word step by step. In Hill, always check that the key matrix is invertible. Show the 5 x 5 square in Playfair.

Back to the topic list

Q3. Data Encryption Standard (DES)

Short answer. The Data Encryption Standard (DES) is a symmetric block cipher with a 64-bit block and a 56-bit effective key. It runs 16 rounds of a Feistel structure.

From the syllabus · Unit 2

From the papers

  • “Unit 2: Data Encryption Standards, the Strength of DES, Block Cipher Design Principles.” (Syllabus)

Write these points

Structure

  1. Initial permutation (IP) of the 64-bit block.
  2. 16 rounds: L(i) = R(i-1) and R(i) = L(i-1) XOR F(R(i-1), K(i)).
  3. 32-bit swap after round 16.
  4. Inverse initial permutation gives the ciphertext.

The F function

  • Expansion of 32 bits to 48 bits.
  • XOR with the 48-bit round key.
  • Eight S-boxes, each 6 bits in and 4 bits out.
  • A permutation P of the 32-bit result.

Strength of DES

  • Avalanche effect: one bit change flips about half the output bits.
  • The S-boxes resist differential cryptanalysis.
  • The 56-bit key is too short today. Brute force machines broke DES in the late 1990s.
Diagram: Data Encryption Standard (DES)

Brute force time (from calc.py).

Key space 2^56. On average half is searched: 2^55 keys.

At 10^9 keys a second: about 36 million seconds, roughly 417 days (1.14 years).

At 10^12 keys a second: about 0.42 days. This is why DES was replaced.

Real-life example

A Feistel round is like a two lane road where only one lane is repainted each time. The cars then swap lanes and the other lane is repainted. After 16 swaps every car has been changed many times. Running the same steps in reverse undoes all of it.

Difference between DES and AES

PointDESAESSame or opposite
Symmetric block cipherYesYesSame
Block size64 bits128 bitsOpposite
Key size56 bits128, 192 or 256 bitsOpposite
StructureFeistelSubstitution-permutation networkOpposite
Uses roundsYes, 16Yes, 10 to 14Same

Exam tip. Draw one Feistel round. Write the F function in four steps. Close with the strength of DES and the brute force sum.

Back to the topic list

Q4. Advanced Encryption Standard (AES)

Short answer. The Advanced Encryption Standard (AES) is a symmetric block cipher with a 128-bit block and a key of 128, 192 or 256 bits. It is a substitution-permutation network, chosen from the Rijndael design.

From the syllabus · Unit 2

From the papers

  • “Unit 2: Evaluation Criteria for AES, the AES Cipher.” (Syllabus)

Write these points

Evaluation criteria

  • Security: resistance to known attacks.
  • Cost: speed and memory in software and hardware.
  • Algorithm and implementation features: flexibility and simplicity.

Round steps on the 4 x 4 byte state

  1. SubBytes: each byte replaced through an S-box.
  2. ShiftRows: row r is rotated left by r bytes.
  3. MixColumns: each column multiplied by a fixed matrix over GF(2^8).
  4. AddRoundKey: XOR with the round key.
  • 10 rounds for 128-bit keys, 12 for 192, 14 for 256.
  • An extra AddRoundKey comes before round 1. The last round has no MixColumns.
  • Key expansion makes one round key per round from the cipher key.
Diagram: Advanced Encryption Standard (AES)

Key space (from calc.py).

A 128-bit key gives 2^128, about 3.4 x 10^38 keys.

Compared with DES this is 2^72 times more keys. Brute force is not practical.

Remember. AES is a US standard from NIST (FIPS 197). We have not checked the year it was published, so it is not printed here.

Real-life example

AES is like a Rubik's cube scrambled in four kinds of moves, repeated ten or more times. Each move is simple. After many rounds nobody can guess the starting pattern without knowing the exact moves, which is the key.

Difference between SubBytes and MixColumns

PointSubBytesMixColumnsSame or opposite
Step of an AES roundYesYesSame
Works onSingle bytesWhole columnsOpposite
GivesConfusionDiffusionOpposite
In the last roundYesNoOpposite
Has an inverse for decryptionYesYesSame

Exam tip. Draw the four steps of a round. Give the rounds for each key size. State what is different in the last round.

Back to the topic list

Q5. RSA algorithm

Short answer. RSA is a public key algorithm whose security rests on the difficulty of factoring the product of two large primes. A user publishes (e, n) and keeps d secret.

From the syllabus · Unit 3

From the papers

  • “Unit 3: Principles of Public key crypto Systems, the RSA algorithm.” (Syllabus)

Write these points

Key generation

  1. Choose primes p and q. Compute n = pq.
  2. Compute φ(n) = (p - 1)(q - 1).
  3. Choose e with gcd(e, φ(n)) = 1.
  4. Compute d = e^-1 mod φ(n).

Encryption and decryption

  • C = M^e mod n.
  • M = C^d mod n.
  • M must be less than n.
  • Signing uses d, checking uses e.

RSA with p = 17, q = 11, e = 7 (from calc.py).

n = 17 x 11 = 187. φ(n) = 16 x 10 = 160.

gcd(7, 160) = 1. d = 23, since 7 x 23 = 161 = 1 mod 160.

M = 88: C = 88^7 mod 187 = 11.

Check: 11^23 mod 187 = 88.

Attacks

  • Brute force on d, factoring n, timing attacks, chosen ciphertext attacks.
  • Use primes of hundreds of digits and padding such as OAEP.
RSA in use
RSA in use

Real-life example

A shop has a letter box with a slot that anyone can use. Only the owner has the key to open it. The slot is the public key. The key in the owner's pocket is the private key. Customers drop orders in that only the owner reads.

Difference between RSA and Diffie-Hellman

PointRSADiffie-HellmanSame or opposite
Public key methodYesYesSame
Main useEncryption and signaturesKey agreement onlyOpposite
Hard problemFactoringDiscrete logarithmOpposite
Encrypts a message directlyYesNoOpposite
Uses modular powersYesYesSame

Exam tip. Write the four key generation steps with numbers. Compute C and then check by decrypting. Marks are lost when d is not checked.

Back to the topic list

Q6. Diffie-Hellman key exchange

Short answer. Diffie-Hellman key exchange lets two users agree on a shared secret key over an open channel. Its security rests on the difficulty of the discrete logarithm.

From the syllabus · Unit 3

From the papers

  • “Unit 3: Diffie Hellman Key Exchange, Key Management.” (Syllabus)

Write these points

Steps

  1. Agree on a prime q and a primitive root a.
  2. Alice picks secret XA and sends YA = a^XA mod q.
  3. Bob picks secret XB and sends YB = a^XB mod q.
  4. Alice computes K = YB^XA mod q. Bob computes K = YA^XB mod q. Both get the same K.
Diagram: Diffie-Hellman key exchange

q = 353, a = 3, XA = 97, XB = 233 (from calc.py).

YA = 3^97 mod 353 = 40. YB = 3^233 mod 353 = 248.

Alice: K = 248^97 mod 353 = 160. Bob: K = 40^233 mod 353 = 160.

An eavesdropper sees 40 and 248 but must solve a discrete log to find 97 or 233.

Man-in-the-middle

  • Plain Diffie-Hellman does not authenticate the users.
  • Darth can swap YA and YB with his own values and share one key with each side.
  • Fix: sign the public values or use certificates.

Real-life example

Two friends mix paint in public. Each adds a secret colour to a shared base colour and swaps the mixed tins. Each then adds their own secret colour again. Both end with the same final shade, while a watcher who saw only the swapped tins cannot separate the secret colours.

Difference between Diffie-Hellman and symmetric key distribution by a KDC

PointDiffie-HellmanKDCSame or opposite
Gives a shared keyYesYesSame
Needs a trusted third partyNoYesOpposite
Secret ever sentNoYes, encryptedOpposite
Weak against man-in-the-middleYes, without signaturesNoOpposite
Used in real protocolsYesYesSame

Exam tip. Write the four steps. Compute YA, YB and K with numbers. Always mention the man-in-the-middle attack and its fix.

Back to the topic list

Q7. Digital signature and DSS

Short answer. A digital signature is a value made with the signer's private key that anyone can check with the public key. The Digital Signature Standard (DSS) uses the DSA algorithm.

From the syllabus · Unit 3

From the papers

  • “Unit 3: Digital Signature, Authentication Protocol, Digital Signature Standard.” (Syllabus)

Write these points

Properties

  • Proves the author, the date and the content.
  • Can be checked by a third party, so it settles disputes.
  • Gives non-repudiation, which a MAC cannot.

DSA

  1. Public values p, q, g. Private key x, public key y = g^x mod p.
  2. Sign: pick k, r = (g^k mod p) mod q, s = k^-1 (H(M) + x r) mod q.
  3. Verify: w = s^-1 mod q, u1 = H(M) w mod q, u2 = r w mod q.
  4. v = (g^u1 y^u2 mod p) mod q. Valid if v = r.
Diagram: Digital signature and DSS

Toy DSA: p = 23, q = 11, g = 4, x = 3, H(M) = 5, k = 7 (from calc.py).

y = 4^3 mod 23 = 18. r = (4^7 mod 23) mod 11 = 8.

s = 7^-1 (5 + 3 x 8) mod 11 = 1.

Verify: w = 1, u1 = 5, u2 = 8, v = (4^5 x 18^8 mod 23) mod 11 = 8 = r. Valid.

Remember. Real DSA uses primes of thousands of bits. These tiny numbers only show the steps.

Real-life example

Signing a cheque proves it came from the account holder. The bank compares the signature with its record. A digital signature works the same way, but nobody can copy it from one document to another because it depends on the document's hash.

Difference between digital signature and MAC

PointDigital signatureMACSame or opposite
Checks integrityYesYesSame
Key typePrivate and public pairShared secretOpposite
Who can verifyAnyoneOnly key holdersOpposite
Non-repudiationYesNoOpposite
Uses a hashYesOftenSame

Exam tip. List the properties. Write the DSA sign and verify formulas. A toy example with numbers that ends in v = r earns full marks.

Back to the topic list

Q8. Kerberos

Short answer. Kerberos is an authentication service that lets users prove who they are to servers on an open network. It uses symmetric keys and a trusted Authentication Server (AS) and Ticket-Granting Server (TGS).

From the syllabus · Unit 4

From the papers

  • “Unit 4: Authentication application: Kerberos.” (Syllabus)

Write these points

Goals

  • Passwords never travel on the network.
  • One login gives access to many services (single sign-on).
  • Tickets expire, which limits replay.

Version 4 dialogue

  1. Client to AS: user ID and the TGS name.
  2. AS to client: a ticket-granting ticket (TGT) and a session key, encrypted with a key from the user's password.
  3. Client to TGS: the TGT, an authenticator and the service name.
  4. TGS to client: a service ticket.
  5. Client to server: the service ticket and an authenticator.
  6. Server to client: timestamp plus 1, if mutual authentication is asked.
Diagram: Kerberos

Why tickets have lifetimes.

A TGT valid for 8 hours lets a student log in once in the morning and use the library, mail and printing all day.

A stolen ticket stops working at the end of its lifetime. The authenticator also carries a timestamp, so an old copy is refused.

Remember. Kerberos version 5 adds better encryption choices and ticket forwarding. The 8 hour lifetime is a common setting, not a fixed rule.

Real-life example

At a college fest, you show your ID card once at the main gate and get a wristband. With the wristband you enter each event without showing the ID again. The gate is the AS. The wristband is the ticket-granting ticket.

Difference between AS and TGS

PointASTGSSame or opposite
Part of the Kerberos serverYesYesSame
IssuesTicket-granting ticketService ticketsOpposite
ContactedOnce per loginOnce per serviceOpposite
Needs the user's password keyYesNoOpposite
Uses symmetric keysYesYesSame

Exam tip. Draw the four parties with six numbered messages. Say what each ticket holds. State one weakness, such as dependence on synchronised clocks.

Back to the topic list

Q9. SSL, TLS and SET

Short answer. SSL and its successor TLS secure data between a browser and a server over TCP. SET (Secure Electronic Transaction) was a protocol for safe card payments over the internet.

From the syllabus · Unit 5

From the papers

  • “Unit 5: Web security: Requirements, Secure Socket Layer (SSL) and Transport Layer Security (TLS), Secure Electronic Transaction (SET).” (Syllabus)

Write these points

Web security requirements

  • Threats: eavesdropping, data change, fake servers, denial of service.
  • Solutions at the IP level (IPSec), transport level (SSL/TLS) or application level (SET).

SSL/TLS layers

  • Record protocol: fragments, compresses, adds a MAC and encrypts data.
  • Handshake protocol: agrees on algorithms and keys, checks certificates.
  • Change cipher spec and alert protocols.
Diagram: SSL, TLS and SET

Record count (from calc.py).

The record layer fragments data into pieces of at most 2^14 = 16,384 bytes.

A 40,000 byte page needs 3 records.

SET

  • Parties: cardholder, merchant, issuer, acquirer, payment gateway, CA.
  • Dual signature: links order information and payment information.
  • The merchant cannot see the card number. The bank cannot see the order details.

Remember. Version names and the exact handshake differ between SSL 3.0 and the TLS versions. The figure shows the classic RSA handshake.

Real-life example

When you pay a college fee online, the browser shows a padlock. TLS has checked the bank's certificate and set up keys, so nobody on the Wi-Fi can read your card details. SET tried to go further by hiding the card number even from the shop.

Difference between SSL/TLS and SET

PointSSL/TLSSETSame or opposite
Secures online dataYesYesSame
ScopeAny TCP trafficCard payments onlyOpposite
Hides card number from merchantNoYesOpposite
Needs certificatesServer, client optionalAll partiesOpposite
Uses public key methodsYesYesSame

Exam tip. Draw the handshake steps. Name the four SSL protocols. Explain the SET dual signature in two lines.

Back to the topic list

Q10. Firewalls, intruders, viruses and trusted systems

Short answer. A firewall is a system between a trusted network and the internet that allows or blocks traffic by rules. It helps stop intruders and viruses, while trusted systems enforce security inside a computer.

From the syllabus · Unit 5

From the papers

  • “Unit 5: Intruders, Viruses and related threats. Firewall: Firewall Design principles, Trusted Systems.” (Syllabus)

Write these points

Firewall design principles

  • All traffic must pass through the firewall.
  • Only traffic allowed by the policy may pass.
  • The firewall itself must resist attack.

Types

  • Packet filter: checks IP addresses, ports and protocol.
  • Stateful inspection: tracks connections.
  • Application-level gateway (proxy): reads the application protocol.
  • Circuit-level gateway: relays TCP connections.
Diagram: Firewalls, intruders, viruses and trusted systems

Intruders and viruses

  • Intruders: masquerader, misfeasor, clandestine user. Defence: strong passwords, intrusion detection.
  • Virus phases: dormant, propagation, triggering, execution.
  • Worms spread by themselves. Trojans hide inside useful programs.

Trusted systems

  • A reference monitor checks every access. It must be complete, isolated and verifiable.

Packet filter rules.

Rule 1: allow TCP to port 443 on the web server. Rule 2: allow TCP to port 25 on the mail server. Rule 3: deny all.

A packet to port 443 on the web server passes on rule 1.

A packet to port 23 (telnet) matches only rule 3, so it is dropped.

Real-life example

A housing society gate lets in residents and listed visitors. A guard who remembers who went in can let them out again, like a stateful firewall. A delivery boy who leaves the parcel at the gate is handled by a proxy: the guard takes it in on his behalf.

Difference between packet filter and application gateway

PointPacket filterApplication gatewaySame or opposite
Type of firewallYesYesSame
Looks atHeaders onlyApplication dataOpposite
SpeedFastSlowerOpposite
Can block a bad URLNoYesOpposite
Logs trafficYesYesSame

Exam tip. Write the three design principles first. Name the four firewall types with one line each. Add the virus phases and the reference monitor for full marks.

Back to the topic list

Start with the latest papers

Previous year papers will be added soon!

Cryptography and Information Security (AI-703-A) FAQs

What are the most important topics in Cryptography and Information Security?

No past paper of this subject is on this site yet, so the topics were chosen from the syllabus. The first five: Security attacks, services and mechanisms; Substitution ciphers: Caesar, Playfair and Hill; Data Encryption Standard (DES); Advanced Encryption Standard (AES); RSA algorithm.

How were these Cryptography and Information Security important questions chosen?

Each topic was taken from the syllabus units. No past paper was available to count repeats, and the answers are not teacher-reviewed, so use them together with your syllabus.

Is there a PDF of Cryptography and Information Security important questions with answers?

Yes. The Paperwala Imp Question & Answer PDF for Cryptography and Information Security is free to download from this page.

The 10 topics of Cryptography and Information Security (AI-703-A) for RGPV B.Tech CSE-AI semester 7, chosen from the syllabus. No past paper of this subject is on this site yet, so repeats could not be counted.