|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.sshtools.j2ssh.transport.cipher.BlowfishCbc
This class is going to implement the blowfish-cbc encryption when I get around to doing it
| Field Summary | |
protected static java.lang.String |
algorithmName
The blowfish algorithm name for SSH |
| Fields inherited from interface com.sshtools.j2ssh.transport.cipher.SshCipher |
DECRYPT_MODE, ENCRYPT_MODE |
| Constructor Summary | |
BlowfishCbc()
Constructor for the BlowfishCbc object |
|
| Method Summary | |
int |
getBlockSize()
Gets the cipher block size |
void |
init(int mode,
byte[] iv,
byte[] keydata)
Called to initate the cipher. |
byte[] |
transform(byte[] data)
Transforms the data according to the cipher mode. |
byte[] |
transform(byte[] data,
int offset,
int len)
Transforms the data according to the cipher mode. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static java.lang.String algorithmName
| Constructor Detail |
public BlowfishCbc()
| Method Detail |
public void init(int mode,
byte[] iv,
byte[] keydata)
throws AlgorithmOperationException
Called to initate the cipher.
init in interface SshCiphermode - ENCRYPT_MODE or DECRYPT_MODEiv - The initialization vector datakeydata - The key data
AlgorithmOperationException - Thrown if a provider cannot be
found for the cipher
public byte[] transform(byte[] data)
throws AlgorithmOperationException
Transforms the data according to the cipher mode.
transform in interface SshCipherdata - The untransformed data
AlgorithmOperationException - Thrown if an error occurs
public byte[] transform(byte[] data,
int offset,
int len)
throws AlgorithmOperationException
Transforms the data according to the cipher mode.
transform in interface SshCipherdata - The untransformed dataoffset - The offset to start from in the
untransformed datalen - The length of data to transform
AlgorithmOperationException - Thrown if an error occurspublic int getBlockSize()
getBlockSize in interface SshCipher
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||