ch.ethz.ssh2.signature
Class DSASHA1Verify
java.lang.Object
ch.ethz.ssh2.signature.DSASHA1Verify
public class DSASHA1Verify
- extends Object
DSASHA1Verify.
- Version:
- $Id$
- Author:
- Christian Plattner
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DSASHA1Verify
public DSASHA1Verify()
decodeSSHDSAPublicKey
public static DSAPublicKey decodeSSHDSAPublicKey(byte[] key)
throws IOException
- Throws:
IOException
encodeSSHDSAPublicKey
public static byte[] encodeSSHDSAPublicKey(DSAPublicKey pk)
throws IOException
- Throws:
IOException
encodeSSHDSASignature
public static byte[] encodeSSHDSASignature(DSASignature ds)
decodeSSHDSASignature
public static DSASignature decodeSSHDSASignature(byte[] sig)
throws IOException
- Throws:
IOException
verifySignature
public static boolean verifySignature(byte[] message,
DSASignature ds,
DSAPublicKey dpk)
throws IOException
- Throws:
IOException
generateSignature
public static DSASignature generateSignature(byte[] message,
DSAPrivateKey pk,
SecureRandom rnd)
Copyright © 2011. All Rights Reserved.