Docsity

Stallings Cryptography and Network Security , Exams of Network security

Partial preview of the text

Download Stallings Cryptography and Network Security and more Exams Network security in PDF only on Docsity!

  • Table of Contents
  • Index

Cryptography and Network Security Principles and Practices, Fourth Edition By William Stallings Publisher : Prentice Hall Pub Date : November 16, 2005 Print ISBN-10 : 0-13-187316- Print ISBN-13 : 978-0-13-187316- eText ISBN-10 : 0-13-187319- eText ISBN-13 : 978-0-13-187319- Pages : 592

In this age of viruses and hackers, of electronic eavesdropping and electronic fraud, security is paramount.

As the disciplines of cryptography and network security have matured, more practical, readily available applications to enforce network security have developed. This text provides a practical survey of both the principles and practice of cryptography and network security. First, the basic issues to be addressed by a network security capability are explored through a tutorial and survey of cryptography and network security technology. Then, the practice of network security is explored via practical applications that have been implemented and are in use today.

Inside Front Cover InsideFrontCover

Inside Back Cover (^) InsideBackCover

  • Section 2.2. Substitution Techniques
  • Section 2.3. Transposition Techniques
  • Section 2.4. Rotor Machines
  • Section 2.5. Steganography
  • Section 2.6. Recommended Reading and Web Sites
  • Section 2.7. Key Terms, Review Questions, and Problems
  • Chapter 3. Block Ciphers and the Data Encryption Standard
    • Section 3.1. Block Cipher Principles
    • Section 3.2. The Data Encryption Standard
    • Section 3.3. The Strength of Des
    • Section 3.4. Differential and Linear Cryptanalysis
    • Section 3.5. Block Cipher Design Principles
    • Section 3.6. Recommended Reading
    • Section 3.7. Key Terms, Review Questions, and Problems
  • Chapter 4. Finite Fields
    • Section 4.1. Groups, Rings, and Fields
    • Section 4.2. Modular Arithmetic
    • Section 4.3. The Euclidean Algorithm
    • Section 4.4. Finite Fields of The Form GF(p)
    • Section 4.5. Polynomial Arithmetic
    • Section 4.6. Finite Fields Of the Form GF(2n)
    • Section 4.7. Recommended Reading and Web Sites
    • Section 4.8. Key Terms, Review Questions, and Problems
  • Chapter 5. Advanced Encryption Standard
    • Section 5.1. Evaluation Criteria For AES
    • Section 5.2. The AES Cipher
    • Section 5.3. Recommended Reading and Web Sites
    • Section 5.4. Key Terms, Review Questions, and Problems
    • Appendix 5A Polynomials with Coefficients in GF(28)
    • Appendix 5B Simplified AES
  • Chapter 6. More on Symmetric Ciphers
    • Section 6.1. Multiple Encryption and Triple DES
    • Section 6.2. Block Cipher Modes of Operation
    • Section 6.3. Stream Ciphers and RC4
    • Section 6.4. Recommended Reading and Web Site
    • Section 6.5. Key Terms, Review Questions, and Problems
  • Chapter 7. Confidentiality Using Symmetric Encryption
    • Section 7.1. Placement of Encryption Function
    • Section 7.2. Traffic Confidentiality
      • Section 7.3. Key Distribution
      • Section 7.4. Random Number Generation
      • Section 7.5. Recommended Reading and Web Sites
      • Section 7.6. Key Terms, Review Questions, and Problems
  • Part Two: Public-Key Encryption and Hash Functions
    • Chapter 8. Introduction to Number Theory
      • Section 8.1. Prime Numbers
      • Section 8.2. Fermat's and Euler's Theorems
      • Section 8.3. Testing for Primality
      • Section 8.4. The Chinese Remainder Theorem
      • Section 8.5. Discrete Logarithms
      • Section 8.6. Recommended Reading and Web Sites
      • Section 8.7. Key Terms, Review Questions, and Problems
    • Chapter 9. Public-Key Cryptography and RSA
      • Section 9.1. Principles of Public-Key Cryptosystems
      • Section 9.2. The RSA Algorithm
      • Section 9.3. Recommended Reading and Web Sites
      • Section 9.4. Key Terms, Review Questions, and Problems
      • Appendix 9A Proof of the RSA Algorithm
      • Appendix 9B The Complexity of Algorithms
    • Chapter 10. Key Management; Other Public-Key Cryptosystems
      • Section 10.1. Key Management
      • Section 10.2. Diffie-Hellman Key Exchange
      • Section 10.3. Elliptic Curve Arithmetic
      • Section 10.4. Elliptic Curve Cryptography
      • Section 10.5. Recommended Reading and Web Sites
      • Section 10.6. Key Terms, Review Questions, and Problems
    • Chapter 11. Message Authentication and Hash Functions
      • Section 11.1. Authentication Requirements
      • Section 11.2. Authentication Functions
      • Section 11.3. Message Authentication Codes
      • Section 11.4. Hash Functions
      • Section 11.5. Security of Hash Functions and Macs
      • Section 11.6. Recommended Reading
      • Section 11.7. Key Terms, Review Questions, and Problems
      • Appendix 11A Mathematical Basis of the Birthday Attack
    • Chapter 12. Hash and MAC Algorithms
      • Section 12.1. Secure Hash Algorithm
      • Section 12.2. Whirlpool
      • Section 12.3. HMAC
      • Section 12.4. CMAC
      • Section 12.5. Recommended Reading and Web Sites
      • Section 12.6. Key Terms, Review Questions, and Problems
    • Chapter 13. Digital Signatures and Authentication Protocols
      • Section 13.1. Digital Signatures
      • Section 13.2. Authentication Protocols
      • Section 13.3. Digital Signature Standard
      • Section 13.4. Recommended Reading and Web Sites
      • Section 13.5. Key Terms, Review Questions, and Problems
  • Part Three: Network Security Applications
    • Chapter 14. Authentication Applications
      • Section 14.1. Kerberos
      • Section 14.2. X.509 Authentication Service
      • Section 14.3. Public-Key Infrastructure
      • Section 14.4. Recommended Reading and Web Sites
      • Section 14.5. Key Terms, Review Questions, and Problems
      • Appendix 14A Kerberos Encryption Techniques
    • Chapter 15. Electronic Mail Security
      • Section 15.1. Pretty Good Privacy
      • Section 15.2. S/MIME
      • Section 15.3. Key Terms, Review Questions, and Problems
      • Appendix 15A Data Compression Using Zip
      • Appendix 15B Radix-64 Conversion
      • Appendix 15C PGP Random Number Generation
    • Chapter 16. IP Security
      • Section 16.1. IP Security Overview
      • Section 16.2. IP Security Architecture
      • Section 16.3. Authentication Header
      • Section 16.4. Encapsulating Security Payload
      • Section 16.5. Combining Security Associations
      • Section 16.6. Key Management
      • Section 16.7. Recommended Reading and Web Site
      • Section 16.8. Key Terms, Review Questions, and Problems
      • Appendix 16A Internetworking and Internet Protocols
    • Chapter 17. Web Security
      • Section 17.1. Web Security Considerations
      • Section 17.2. Secure Socket Layer and Transport Layer Security
      • Section 17.3. Secure Electronic Transaction
      • Section 17.4. Recommended Reading and Web Sites
      • Section 17.5. Key Terms, Review Questions, and Problems
  • Part Four: System Security
    • Chapter 18. Intruders
      • Section 18.1. Intruders
      • Section 18.2. Intrusion Detection
      • Section 18.3. Password Management
      • Section 18.4. Recommended Reading and Web Sites
      • Section 18.5. Key Terms, Review Questions, and Problems
      • Appendix 18A The Base-Rate Fallacy
    • Chapter 19. Malicious Software
      • Section 19.1. Viruses and Related Threats
      • Section 19.2. Virus Countermeasures
      • Section 19.3. Distributed Denial of Service Attacks
      • Section 19.4. Recommended Reading and Web Sites
      • Section 19.5. Key Terms, Review Questions, and Problems
    • Chapter 20. Firewalls
      • Section 20.1. Firewall Design Principles
      • Section 20.2. Trusted Systems
      • Section 20.3. Common Criteria for Information Technology Security Evaluation
      • Section 20.4. Recommended Reading and Web Sites
      • Section 20.5. Key Terms, Review Questions, and Problems
  • Appendix A. Standards and Standards-Setting Organizations
    • Section A.1. The Importance of Standards
    • Section A.2. Internet Standards and the Internet Society
    • Section A.3. National Institute of Standards and Technology
  • Appendix B. Projects for Teaching Cryptography and Network Security
    • Section B.1. Research Projects
    • Section B.2. Programming Projects
    • Section B.3. Laboratory Exercises
    • Section B.4. Writing Assignments
    • Section B.5. Reading/Report Assignments
  • Glossary
  • References
    • Abbreviations

