Cryptography and Information Security (AI-703-A) Important Questions
By the Paperwala team · · Exam on Mon 21 Dec
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.
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.
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
Point
Passive
Active
Same or opposite
Threat to security
Yes
Yes
Same
Changes the data
No
Yes
Opposite
Easy to detect
No
Easier
Opposite
Best defence
Prevent, by encryption
Detect and recover
Opposite
Can hit any network
Yes
Yes
Same
Exam tip. Define attack, service and mechanism in three lines. List the services with one line each. Draw the network security model.
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.
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.
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
Point
Playfair
Hill
Same or opposite
Substitution cipher
Yes
Yes
Same
Unit of encryption
Pairs of letters
Blocks of m letters
Opposite
Key
Keyword square
Invertible matrix
Opposite
Maths used
Table rules
Matrix product mod 26
Opposite
Hides single letter counts
Yes
Yes
Same
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.
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)
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.
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
Point
DES
AES
Same or opposite
Symmetric block cipher
Yes
Yes
Same
Block size
64 bits
128 bits
Opposite
Key size
56 bits
128, 192 or 256 bits
Opposite
Structure
Feistel
Substitution-permutation network
Opposite
Uses rounds
Yes, 16
Yes, 10 to 14
Same
Exam tip. Draw one Feistel round. Write the F function in four steps. Close with the strength of DES and the brute force sum.
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
SubBytes: each byte replaced through an S-box.
ShiftRows: row r is rotated left by r bytes.
MixColumns: each column multiplied by a fixed matrix over GF(2^8).
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.
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
Point
SubBytes
MixColumns
Same or opposite
Step of an AES round
Yes
Yes
Same
Works on
Single bytes
Whole columns
Opposite
Gives
Confusion
Diffusion
Opposite
In the last round
Yes
No
Opposite
Has an inverse for decryption
Yes
Yes
Same
Exam tip. Draw the four steps of a round. Give the rounds for each key size. State what is different in the last round.
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
Choose primes p and q. Compute n = pq.
Compute φ(n) = (p - 1)(q - 1).
Choose e with gcd(e, φ(n)) = 1.
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
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
Point
RSA
Diffie-Hellman
Same or opposite
Public key method
Yes
Yes
Same
Main use
Encryption and signatures
Key agreement only
Opposite
Hard problem
Factoring
Discrete logarithm
Opposite
Encrypts a message directly
Yes
No
Opposite
Uses modular powers
Yes
Yes
Same
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.
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.
Alice computes K = YB^XA mod q. Bob computes K = YA^XB mod q. Both get the same K.
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
Point
Diffie-Hellman
KDC
Same or opposite
Gives a shared key
Yes
Yes
Same
Needs a trusted third party
No
Yes
Opposite
Secret ever sent
No
Yes, encrypted
Opposite
Weak against man-in-the-middle
Yes, without signatures
No
Opposite
Used in real protocols
Yes
Yes
Same
Exam tip. Write the four steps. Compute YA, YB and K with numbers. Always mention the man-in-the-middle attack and its fix.
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
Public values p, q, g. Private key x, public key y = g^x mod p.
Sign: pick k, r = (g^k mod p) mod q, s = k^-1 (H(M) + x r) mod q.
Verify: w = s^-1 mod q, u1 = H(M) w mod q, u2 = r w mod q.
v = (g^u1 y^u2 mod p) mod q. Valid if v = r.
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
Point
Digital signature
MAC
Same or opposite
Checks integrity
Yes
Yes
Same
Key type
Private and public pair
Shared secret
Opposite
Who can verify
Anyone
Only key holders
Opposite
Non-repudiation
Yes
No
Opposite
Uses a hash
Yes
Often
Same
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.
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).
One login gives access to many services (single sign-on).
Tickets expire, which limits replay.
Version 4 dialogue
Client to AS: user ID and the TGS name.
AS to client: a ticket-granting ticket (TGT) and a session key, encrypted with a key from the user's password.
Client to TGS: the TGT, an authenticator and the service name.
TGS to client: a service ticket.
Client to server: the service ticket and an authenticator.
Server to client: timestamp plus 1, if mutual authentication is asked.
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
Point
AS
TGS
Same or opposite
Part of the Kerberos server
Yes
Yes
Same
Issues
Ticket-granting ticket
Service tickets
Opposite
Contacted
Once per login
Once per service
Opposite
Needs the user's password key
Yes
No
Opposite
Uses symmetric keys
Yes
Yes
Same
Exam tip. Draw the four parties with six numbered messages. Say what each ticket holds. State one weakness, such as dependence on synchronised clocks.
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.
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
Point
SSL/TLS
SET
Same or opposite
Secures online data
Yes
Yes
Same
Scope
Any TCP traffic
Card payments only
Opposite
Hides card number from merchant
No
Yes
Opposite
Needs certificates
Server, client optional
All parties
Opposite
Uses public key methods
Yes
Yes
Same
Exam tip. Draw the handshake steps. Name the four SSL protocols. Explain the SET dual signature in two lines.
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.
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
Point
Packet filter
Application gateway
Same or opposite
Type of firewall
Yes
Yes
Same
Looks at
Headers only
Application data
Opposite
Speed
Fast
Slower
Opposite
Can block a bad URL
No
Yes
Opposite
Logs traffic
Yes
Yes
Same
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.
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.