zeta.crypto
Class Signature
java.lang.Object
|
+--zeta.crypto.Signature
- public class Signature
- extends java.lang.Object
|
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 |
key
private Key key
Signature
public Signature(Key key)
- Parameters:
key - key for the signature
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.readfile - 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
For further technical papers, see ZetaGrid Technical Documentation.
Copyright © 2001,2002 Sebastian Wedeniwski. All Rights Reserved.