Copyright

[Page ii]

Library of Congress Cataloging-in-Publication Data on File

Vice President and Editorial Director, ECS: Marcia J. Horton

Executive Editor: Tracy Dunkelberger

Editorial Assistant: Christianna Lee

Executive Managing Editor: Vince O'Brien

Managing Editor: Camille Trentacoste

Production Editor: Rose Kernan

Director of Creative Services: Paul Belfanti

Cover Designer: Bruce Kenselaar

Managing Editor, AV Management and Production: Patricia Burns

Art Editor: Gregory Dulles

Manufacturing Manager: Alexis Heydt-Long

Manufacturing Buyer: Lisa McDowell

Marketing Manager: Robin O'Brien

Marketing Assistant: Barrie Reinhold

© 2006 Pearson Education, Inc.

Pearson Prentice Hall

Pearson Education, Inc.

Upper Saddle River, NJ 07458

All rights reserved. No part of this book may be reproduced, in any form or by any means, without permission in writing from the publisher.

[Page xi]

Notation

Even the natives have difficulty mastering this peculiar vocabulary.

The Golden Bough , Sir James George Frazer

Symbol Expression Meaning

D, K D( K, Y ) Symmetric decryption of ciphertext Y using secret key K. D, PRa D( PR (^) a , Y ) Asymmetric decryption of ciphertext Y using A's private key PRa D, PU (^) a D( PU (^) a , Y ) Asymmetric decryption of ciphertext Y using A's public key PUa E, K E( K, X ) Symmetric encryption of plaintext X using secret key K. E, PRa E( PR (^) a , X) Asymmetric encryption of plaintext X using A's private key PRa E, PU (^) a E( PU (^) a , X) Asymmetric encryption of plaintext X using A's public key PUa K Secret key PRa Private key of user A PUa Public key of user A C, K C( K, X ) Message authentication code of message X using secret key K. GF( p ) The finite field of order p , where p is prime. The field is defined as the set Z (^) p together with the arithmetic operations modulo p.

