Skip to content
Textbook Guides

Solution Manual For Cryptography And Network Security: Principles And Practice, 6th Edition

Solution Manual For Cryptography And Network Security: Principles And Practice, 6th Edition gives you all the tools you need to solve your textbook problems effectively.

Preview 16 of 153 pages

See the first 16 pages exactly as they appear in the document.

  1. Page 1
    Read page 1 as text

    SOLUTIONS MANUAL C RYPTOGRAPHY AND N ETWORK S ECURITY : P RINCIPLES AND P RACTICE S IXTH E DITION C HAPTERS 1–11

  2. Page 2
  3. Page 3
    Read page 3 as text

    -4- Chapter 1 Introduction . ............................................................ 5 Chapter 2 Classical Encryption Techniques. .................................. 9 Chapter 3 Block Ciphers and the Data Encryption Standard. ......... 18 Chapter 4 Basic Concepts in Number Theory and Finite Fields . ..... 29 Chapter 5 Advanced Encryption Standard . ................................. 39 Chapter 6 Block Cipher Operation . ............................................ 46 Chapter 7 Pseudorandom Number Generation and Stream Ciphers 51 Chapter 8 Introduction to Number Theory . ................................ 55 Chapter 9 Public-Key Cryptography and RSA . ............................ 60 Chapter 10 Other Public-Key Cryptosystems . ............................. 70 Chapter 11 Cryptographic Hash Functions . ................................ 74 TABLE OF CONTENTS

  4. Page 4
    Read page 4 as text

    -5- C HAPTER 1 I NTRODUCTION A NSWERS TO Q UESTIONS 1.1 The OSI Security Architecture is a framework that provides a systematic way of defining the requirements for security and characterizing the approaches to satisfying those requirements. The document defines security attacks, mechanisms, and services, and the relationships among these categories. 1.2 Passive attacks have to do with eavesdropping on, or monitoring, transmissions. Electronic mail, file transfers, and client/server exchanges are examples of transmissions that can be monitored. Active attacks include the modification of transmitted data and attempts to gain unauthorized access to computer systems. 1.3 Passive attacks: release of message contents and traffic analysis. Active attacks: masquerade, replay, modification of messages, and denial of service. 1.4 Authentication: The assurance that the communicating entity is the one that it claims to be. Access control: The prevention of unauthorized use of a resource (i.e., this service controls who can have access to a resource, under what conditions access can occur, and what those accessing the resource are allowed to do). Data confidentiality: The protection of data from unauthorized disclosure. Data integrity: The assurance that data received are exactly as sent by an authorized entity (i.e., contain no modification, insertion, deletion, or replay). Nonrepudiation: Provides protection against denial by one of the entities involved in a communication of having participated in all or part of the communication. Availability service: The property of a system or a system resource being accessible and usable upon demand by an authorized system entity, according to performance specifications for the system (i.e., a system is available if it provides services according to the system design whenever users request them).

  5. Page 5
    Read page 5 as text

    -6- 1.5 See Table 1.3. A NSWERS TO P ROBLEMS 1.1 The system must keep personal identification numbers confidential, both in the host system and during transmission for a transaction. It must protect the integrity of account records and of individual transactions. Availability of the host system is important to the economic well being of the bank, but not to its fiduciary responsibility. The availability of individual teller machines is of less concern. 1.2 The system does not have high requirements for integrity on individual transactions, as lasting damage will not be incurred by occasionally losing a call or billing record. The integrity of control programs and configuration records, however, is critical. Without these, the switching function would be defeated and the most important attribute of all - availability - would be compromised. A telephone switching system must also preserve the confidentiality of individual calls, preventing one caller from overhearing another. 1.3 a. The system will have to assure confidentiality if it is being used to publish corporate proprietary material. b. The system will have to assure integrity if it is being used to laws or regulations. c. The system will have to assure availability if it is being used to publish a daily paper. 1.4 a. An organization managing public information on its web server determines that there is no potential impact from a loss of confidentiality (i.e., confidentiality requirements are not applicable), a moderate potential impact from a loss of integrity, and a moderate potential impact from a loss of availability. b. A law enforcement organization managing extremely sensitive investigative information determines that the potential impact from a loss of confidentiality is high, the potential impact from a loss of integrity is moderate, and the potential impact from a loss of availability is moderate. c. A financial organization managing routine administrative information (not privacy-related information) determines that the potential impact from a loss of confidentiality is low, the potential impact from a loss of integrity is low, and the potential impact from a loss of availability is low. d. The management within the contracting organization determines that: (i) for the sensitive contract information, the potential impact from a loss of confidentiality is moderate, the potential impact from a loss of

  6. Page 6
    Read page 6 as text

    -7- integrity is moderate, and the potential impact from a loss of availability is low; and (ii) for the routine administrative information (non-privacy-related information), the potential impact from a loss of confidentiality is low, the potential impact from a loss of integrity is low, and the potential impact from a loss of availability is low. e. The management at the power plant determines that: (i) for the sensor data being acquired by the SCADA system, there is no potential impact from a loss of confidentiality, a high potential impact from a loss of integrity, and a high potential impact from a loss of availability; and (ii) for the administrative information being processed by the system, there is a low potential impact from a loss of confidentiality, a low potential impact from a loss of integrity, and a low potential impact from a loss of availability. Examples from FIPS 199.

  7. Page 7
    Read page 7 as text

    -8- 1.5 Release of message contents Traffic analysis Masquerade Replay Modification of messages Denial of service Peer entity authentication Y Data origin authentication Y Access control Y Confidentiality Y Traffic flow confidentiality Y Data integrity Y Y Non-repudiation Y Availability Y 1.6 Release of message contents Traffic analysis Masquerade Replay Modification of messages Denial of service Encipherment Y Digital signature Y Y Y Access control Y Y Y Y Y Data integrity Y Y Authentication exchange Y Y Y Y Traffic padding Y Routing control Y Y Y Notarization Y Y Y

  8. Page 8
    Read page 8 as text

    -9- C HAPTER 2 C LASSICAL E NCRYPTION T ECHNIQUES A NSWERS TO Q UESTIONS 2.1 Plaintext, encryption algorithm, secret key, ciphertext, decryption algorithm. 2.2 Permutation and substitution. 2.3 One key for symmetric ciphers, two keys for asymmetric ciphers. 2.4 A stream cipher is one that encrypts a digital data stream one bit or one byte at a time. A block cipher is one in which a block of plaintext is treated as a whole and used to produce a ciphertext block of equal length. 2.5 Cryptanalysis and brute force. 2.6 Ciphertext only . One possible attack under these circumstances is the brute-force approach of trying all possible keys. If the key space is very large, this becomes impractical. Thus, the opponent must rely on an analysis of the ciphertext itself, generally applying various statistical tests to it. Known plaintext. The analyst may be able to capture one or more plaintext messages as well as their encryptions. With this knowledge, the analyst may be able to deduce the key on the basis of the way in which the known plaintext is transformed. Chosen plaintext. If the analyst is able to choose the messages to encrypt, the analyst may deliberately pick patterns that can be expected to reveal the structure of the key. 2.7 An encryption scheme is unconditionally secure if the ciphertext generated by the scheme does not contain enough information to determine uniquely the corresponding plaintext, no matter how much ciphertext is available. An encryption scheme is said to be computationally secure if: (1) the cost of breaking the cipher exceeds the value of the encrypted information, and (2) the time required to break the cipher exceeds the useful lifetime of the information.

  9. Page 9
    Read page 9 as text

    -10- 2.8 The Caesar cipher involves replacing each letter of the alphabet with the letter standing k places further down the alphabet, for k in the range 1 through 25. 2.9 A monoalphabetic substitution cipher maps a plaintext alphabet to a ciphertext alphabet, so that each letter of the plaintext alphabet maps to a single unique letter of the ciphertext alphabet. 2.10 The Playfair algorithm is based on the use of a 5 × 5 matrix of letters constructed using a keyword. Plaintext is encrypted two letters at a time using this matrix. 2.11 A polyalphabetic substitution cipher uses a separate monoalphabetic substitution cipher for each successive letter of plaintext, depending on a key. 2.12 1. There is the practical problem of making large quantities of random keys. Any heavily used system might require millions of random characters on a regular basis. Supplying truly random characters in this volume is a significant task. 2. Even more daunting is the problem of key distribution and protection. For every message to be sent, a key of equal length is needed by both sender and receiver. Thus, a mammoth key distribution problem exists. 2.13 A transposition cipher involves a permutation of the plaintext letters. 2.14 Steganography involves concealing the existence of a message. A NSWERS TO P ROBLEMS 2.1 a. No. A change in the value of b shifts the relationship between plaintext letters and ciphertext letters to the left or right uniformly, so that if the mapping is one-to-one it remains one-to-one. b. 2, 4, 6, 8, 10, 12, 13, 14, 16, 18, 20, 22, 24. Any value of a larger than 25 is equivalent to a mod 26. c. The values of a and 26 must have no common positive integer factor other than 1. This is equivalent to saying that a and 26 are relatively prime, or that the greatest common divisor of a and 26 is 1. To see this, first note that E( a , p ) = E( a , q ) (0 ≤ p ≤ q < 26) if and only if a ( p – q ) is divisible by 26. 1. Suppose that a and 26 are relatively prime. Then, a ( p – q ) is not divisible by 26, because there is no way to reduce the fraction a /26 and ( p – q ) is less than 26. 2. Suppose

  10. Page 10
    Read page 10 as text

    -11- that a and 26 have a common factor k > 1. Then E( a , p ) = E( a , q ), if q = p + m / k ≠ p . 2.2 There are 12 allowable values of a (1, 3, 5, 7, 9, 11, 15, 17, 19, 21, 23, 25). There are 26 allowable values of b , from 0 through 25). Thus the total number of distinct affine Caesar ciphers is 12 × 26 = 312. 2.3 Assume that the most frequent plaintext letter is e and the second most frequent letter is t. Note that the numerical values are e = 4; B = 1; t = 19; U = 20. Then we have the following equations: 1 = (4 a + b ) mod 26 20 = (19 a + b ) mod 26 Thus, 19 = 15 a mod 26. By trial and error, we solve: a = 3. Then 1 = (12 + b ) mod 26. By observation, b = 15. 2.4 A good glass in the Bishop's hostel in the Devil's seat—twenty-one degrees and thirteen minutes—northeast and by north—main branch seventh limb east side—shoot from the left eye of the death's head— a bee line from the tree through the shot fifty feet out. (from The Gold Bug , by Edgar Allan Poe) 2.5 a. The first letter t corresponds to A, the second letter h corresponds to B, e is C, s is D, and so on. Second and subsequent occurrences of a letter in the key sentence are ignored. The result ciphertext: SIDKHKDM AF HCRKIABIE SHIMC KD LFEAILA plaintext: basilisk to leviathan blake is contact b. It is a monoalphabetic cipher and so easily breakable. c. The last sentence may not contain all the letters of the alphabet. If the first sentence is used, the second and subsequent sentences may also be used until all 26 letters are encountered. 2.6 The cipher refers to the words in the page of a book. The first entry, 534, refers to page 534. The second entry, C2, refers to column two. The remaining numbers are words in that column. The names DOUGLAS and BIRLSTONE are simply words that do not appear on that page. Elementary! (from The Valley of Fear , by Sir Arthur Conan Doyle)

  11. Page 11
    Read page 11 as text

    -12- 2.7 a. 2 8 10 7 9 6 3 1 4 5 C R Y P T O G A H I B E A T T H E T H I R D P I L L A R F R O M T H E L E F T O U T S I D E T H E L Y C E U M T H E A T R E T O N I G H T A T S E V E N I F Y O U A R E D I S T R U S T F U L B R I N G T W O F R I E N D S 4 2 8 10 5 6 3 7 1 9 N E T W O R K S C U T R F H E H F T I N B R O U Y R T U S T E A E T H G I S R E H F T E A T Y R N D I R O L T A O U G S H L L E T I N I B I T I H I U O V E U F E D M T C E S A T W T L E D M N E D L R A P T S E T E R F O ISRNG BUTLF RRAFR LIDLP FTIYO NVSEE TBEHI HTETA EYHAT TUCME HRGTA IOENT TUSRU IEADR FOETO LHMET NTEDS IFWRO HUTEL EITDS b. The two matrices are used in reverse order. First, the ciphertext is laid out in columns in the second matrix, taking into account the order dictated by the second memory word. Then, the contents of the second matrix are read left to right, top to bottom and laid out in columns in the first matrix, taking into account the order dictated by the first memory word. The plaintext is then read left to right, top to bottom. c. Although this is a weak method, it may have use with time-sensitive information and an adversary without immediate access to good cryptanalysis (e.g., tactical use). Plus it doesn't require anything more than paper and pencil, and can be easily remembered. 2.8 SPUTNIK

  12. Page 12
    Read page 12 as text

    -13- 2.9 PT BOAT ONE OWE NINE LOST IN ACTION IN BLACKETT STRAIT TWO MILES SW MERESU COVE X CREW OF TWELVE X REQUEST ANY INFORMATION 2.10 a. L A R G E S T B C D F H I/J K M N O P Q U V W X Y Z b. O C U R E N A B D F G H I/J K L M P Q S T V W X Y Z 2.11 a. UZTBDLGZPNNWLGTGTUEROVLDBDUHFPERHWQSRZ b. UZTBDLGZPNNWLGTGTUEROVLDBDUHFPERHWQSRZ c. A cyclic rotation of rows and/or columns leads to equivalent substitutions. In this case, the matrix for part a of this problem is obtained from the matrix of Problem 2.10a, by rotating the columns by one step and the rows by three steps. 2.12 a. 25! ≈ 2 84 b. Given any 5x5 configuration, any of the four row rotations is equivalent, for a total of five equivalent configurations. For each of these five configurations, any of the four column rotations is equivalent. So each configuration in fact represents 25 equivalent configurations. Thus, the total number of unique keys is 25!/25 = 24! 2.13 A mixed Caesar cipher. The amount of shift is determined by the keyword, which determines the placement of letters in the matrix.

  13. Page 13
    Read page 13 as text

    -14- 2.14 a. We need an even number of letters, so append a "q" to the end of the message. Then convert the letters into the corresponding alphabetic positions: M e e t m e a t t h e u s u a l 13 5 5 20 13 5 1 20 20 8 5 21 19 21 1 12 P l a c e a t t e n r a t h e r 16 12 1 3 5 1 20 20 5 14 18 1 20 8 5 18 T h a n e i g h t o c l o c k q 20 8 1 14 5 9 7 8 20 15 3 12 15 3 11 17 The calculations proceed two letters at a time. The first pair: C 1 C 2 ! " # # $ % & & = 9 4 5 7 ! " # $ % & 13 5 ! " # $ % & mod 26 = 137 100 ! " # $ % & mod 26 = 7 22 ! " # $ % & The first two ciphertext characters are alphabetic positions 7 and 22, which correspond to GV. The complete ciphertext: GVUIGVKODZYPUHEKJHUZWFZFWSJSDZMUDZMYCJQMFWWUQRKR b. We first perform a matrix inversion. Note that the determinate of the encryption matrix is (9 × 7) – (4 × 5) = 43. Using the matrix inversion formula from the book: 9 4 5 7 ! " # $ % & − 1 = 1 43 7 − 4 − 5 9 ! " # $ % & mod 26 = 23 7 − 4 − 5 9 ! " # $ % & mod 26 = 161 − 92 − 115 9 ! " # $ % & mod 26 = 5 12 15 25 ! " # $ % & Here we used the fact that (43) –1 = 23 in Z 26 . Once the inverse matrix has been determined, decryption can proceed. Source: [LEWA00].

  14. Page 14
    Read page 14 as text

    -15- 2.15 Consider the matrix K with elements k ij to consist of the set of column vectors K j , where: K = k 11  k 1 n    k n 1  k nn ! " # # # # $ % & & & & and K j = k 1 j  k nj ! " # # # # $ % & & & & The ciphertext of the following chosen plaintext n -grams reveals the columns of K : (B, A, A, …, A, A) ↔ K 1 (A, B, A, …, A, A) ↔ K 2 : (A, A, A, …, A, B) ↔ K n 2.16 a. 7 × 13 4 b. 7 × 13 4 c. 13 4 d. 10 × 13 4 e. 2 4 × 13 2 f. 2 4 × (13 2 – 1) × 13 g . 37648 h. 23530 i. 157248 2.17 a. (80 – 10) mod 26 = 18 b. [(1 × 9 × 5) + (7 × 2 × 1) + (22 × 4 × 2) – (22 × 9 × 1) – (2 × 2 × 1) – (5 × 7 × 4)] mod 26 = (45 + 14 + 176 – 198 – 4 – 140) mod 26 = (–107) mod 26 = 23 2.18 We label the matrices as A and B , respectively. a. det( A ) = (44 – 3) mod 26 = 15 (det( A )) –1 = 7, using Table E.1 of Appendix E A − 1 = det A ( ) ( ) − 1 cof 11 A ( ) cof 21 A ( ) cof 12 A ( ) cof 22 A ( ) " # $ $ % & ' ' = 7 × 22 − 3 − 1 2 " # $ % & ' mod 26 = 154 –21 − 7 14 " # $ % & ' mod 26 = 24 5 19 14 " # $ % & '

  15. Page 15
    Read page 15 as text

    -16- b. det( B ) =[(6 × 16 × 15) + (24 × 10 × 20) + (1 × 13 × 17) – (1 × 16 × 20) – (10 × 17 × 6) – (15 × 24 × 13)] mod 26 = (1440 + 4800 + 221 – 320 – 1020 – 4680) mod 26 = 441 mod 26 = 25 We use the formulas from Appendix E b ij = cof ji K ( ) det K ( ) mod 26 = 17 × cof ji K ( ) mod 26 b 11 = 16 10 17 15 × 25mod 26 = 16 × 15 − 10 × 17 ( ) × 25mod 26 = 5100 mod 26 = 8 b 12 = − 24 1 17 15 × 25mod 26 = – 24 × 15 − 1 × 17 ( ) × 25mod 26 = –8575mod 26 = 5 b 13 = 24 1 16 10 × 25mod 26 = 24 × 10 − 1 × 16 ( ) × 25mod 26 = 5600 mod 26 = 10 b 21 = − 13 10 20 15 × 25mod 26 = – 13 × 15 − 10 × 20 ( ) × 25mod 26 = 125mod 26 = 21 b 22 = 6 1 20 15 × 25mod 26 = 6 × 15 − 1 × 20 ( ) × 25mod 26 = 1750 mod 26 = 8 b 23 = − 6 1 13 10 × 25mod 26 = − 6 × 10 − 1 × 13 ( ) × 25mod 26 = − 1175mod 26 = 21 b 31 = 13 16 20 17 × 25mod 26 = 13 × 17 − 16 × 20 ( ) × 25mod 26 = − 2475mod 26 = 21 b 32 = – 6 24 20 17 × 25mod 26 = – 6 × 17 − 24 × 20 ( ) × 25mod 26 = 9450 mod 26 = 12 b 33 = 6 24 13 16 × 25mod 26 = 6 × 16 − 24 × 13 ( ) × 25mod 26 = − 5400 mod 26 = 8 B -1 = 8 5 10 21 8 21 21 12 8 ! " # # # $ % & & & 2.19 key: legleglegle plaintext: explanation ciphertext: PBVWETLXOZR

  16. Page 16
    Read page 16 as text

    -17- 2.20 a. s e n d m o r e m o n e y 18 4 13 3 12 14 17 4 12 14 13 4 24 9 0 1 7 23 15 21 14 11 11 2 8 9 1 4 14 10 9 3 12 18 23 25 15 12 7 B E C K J D M S X Z P M H b. c a s h n o t n e e d e d 2 0 18 7 13 14 19 13 4 4 3 4 3 25 4 22 3 22 15 19 5 19 21 12 8 4 1 4 14 10 9 3 12 18 23 25 15 12 7 B E C K J D M S X Z P M H 2.21 your package ready Friday 21st room three Please destroy this immediately.

137 more pages in the full document

Unlock it once and it stays in your library, ready to chat with or turn into flashcards.

Unlock the full document
See all

Study this document with CramX

Once it is in your library, every tool can work from it.