| 
 | 
Start of Tutorial > Start of Trail > Start of Lesson | 
Search
 Feedback Form  | 
Hereis the complete source code for the
VerSig.javaprogram, with some comments added.Compile and run the program. Remember, you need to specify three arguments on the command line:
Since you will be testing the output of the
- The name of the file containing the encoded public key bytes
 
- The name of the file containing the signature bytes
 
- The name of the data file (the one for which the signature was generated)
 GenSigprogram, the file names you should use are
suepk
sig
dataHere's a sample run; the bold indicates what you type.
%java VerSig suepk sig data signature verifies: true
| 
 | 
Start of Tutorial > Start of Trail > Start of Lesson | 
Search
 Feedback Form  | 
Copyright 1995-2003 Sun Microsystems, Inc. All rights reserved.