Errata

Java Cryptography

Errata for Java Cryptography

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".

The following errata were submitted by our customers and approved as valid errors by the author or editor.

Color key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted By Date submitted Date corrected
Printed
Page iv
On the copyright page under the line "Printed in the United

States of America," it now reads the following line:

"Cover photo by Kevin Thomas, (c) O'Reilly & Associates, Inc."

Anonymous    Aug 01, 1999
Printed
Page 36

Text used to read:

"To encrypt data, you need to use your private key. To
decrypt data, you need the public key of the person who
encrypted it. If you have a lot of friends who encrypt
the data they send you, you'll need some way to keep track
of each person and his or her public key."

It now reads:

"To exchange data securely, you'll need to keep track of
your own private and public keys as well as the public
keys of all the people with whom you wish to converse
securely."

Anonymous    Feb 01, 2000
Printed
Page 44

Lines 15-18 of the code used to read:

public void run() {
while (mTrucking)
mCounter++;
}

It now reads:

public void run(){
while (mTrucking){
try { Thread.sleep(1); }
catch (InterruptedException ie) {}
}
}

Anonymous    Feb 01, 2000
Printed
Page 53

The text used to read:

"...java.crypto.SecretKeyFactory, and javax.security.
KeyFactory..."

It now reads:

"...javax.crypto.SecretKeyFactory, and java.security.
KeyFactory..."

Anonymous    Feb 01, 2000
Printed
Page 57
Step 6 now begins

"Robin calculates kr = ..."

Anonymous    Aug 01, 1999
Printed
Page 118

Paragraph 3, line 4 used to read:

"standarts"

It now reads:

"standards"

Anonymous    Aug 01, 1999
Printed
Page 141

The second line of first code block used to read:

KeySpec ks = new PBEKeySpec(passphrase);
where passphrase is a String variable

The line now reads:

KeySpec ks = new PBEKeySpec(passphrase.toCharArray());

The initial line fails on compilation with a cannot resolve symbol
error. The corrected line compiles. With the correction the program
(PBE,java) appears to function as desired.

This appears to be a change to Class javax.crypto.spec.PBEKeySpec from what
is given above and in the example and description on pages
324 and 325 of the text.

Anonymous    Feb 01, 2001
Printed
Page 183

The first line of the code sample now reads:

"java.security.Provider p = new oreilly.jonathan.crypto.Provider();"

Anonymous    Aug 01, 1999
Printed
Page 266
In the fourth paragraph the line

Save this file as additional.mf

now reads:

Save this file as add.mf

Anonymous    Aug 01, 2000
Printed
Page 268

The text used to read:

"...Will Scarlet, who is trusted,..."

It now reads:

"...Will Scarlet, who is not trusted,..."



Anonymous    Feb 01, 2000