Computer Security: Principles and Practice First Edition by William Stallings and Lawrie Brown Lecture slides by Lawrie Brown Chapter 2 – Cryptographic.

Slides:



Advertisements
Similar presentations
Chapter 3 Public Key Cryptography and Message authentication.
Advertisements

Sri Lanka Institute of Information Technology
Digital Signatures and Hash Functions. Digital Signatures.
First Edition by William Stallings and Lawrie Brown Lecture slides by Lawrie Brown and edited by Archana Chidanandan Cryptographic Tools.
CC3.12 Erdal KOSE Privacy & Digital Security Encryption.
Dr Alejandra Flores-Mosri Message Authentication Internet Management & Security 06 Learning outcomes At the end of this session, you should be able to:
BY MUKTADIUR RAHMAN MAY 06, 2010 INTERODUCTION TO CRYPTOGRAPHY.
Information Security and Management 11
Cryptographic Technologies
Henric Johnson1 Chapter3 Public-Key Cryptography and Message Authentication Henric Johnson Blekinge Institute of Technology, Sweden
Secure Hashing and DSS Sultan Almuhammadi ICS 454 Principles of Cryptography.
Fall 2010/Lecture 311 CS 426 (Fall 2010) Public Key Encryption and Digital Signatures.
Cryptography and Network Security Chapter 11 Fourth Edition by William Stallings Lecture slides by Lawrie Brown/Mod. & S. Kondakci.
Lecture 23 Symmetric Encryption
Cryptography1 CPSC 3730 Cryptography Chapter 11, 12 Message Authentication and Hash Functions.
Public Key Cryptography RSA Diffie Hellman Key Management Based on slides by Dr. Lawrie Brown of the Australian Defence Force Academy, University College,
Lecture 4 Cryptographic Tools (cont) modified from slides of Lawrie Brown.
Encryption Methods By: Michael A. Scott
Lecture 3: Cryptographic Tools
Network Security Sorina Persa Group 3250 Group 3250.
1 Message Authentication and Hash Functions Authentication Requirements Authentication Functions Message Authentication Codes Hash Functions Security of.
CRYPTOGRAPHIC DATA INTEGRITY ALGORITHMS
Network Security Essentials Fifth Edition by William Stallings Fifth Edition by William Stallings.
Chapter 8.  Cryptography is the science of keeping information secure in terms of confidentiality and integrity.  Cryptography is also referred to as.
Introduction to Public Key Cryptography
Cryptography and Network Security Chapter 11 Fifth Edition by William Stallings Lecture slides by Lawrie Brown.
Lecture 3: Cryptographic Tools modified from slides of Lawrie Brown.
Homework Assignment 03  Problems 1.1, 1.2, 1.4  ComputerSecurity/assignments/assignment03/a ssignment03.doc.
1 Public-Key Cryptography and Message Authentication Ola Flygt Växjö University, Sweden
© Neeraj Suri EU-NSF ICT March 2006 DEWSNet Dependable Embedded Wired/Wireless Networks MUET Jamshoro Computer Security: Principles and Practice Slides.
Lecture slides prepared for “Computer Security: Principles and Practice”, 2/e, by William Stallings and Lawrie Brown, Chapter 21 “Public-Key Cryptography.
Acknowledgements: William Stallings.William Stallings All rights Reserved Session 4 Public Key Cryptography (Part 2) Network Security Essentials Application.
Message Authentication  message authentication is concerned with: protecting the integrity of a message protecting the integrity of a message validating.
Information Security Principles Assistant Professor Dr. Sana’a Wafa Al-Sayegh 1 st Semester ITGD 2202 University of Palestine.
1 Chapter 11: Message Authentication and Hash Functions Fourth Edition by William Stallings Lecture slides by Lawrie Brown (modified by Prof. M. Singhal,
Message Authentication Requirements Disclosure Release of message contents to any person or process not possessing the appropriate cryptographic key Traffic.
Hash Functions A hash function H accepts a variable-length block of data M as input and produces a fixed-size hash value h = H(M) Principal object is.
Network Security. Security Threats 8Intercept 8Interrupt 8Modification 8Fabrication.
Key Management Workshop November 1-2, Cryptographic Algorithms, Keys, and other Keying Material  Approved cryptographic algorithms  Security.
Chapter 20 Symmetric Encryption and Message Confidentiality.
CSCE 201 Introduction to Information Security Fall 2010 Data Protection.
Chapter 20 Symmetric Encryption and Message Confidentiality.
Network Security Lecture 11 Presented by: Dr. Munam Ali Shah.
4 th lecture.  Message to be encrypted: HELLO  Key: XMCKL H E L L O message 7 (H) 4 (E) 11 (L) 11 (L) 14 (O) message + 23 (X) 12 (M) 2 (C) 10 (K) 11.
Basic Cryptography 1. What is cryptography? Cryptography is a mathematical method of protecting information –Cryptography is part of, but not equal to,
BASIC CRYPTOGRAPHIC CONCEPTS. Public Key Cryptography  Uses two keys for every simplex logical communication link.  Public key  Private key  The use.
Chapter 21 Public-Key Cryptography and Message Authentication.
Lecture slides prepared for “Computer Security: Principles and Practice”, 3/e, by William Stallings and Lawrie Brown, Chapter 2 “Cryptographic Tools”.
1 Public-Key Cryptography and Message Authentication.
Cryptography and Network Security Chapter 9 - Public-Key Cryptography
11.1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 11 Message Integrity and Message Authentication.
1 Number Theory and Advanced Cryptography 6. Digital Signature Chih-Hung Wang Sept Part I: Introduction to Number Theory Part II: Advanced Cryptography.
Chapter 11 Message Authentication and Hash Functions.
Cryptography and Network Security Chapter 12 Fifth Edition by William Stallings Lecture slides by Lawrie Brown.
Cryptography 1 Crypto Cryptography 2 Crypto  Cryptology  The art and science of making and breaking “secret codes”  Cryptography  making “secret.
Lecture 23 Symmetric Encryption
Cryptography and Network Security (CS435) Part Nine (Message Authentication)
Intro to Cryptography Lesson Introduction
Cryptography and Network Security Third Edition by William Stallings Lecture slides by Lawrie Brown.
Computer Security Lecture 5 Ch.9 Public-Key Cryptography And RSA Prepared by Dr. Lamiaa Elshenawy.
Hashes Lesson Introduction ●The birthday paradox and length of hash ●Secure hash function ●HMAC.
IT 221: Introduction to Information Security Principles Lecture 5: Message Authentications, Hash Functions and Hash/Mac Algorithms For Educational Purposes.
1 Public Key Cryptography. 2 Public Key Cryptography Agenda: Message authentication – authentication codes and hash functions Public key encryption –
Department of Computer Science Chapter 5 Introduction to Cryptography Semester 1.
CS457 Introduction to Information Security Systems
Cryptographic Tools cryptographic algorithms important element in security services review various types of elements symmetric encryption public-key (asymmetric)
Computer Security: Principles and Practice
Presentation transcript:

Computer Security: Principles and Practice First Edition by William Stallings and Lawrie Brown Lecture slides by Lawrie Brown Chapter 2 – Cryptographic Tools

Cryptographic Tools  cryptographic algorithms important element in security services  review various types of elements symmetric encryption symmetric encryption public-key (asymmetric) encryption public-key (asymmetric) encryption digital signatures and key management digital signatures and key management secure hash functions secure hash functions  example is use to encrypt stored data

Symmetric Encryption

Attacking Symmetric Encryption  cryptanalysis rely on nature of the algorithm rely on nature of the algorithm plus some knowledge of plaintext characteristics plus some knowledge of plaintext characteristics even some sample plaintext-ciphertext pairs even some sample plaintext-ciphertext pairs exploits characteristics of algorithm to deduce specific plaintext or key exploits characteristics of algorithm to deduce specific plaintext or key  brute-force attack try all possible keys on some ciphertext until get an intelligible translation into plaintext try all possible keys on some ciphertext until get an intelligible translation into plaintext

Exhaustive Key Search

Symmetric Encryption Algorithms

DES and Triple-DES  Data Encryption Standard (DES) is the most widely used encryption scheme uses 64 bit plaintext block and 56 bit key to produce a 64 bit ciphertext block uses 64 bit plaintext block and 56 bit key to produce a 64 bit ciphertext block concerns about algorithm & use of 56-bit key concerns about algorithm & use of 56-bit key  Triple-DES repeats basic DES algorithm three times repeats basic DES algorithm three times using either two or three unique keys using either two or three unique keys much more secure but also much slower much more secure but also much slower

Advanced Encryption Standard (AES)  needed a better replacement for DES  NIST called for proposals in 1997  selected Rijndael in Nov 2001  published as FIPS 197  symmetric block cipher  uses 128 bit data & 128/192/256 bit keys  now widely available commercially

Block verses Stream Ciphers

Message Authentication  protects against active attacks  verifies received message is authentic contents unaltered contents unaltered from authentic source from authentic source timely and in correct sequence timely and in correct sequence  can use conventional encryption only sender & receiver have key needed only sender & receiver have key needed  or separate authentication mechanisms append authentication tag to cleartext message append authentication tag to cleartext message

Message Authentication Codes

Secure Hash Functions

Message Auth

Hash Function Requirements   applied to any size data   H produces a fixed-length output.   H(x) is relatively easy to compute for any given x   one-way property computationally infeasible to find x such that H(x) = h   weak collision resistance computationally infeasible to find y ≠ x such that H(y) = H(x)   strong collision resistance computationally infeasible to find any pair (x, y) such that H(x) = H(y)

Hash Functions  two attack approaches cryptanalysis cryptanalysis exploit logical weakness in algexploit logical weakness in alg brute-force attack brute-force attack trial many inputstrial many inputs strength proportional to size of hash code ( 2 n/2 )strength proportional to size of hash code ( 2 n/2 )  SHA most widely used hash algorithm SHA-1 gives 160-bit hash SHA-1 gives 160-bit hash more recent SHA-256, SHA-384, SHA-512 provide improved size and security more recent SHA-256, SHA-384, SHA-512 provide improved size and security

Public Key Encryption

Public Key Authentication

Public Key Requirements 1. computationally easy to create key pairs 2. computationally easy for sender knowing public key to encrypt messages 3. computationally easy for receiver knowing private key to decrypt ciphertext 4. computationally infeasible for opponent to determine private key from public key 5. computationally infeasible for opponent to otherwise recover original message 6. useful if either key can be used for each role

Public Key Algorithms  RSA (Rivest, Shamir, Adleman) developed in 1977 developed in 1977 only widely accepted public-key encryption alg only widely accepted public-key encryption alg given tech advances need bit keys given tech advances need bit keys  Diffie-Hellman key exchange algorithm only allows exchange of a secret key only allows exchange of a secret key  Digital Signature Standard (DSS) provides only a digital signature function with SHA-1 provides only a digital signature function with SHA-1  Elliptic curve cryptography (ECC) new, security like RSA, but with much smaller keys new, security like RSA, but with much smaller keys

Public Key Certificates

Digital Envelopes

Random Numbers  random numbers have a range of uses  requirements:  randomness based on statistical tests for uniform distribution and independence based on statistical tests for uniform distribution and independence  unpredictability successive values not related to previous successive values not related to previous clearly true for truly random numbers clearly true for truly random numbers but more commonly use generator but more commonly use generator

Pseudorandom verses Random Numbers  often use algorithmic technique to create pseudorandom numbers which satisfy statistical randomness tests which satisfy statistical randomness tests but likely to be predictable but likely to be predictable  true random number generators use a nondeterministic source e.g. radiation, gas discharge, leaky capacitors e.g. radiation, gas discharge, leaky capacitors increasingly provided on modern processors increasingly provided on modern processors

Practical Application: Encryption of Stored Data  common to encrypt transmitted data  much less common for stored data which can be copied, backed up, recovered which can be copied, backed up, recovered  approaches to encrypt stored data: back-end appliance back-end appliance library based tape encryption library based tape encryption background laptop/PC data encryption background laptop/PC data encryption

Summary  introduced cryptographic algorithms  symmetric encryption algorithms for confidentiality  message authentication & hash functions  public-key encryption  digital signatures and key management  random numbers