de.mud.ssh

Class SshCrypto


public class SshCrypto
extends java.lang.Object

Version:
$Id: SshCrypto.java 499 2005-09-29 08:24:54Z leo $
Author:
Marcus Meissner

Constructor Summary

SshCrypto(String type, byte[] key)

Method Summary

byte[]
decrypt(byte[] block)
byte[]
encrypt(byte[] block)
static byte[]
encrypteRSAPkcs1Twice(byte[] clearData, byte[] server_key_public_exponent, byte[] server_key_public_modulus, byte[] host_key_public_exponent, byte[] host_key_public_modulus)

Constructor Details

SshCrypto

public SshCrypto(String type,
                 byte[] key)

Method Details

decrypt

public byte[] decrypt(byte[] block)

encrypt

public byte[] encrypt(byte[] block)

encrypteRSAPkcs1Twice

public static byte[] encrypteRSAPkcs1Twice(byte[] clearData,
                                           byte[] server_key_public_exponent,
                                           byte[] server_key_public_modulus,
                                           byte[] host_key_public_exponent,
                                           byte[] host_key_public_modulus)