Unit 3
๐ฏ Unit 3 Overview
Unit 3 covers security mechanisms used to verify message authenticity, integrity and identity.
It includes message authentication, digital signature, key management, hash functions,
DSS, cryptanalysis techniques and Kerberos authentication system.
Exam Tip: Message Authentication, Digital Signature, Hash Function, SHA, DSS and Kerberos are very important for RGPV exams.
๐ฉ Message Authentication
Message authentication is a security mechanism used to verify that a message is received
from the correct sender and has not been changed during transmission.
Goals of Message Authentication
- Verify sender identity.
- Check message integrity.
- Detect unauthorized modification.
- Prevent replay and forgery attacks.
โ๏ธ Digital Signature
Digital signature is an electronic signature used to verify the authenticity and integrity
of a digital message or document.
Working
- Sender creates hash of the message.
- Sender encrypts hash using private key.
- The encrypted hash becomes digital signature.
- Receiver decrypts signature using sender's public key.
- Receiver compares hash values to verify message.
Digital Signature provides Authentication, Integrity and Non-Repudiation.
๐ Key Management
Key management means generation, distribution, storage, usage and destruction of cryptographic keys.
Proper key management is necessary for secure communication.
Functions of Key Management
- Key generation
- Key distribution
- Key storage
- Key renewal
- Key revocation
- Key destruction
๐ค Key Exchange
Key exchange is the process of securely sharing cryptographic keys between communicating parties.
Examples
- Diffie-Hellman Key Exchange
- RSA based key exchange
- Public Key Infrastructure based exchange
๐ Hash Function
A hash function converts a message of any length into a fixed length hash value or message digest.
Properties of Secure Hash Function
- Fixed length output
- Fast computation
- Pre-image resistance
- Second pre-image resistance
- Collision resistance
- Avalanche effect
Message โ Hash Function โ Fixed Length Message Digest
๐ Universal Hashing
Universal hashing is a hashing method in which a hash function is selected randomly from a family
of hash functions. It is used to reduce the chances of collision.
Advantages
- Reduces collision probability.
- Improves security.
- Useful in authentication schemes.
๐งพ Cryptographic Hash Function
A cryptographic hash function is a special hash function used in security applications.
It is designed to be one-way and collision resistant.
Applications
- Password storage
- Digital signatures
- Message authentication
- File integrity checking
- Blockchain systems
๐ MD Algorithm
MD stands for Message Digest. MD algorithms are used to generate message digest from input data.
MD5 is a popular message digest algorithm, but it is now considered weak for secure applications.
Features
- Produces fixed length digest.
- Used for integrity checking.
- Fast computation.
- Older MD versions are vulnerable to collision attacks.
๐ก๏ธ Secure Hash Algorithm (SHA)
SHA is a family of cryptographic hash functions designed for secure hashing.
SHA is stronger than MD5 and widely used in digital signatures and certificates.
| SHA Version |
Output Size |
| SHA-1 |
160-bit |
| SHA-256 |
256-bit |
| SHA-512 |
512-bit |
๐ Digital Signature Standard (DSS)
Digital Signature Standard is a standard used for generating and verifying digital signatures.
It uses Digital Signature Algorithm.
Steps
- Generate hash of message.
- Create digital signature using private key.
- Send message with signature.
- Receiver verifies signature using public key.
๐ต๏ธ Cryptanalysis
Cryptanalysis is the study of breaking cryptographic systems without knowing the secret key.
Its aim is to find weaknesses in cryptographic algorithms.
Types of Attacks
- Ciphertext-only attack
- Known-plaintext attack
- Chosen-plaintext attack
- Chosen-ciphertext attack
โฑ๏ธ Time-Memory Trade-Off Attack
Time-memory trade-off attack reduces computation time by using precomputed data stored in memory.
It is commonly used in password cracking techniques.
Idea
- More memory can reduce attack time.
- Precomputed tables help recover keys or passwords faster.
- Rainbow tables are a common example.
๐ Differential Cryptanalysis
Differential cryptanalysis studies how differences in plaintext affect differences in ciphertext.
It is mostly used to attack block ciphers.
Purpose
- Analyze weakness of block ciphers.
- Find relation between input difference and output difference.
- Recover secret key information.
๐ Secure Channel
A secure channel provides safe communication between two parties using encryption,
authentication and integrity checking.
Requirements
- Confidentiality
- Integrity
- Authentication
- Replay protection
๐๏ธ Kerberos Authentication System
Kerberos is a network authentication protocol that uses tickets to allow secure authentication
over an insecure network.
Main Components
- Client
- Authentication Server
- Ticket Granting Server
- Service Server
- Key Distribution Center
Working
- Client requests authentication from Authentication Server.
- Authentication Server provides Ticket Granting Ticket.
- Client sends ticket to Ticket Granting Server.
- Ticket Granting Server issues service ticket.
- Client uses service ticket to access the service server.
Kerberos avoids sending password repeatedly over the network.
โ๏ธ Hash Function vs Digital Signature
| Hash Function |
Digital Signature |
| Generates fixed length message digest. |
Verifies authenticity of sender. |
| Provides integrity. |
Provides authentication, integrity and non-repudiation. |
| Does not use private key alone for signing. |
Uses sender private key. |
| Example: SHA-256 |
Example: RSA Signature, DSS |
โญ Important Questions
- Explain message authentication and its goals.
- Explain digital signature with working.
- Explain key management and key exchange.
- What is hash function? Explain its properties.
- Explain cryptographic hash function and its applications.
- Write short note on MD and SHA.
- Explain Digital Signature Standard.
- Explain cryptanalysis and its types.
- Explain differential cryptanalysis.
- Explain Kerberos authentication system.
๐ฅ Last Minute Revision
- Message authentication verifies sender and message integrity.
- Digital signature uses sender private key.
- Hash function gives fixed length message digest.
- SHA is stronger than MD5.
- DSS is used for digital signatures.
- Cryptanalysis means breaking cryptosystems.
- Differential cryptanalysis attacks block ciphers.
- Kerberos uses tickets for authentication.