Generating and Verifying Signatures |
Next, input the signature bytes from the file specified as the second command line argument:Now the byte arrayFileInputStream sigfis = new FileInputStream(args[1]); byte[] sigToVerify = new byte[sigfis.available()]; sigfis.read(sigToVerify); sigfis.close();sigToVerify
contains the signature bytes.
Generating and Verifying Signatures |