๐Ÿ” Cryptography Unit 3

Message Authentication, Digital Signature, Key Management, Hashing, DSS, Cryptanalysis and Kerberos

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

โœ๏ธ Digital Signature

Digital signature is an electronic signature used to verify the authenticity and integrity of a digital message or document.

Working

  1. Sender creates hash of the message.
  2. Sender encrypts hash using private key.
  3. The encrypted hash becomes digital signature.
  4. Receiver decrypts signature using sender's public key.
  5. 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 Exchange

Key exchange is the process of securely sharing cryptographic keys between communicating parties.

Examples

๐Ÿ” 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

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

๐Ÿงพ 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

๐Ÿ“Œ 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

๐Ÿ›ก๏ธ 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

  1. Generate hash of message.
  2. Create digital signature using private key.
  3. Send message with signature.
  4. 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

โฑ๏ธ 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

๐Ÿ“Š Differential Cryptanalysis

Differential cryptanalysis studies how differences in plaintext affect differences in ciphertext. It is mostly used to attack block ciphers.

Purpose

๐Ÿ”’ Secure Channel

A secure channel provides safe communication between two parties using encryption, authentication and integrity checking.

Requirements

๐ŸŽŸ๏ธ Kerberos Authentication System

Kerberos is a network authentication protocol that uses tickets to allow secure authentication over an insecure network.

Main Components

Working

  1. Client requests authentication from Authentication Server.
  2. Authentication Server provides Ticket Granting Ticket.
  3. Client sends ticket to Ticket Granting Server.
  4. Ticket Granting Server issues service ticket.
  5. 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

  1. Explain message authentication and its goals.
  2. Explain digital signature with working.
  3. Explain key management and key exchange.
  4. What is hash function? Explain its properties.
  5. Explain cryptographic hash function and its applications.
  6. Write short note on MD and SHA.
  7. Explain Digital Signature Standard.
  8. Explain cryptanalysis and its types.
  9. Explain differential cryptanalysis.
  10. Explain Kerberos authentication system.

๐Ÿ”ฅ Last Minute Revision

๐Ÿ”— Related Links