ch.ethz.ssh2.signature

Class RSASHA1Verify


public class RSASHA1Verify
extends java.lang.Object

RSASHA1Verify.

Method Summary

static RSAPublicKey
decodeSSHRSAPublicKey(byte[] key)
static RSASignature
decodeSSHRSASignature(byte[] sig)
static byte[]
encodeSSHRSAPublicKey(RSAPublicKey pk)
static byte[]
encodeSSHRSASignature(RSASignature sig)
static RSASignature
generateSignature(byte[] message, RSAPrivateKey pk)
static boolean
verifySignature(byte[] message, RSASignature ds, RSAPublicKey dpk)

Method Details

decodeSSHRSAPublicKey

public static RSAPublicKey decodeSSHRSAPublicKey(byte[] key)
            throws IOException

decodeSSHRSASignature

public static RSASignature decodeSSHRSASignature(byte[] sig)
            throws IOException

encodeSSHRSAPublicKey

public static byte[] encodeSSHRSAPublicKey(RSAPublicKey pk)
            throws IOException

encodeSSHRSASignature

public static byte[] encodeSSHRSASignature(RSASignature sig)
            throws IOException

generateSignature

public static RSASignature generateSignature(byte[] message,
                                             RSAPrivateKey pk)
            throws IOException

verifySignature

public static boolean verifySignature(byte[] message,
                                      RSASignature ds,
                                      RSAPublicKey dpk)
            throws IOException