|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.sshd.common.cipher.BaseCipher
public class BaseCipher
Base class for all Cipher implementations delegating to the JCE provider.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.apache.sshd.common.Cipher |
---|
Cipher.Mode |
Constructor Summary | |
---|---|
BaseCipher(int ivsize,
int bsize,
String algorithm,
String transformation)
|
Method Summary | |
---|---|
int |
getBlockSize()
Retrieves the block size for this cipher |
int |
getIVSize()
Retrieves the size of the initialization vector |
void |
init(Cipher.Mode mode,
byte[] key,
byte[] iv)
Initialize the cipher for encryption or decryption with the given private key and initialization vector |
void |
update(byte[] input,
int inputOffset,
int inputLen)
Performs in-place encryption or decryption on the given data. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BaseCipher(int ivsize, int bsize, String algorithm, String transformation)
Method Detail |
---|
public int getIVSize()
Cipher
getIVSize
in interface Cipher
public int getBlockSize()
Cipher
getBlockSize
in interface Cipher
public void init(Cipher.Mode mode, byte[] key, byte[] iv) throws Exception
Cipher
init
in interface Cipher
Exception
public void update(byte[] input, int inputOffset, int inputLen) throws Exception
Cipher
update
in interface Cipher
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |