com.sshtools.j2ssh.transport.cipher

Class BlowfishCbc


public class BlowfishCbc
extends SshCipher

Version:
$Revision: 1.21 $
Author:
$author$

Field Summary

protected static String
algorithmName

Fields inherited from class com.sshtools.j2ssh.transport.cipher.SshCipher

DECRYPT_MODE, ENCRYPT_MODE

Constructor Summary

BlowfishCbc()
Creates a new BlowfishCbc object.

Method Summary

int
getBlockSize()
void
init(int mode, byte[] iv, byte[] keydata)
byte[]
transform(byte[] data, int offset, int len)

Methods inherited from class com.sshtools.j2ssh.transport.cipher.SshCipher

getBlockSize, init, transform, transform

Field Details

algorithmName

protected static String algorithmName

Constructor Details

BlowfishCbc

public BlowfishCbc()
Creates a new BlowfishCbc object.

Method Details

getBlockSize

public int getBlockSize()
Overrides:
getBlockSize in interface SshCipher
Returns:

init

public void init(int mode,
                 byte[] iv,
                 byte[] keydata)
            throws AlgorithmOperationException
Overrides:
init in interface SshCipher
Parameters:
mode -
iv -
keydata -

transform

public byte[] transform(byte[] data,
                        int offset,
                        int len)
            throws AlgorithmOperationException
Overrides:
transform in interface SshCipher
Parameters:
data -
offset -
len -
Returns:

Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.