public class DSASHA1Verify extends Object
Constructor and Description |
---|
DSASHA1Verify() |
Modifier and Type | Method and Description |
---|---|
static DSAPublicKey |
decodeSSHDSAPublicKey(byte[] key) |
static DSASignature |
decodeSSHDSASignature(byte[] sig) |
static byte[] |
encodeSSHDSAPublicKey(DSAPublicKey pk) |
static byte[] |
encodeSSHDSASignature(DSASignature ds) |
static DSASignature |
generateSignature(byte[] message,
DSAPrivateKey pk,
SecureRandom rnd) |
static boolean |
verifySignature(byte[] message,
DSASignature ds,
DSAPublicKey dpk) |
public static DSAPublicKey decodeSSHDSAPublicKey(byte[] key) throws IOException
IOException
public static byte[] encodeSSHDSAPublicKey(DSAPublicKey pk) throws IOException
IOException
public static byte[] encodeSSHDSASignature(DSASignature ds)
public static DSASignature decodeSSHDSASignature(byte[] sig) throws IOException
IOException
public static boolean verifySignature(byte[] message, DSASignature ds, DSAPublicKey dpk) throws IOException
IOException
public static DSASignature generateSignature(byte[] message, DSAPrivateKey pk, SecureRandom rnd)
Copyright © 2023. All rights reserved.