|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.maverick.ssh.cipher.SshCipher
com.maverick.ssh.cipher.CbcBlockCipher
Base class for all CBC block ciphers.
Field Summary |
Fields inherited from class com.maverick.ssh.cipher.SshCipher |
DECRYPT_MODE, ENCRYPT_MODE |
Constructor Summary | |
CbcBlockCipher(int keybits,
com.maverick.crypto.engines.CipherEngine engine,
java.lang.String algorithm)
Contruct a CBC block cipher using the engine supplied. |
Method Summary | |
int |
getBlockSize()
Get the block size of the cipher |
void |
init(int mode,
byte[] iv,
byte[] keydata)
Initialize the CBC block cipher. |
void |
transform(byte[] in,
int start,
byte[] output,
int offset,
int len)
Transform the data |
Methods inherited from class com.maverick.ssh.cipher.SshCipher |
getAlgorithm, transform |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CbcBlockCipher(int keybits, com.maverick.crypto.engines.CipherEngine engine, java.lang.String algorithm)
keybits
- the number of key bits to use.engine
- the cipher engine.Method Detail |
public void init(int mode, byte[] iv, byte[] keydata)
init
in class SshCipher
mode
- the mode to operate iniv
- the initialization vectorkeydata
- the key
java.io.IOException
public int getBlockSize()
getBlockSize
in class SshCipher
public void transform(byte[] in, int start, byte[] output, int offset, int len) throws java.io.IOException
transform
in class SshCipher
in
- offset
- len
-
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |