ch.ethz.ssh2.signature
Class DSASHA1Verify
java.lang.Object
ch.ethz.ssh2.signature.DSASHA1Verify
public class DSASHA1Verify
- extends java.lang.Object
DSASHA1Verify.
- Version:
- 2.50, 03/15/10
- Author:
- Christian Plattner
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
private static final Logger log
DSASHA1Verify
public DSASHA1Verify()
decodeSSHDSAPublicKey
public static DSAPublicKey decodeSSHDSAPublicKey(byte[] key)
throws java.io.IOException
- Throws:
java.io.IOException
encodeSSHDSAPublicKey
public static byte[] encodeSSHDSAPublicKey(DSAPublicKey pk)
throws java.io.IOException
- Throws:
java.io.IOException
encodeSSHDSASignature
public static byte[] encodeSSHDSASignature(DSASignature ds)
decodeSSHDSASignature
public static DSASignature decodeSSHDSASignature(byte[] sig)
throws java.io.IOException
- Throws:
java.io.IOException
verifySignature
public static boolean verifySignature(byte[] message,
DSASignature ds,
DSAPublicKey dpk)
throws java.io.IOException
- Throws:
java.io.IOException
generateSignature
public static DSASignature generateSignature(byte[] message,
DSAPrivateKey pk,
java.security.SecureRandom rnd)