GF(2 n ) The finite field of order 2 n. Z (^) n Set of nonnegative integers less than n gcd gcd( i , j ) Greatest common divisor; the largest positive integer that divides both i and j with no remainder on division. mod a mod m Remainder after division of a by m. mod, a b (mod m ) a^ mod^ m^ =^ b^ mod^ m

mod, a b (mod m ) a mod m b mod m dlog dlog a,p ( b ) Discrete logarithm of the number b for the base a (mod p )

φ φ( n ) The number of positive integers less than n and relatively prime to n. This is Euler's totient function.

Σ a 1 + a 2 + ... + a n

a 1 x a 2 x ... x a n

| i | j i divides j , which means that there is no remainder when j is divided by i

|,| | a | Absolute value of a

|| x || y x concatenated with y

x y x^ is approximately equal to^ y

x y Exclusive-OR ofof x and y for multiple-bit variables^ x^ and^ y^ for single-bit variables; Bitwise exclusive-OR

, x The largest integer less than or equal to^ x x S The element x is contained in the set S. A ( a 1 , a 2 , ..., a (^) k ) The integer A corresponds to the sequence of integers ( a 1 , a 2 , ..., a (^) k )

[Page xiii (continued)]

Objectives

It is the purpose of this book to provide a practical survey of both the principles and practice of cryptography and network security. In the first two parts of the book, the basic issues to be addressed by a network security capability are explored by providing a tutorial and survey of cryptography and network security technology. The latter part of the book deals with the practice of network security: practical applications that have been implemented and are in use to provide network security.

The subject, and therefore this book, draws on a variety of disciplines. In particular, it is impossible to appreciate the significance of some of the techniques discussed in this book without a basic understanding of number theory and some results from probability theory. Nevertheless, an attempt has been made to make the book self-contained. The book presents not only the basic mathematical results that are needed but provides the reader with an intuitive understanding of those results. Such background material is introduced as needed. This approach helps to motivate the material that is introduced, and the author considers this preferable to simply presenting all of the mathematical material in a lump at the beginning of the book.

[Page xiii (continued)]

Intended Audience

