Beginning Cryptography with Java (0764596330) cover image

Beginning Cryptography with Java

David Hook
ISBN: 978-0-7645-9633-9
Paperback
484 pages
August 2005
If you are an instructor, you may request an evaluation copy for this title.
Paperback Version: US $39.99 Add to Cart

Do you think you've discovered an error in this book? Please check the list of errata below to see if we've already addressed the error. If not, please submit the error via our Errata Form. We will attempt to verify your error; if you're right, we will post a correction below.

ChapterPageDetailsDatePrint Run
18 Error in Code
input text : 0112233445566778899aabbccddeeff
cipher text: dda97ca4864cdfe06eaf70a0ec0d7191 bytes: 16
plain text : 0112233445566778899aabbccddeeff bytes: 16

should be:

input text : 00112233445566778899aabbccddeeff
cipher text: dda97ca4864cdfe06eaf70a0ec0d7191 bytes: 16
plain text : 00112233445566778899aabbccddeeff bytes: 16
03/04/2008
58 Error in 22nd line of code
For: createKeyForAES, the @return doesn't have any informative text.

Consider:@ return a SecretKey of requested bitLength
10/21/05
65 Error in Text
under "MessageDigest.digest()"

error:
=====
MessageDigest.getDigestSize()

correction:
==========
MessageDigest.getDigestLength()
10/22/05
81 Error in Text
there is a missing space that causes the line to appear as if it is an extension of the call in the sentence before.

error:
=====
"[...] you will reset the message digest as a result of calling MessageDigest.digest().MessageDigest objects [...]"

correction:
==========
"MessageDigest.digest(). MessageDigest"

** Space between 'MessageDigest.digest().' and 'MessageDigest' that follows the digest()
10/23/05
89 Error in Text
under "RSAPrivateKeySpec and RSAPrivateKey", the second paragraph has a missing space after a comma.

Error:
=====
"[...] rather than a getPublicExponent(),the basic class [...]"

Correction:
=========
"[...] getPublicExponent(), the [...]"
10/23/05
93 Error in Text
there is an error in the letter case of a method. Just need to captialize the 'c' in coefficient.

error:
=====
getCrtcoefficient()

correction:
==========
getCrtCoefficient()
10/24/05
98 Error in Text
generator is being initialized with the incorrect size of 386 only because throughout the example, any text referencing the key (page 98: "[...] expand from 256 to 384 bits [...]" and page 99: "Of course, 384 bits is well below [...]"

error:
=====
generator.initialize(386, random);

correction:
==========
generator.initialize(384, random);
10/24/05
99 Error in Text
the reference to "OAEPwithSHA256andMGF1Padding" is not consistent with the letter case used throughout the book. Every place (even in the example above) where a similar format is used it would be more consistent to use:

OAEPWithSHA256AndMGF1Padding
10/24/05
104-105 Error in Formatting
Error (very minor) in consistency of text on page 104-105. Similar functions use either "IV" and "Iv".
error:
=====
"unpackKeyAndIV()"
"packKeyAndIv()"

correction:
==========
"unpackKeyAndIv()"

This is the format - uppercase 'I' and lowercase 'v' - that the author has standardized on throughout the text. If it is changed, the calls to this method also need to change throughout the example.
10/25/05
105 Error in formatting
On page 105, the output needs to be reformatted with "input" on the following line and also preceding text's font should be the "text" font as it is not explicitly written with System.out.println().

error:

=====

"Running the example, you should get the following output:input [...]"

correction:

==========

"[...] output:

input : 00beef"
10/25/05
105 1st Paragraph, Layout Error
First paragraph currently reads:

Running the example, you should get the following output:
input : 00beef
keyBlock length : 128
cipherText length: 3
plain : 00beef

It should read:

Running the example, you should get the following output:

input : 00beef
keyBlock length : 128
cipherText length: 3
plain : 00beef
1/15/06
428 Error in Text
Item 3 in the list reads:

SEC2v - "Recommended Elliptic Curve Domain Parameters,"
www.secg.org/download/aid-385/sec1_final.pdf

It should read:

SEC2 - "Recommended Elliptic Curve Domain Parameters,"
www.secg.org/download/aid-385/sec2_final.pdf
1/15/06