ZetaGrid v1.9

zeta.crypto
Class Signature

java.lang.Object
  |
  +--zeta.crypto.Signature

public class Signature
extends java.lang.Object


Field Summary
private  Key key
           
 
Constructor Summary
Signature(Key key)
           
 
Method Summary
 void generate(int randomize, java.math.BigInteger privateKey, java.io.InputStream in, java.io.OutputStream out)
           
private  java.math.BigInteger hashCode(java.io.InputStream in, java.math.BigInteger p)
           
 boolean verify(java.lang.String signature, byte[] file)
          Verifies the digital signature of a specified file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

key

private Key key
Constructor Detail

Signature

public Signature(Key key)
Parameters:
key - key for the signature
Method Detail

verify

public boolean verify(java.lang.String signature,
                      byte[] file)
               throws java.io.IOException
Verifies the digital signature of a specified file.

Parameters:
signature - the digital signature that can be read by IONumber.read
file - data of the file
java.io.IOException

generate

public void generate(int randomize,
                     java.math.BigInteger privateKey,
                     java.io.InputStream in,
                     java.io.OutputStream out)
              throws java.io.IOException
java.io.IOException

hashCode

private java.math.BigInteger hashCode(java.io.InputStream in,
                                      java.math.BigInteger p)
                               throws java.io.IOException
java.io.IOException

ZetaGrid v1.9

For further technical papers, see ZetaGrid Technical Documentation.
 
Copyright © 2001,2002 Sebastian Wedeniwski. All Rights Reserved.