The book is intended for both an academic and a professional audience. As a textbook, it is intended as a one-semester undergraduate course in cryptography and network security for computer science, computer engineering, and electrical engineering majors. It covers the material in IAS2 Security Mechanisms, a core area in the Information Technology body of knowledge; NET4 Security, another core area in the Information Technology body of knowledge; and IT311, Cryptography, an advanced course; these subject areas are part of the Draft ACM/IEEE Computer Society Computing Curricula 2005.

[Page xiv]

The book also serves as a basic reference volume and is suitable for self-study.

[Page xiv (continued)]

Internet Services for Instructors and Students

There is a Web site for this book that provides support for students and instructors. The site includes links to other relevant sites, transparency masters of figures and tables in the book in PDF (Adobe Acrobat) format, and PowerPoint slides. The Web page is at WilliamStallings.com/Crypto/Crypto4e.html. As soon as typos or other errors are discovered, an errata list for this book will be available at WilliamStallings.com. In addition, the Computer Science Student Resource site, at WilliamStallings.com/ StudentSupport.html, provides documents, information, and useful links for computer science students and professionals.

[Page xiv (continued)]

Projects for Teaching Cryptography and Network Security

For many instructors, an important component of a cryptography or security course is a project or set of projects by which the student gets hands-on experience to reinforce concepts from the text. This book provides an unparalleled degree of support for including a projects component in the course. The instructor's manual not only includes guidance on how to assign and structure the projects, but also includes a set of suggested projects that covers a broad range of topics from the text:

[Page xv]

● Research projects: A series of research assignments that instruct the student to research a particular topic on the Internet and write a report ● Programming projects: A series of programming projects that cover a broad range of topics and that can be implemented in any suitable language on any platform ● Lab exercises: A series of projects that involve programming and experimenting with concepts from the book ● Writing assignments: A set of suggested writing assignments, by chapter ● Reading/report assignments: A list of papers in the literature, one for each chapter, that can be assigned for the student to read and then write a short report

See Appendix B for details.

[Page xvi]

Acknowledgments

This new edition has benefited from review by a number of people, who gave generously of their time and expertise. The following people reviewed all or a large part of the manuscript: Danny Krizanc (Wesleyan University), Breno de Medeiros (Florida State University), Roger H. Brown (Rensselaer at Hartford), Cristina Nita-Rotarul (Purdue University), and Jimmy McGibney (Waterford Institute of Technology).

Thanks also to the many people who provided detailed technical reviews of a single chapter: Richard Outerbridge, Jorge Nakahara, Jeroen van de Graaf, Philip Moseley, Andre Correa, Brian Bowling, James Muir, Andrew Holt, Décio Luiz Gazzoni Filho, Lucas Ferreira, Dr. Kemal Bicakci, Routo Terada, Anton Stiglic, Valery Pryamikov, and Yongge Wang.

Joan Daemen kindly reviewed the chapter on AES. Vincent Rijmen reviewed the material on Whirlpool. And Edward F. Schaefer reviewed the material on simplified AES.

The following people contributed homework problems for the new edition: Joshua Brandon Holden (Rose- Hulman Institute if Technology), Kris Gaj (George Mason University), and James Muir (University of Waterloo).

Sanjay Rao and Ruben Torres of Purdue developed the laboratory exercises that appear in the instructor's supplement. The following people contributed project assignments that appear in the instructor's supplement: Henning Schulzrinne (Columbia University); Cetin Kaya Koc (Oregon State University); and David Balenson (Trusted Information Systems and George Washington University).

Finally, I would like to thank the many people responsible for the publication of the book, all of whom did their usual excellent job. This includes the staff at Prentice Hall, particularly production manager Rose Kernan; my supplements manager Sarah Parker; and my new editor Tracy Dunkelberger. Also, Patricia M. Daly did the copy editing.

With all this assistance, little remains for which I can take full credit. However, I am proud to say that, with no help whatsoever, I selected all of the quotations.

[Page 1]

Chapter 0. Reader's Guide

0.1 Outline of this Book 0.2 Roadmap Subject Matter

Topic Ordering

0.3 Internet and Web Resources Web Sites for This Book

Other Web Sites

USENET Newsgroups

[Page 2]

The art of war teaches us to rely not on the likelihood of the enemy's not coming, but on our own readiness to receive him; not on the chance of his not attacking, but rather on the fact that we have made our position unassailable.

The Art of War , Sun Tzu

This book, with its accompanying Web site, covers a lot of material. Here we give the reader an overview.