| java.lang.Object |
| ↳ |
net.schmizz.sshj.transport.cipher.BaseCipher |
Known Direct Subclasses
|
Class Overview
Base class for all Cipher implementations delegating to the JCE provider.
Summary
| Public Constructors |
|
|
BaseCipher(int ivsize, int bsize, String algorithm, String transformation)
|
| Public Methods |
|
int
|
getBlockSize()
|
|
int
|
getIVSize()
|
|
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.
|
|
[Expand]
Inherited Methods |
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
From interface
net.schmizz.sshj.transport.cipher.Cipher
|
abstract
int
|
getBlockSize()
|
|
abstract
int
|
getIVSize()
|
|
abstract
void
|
init(Cipher.Mode mode, byte[] key, byte[] iv)
Initialize the cipher for encryption or decryption with the given private key and initialization vector
|
|
abstract
void
|
update(byte[] input, int inputOffset, int inputLen)
Performs in-place encryption or decryption on the given data.
|
|
Fields
private
final
String
algorithm
private
final
String
transformation
Public Constructors
public
BaseCipher
(int ivsize, int bsize, String algorithm, String transformation)
Parameters
| ivsize
| |
| bsize
| |
| algorithm
| |
| transformation
| |
Public Methods
public
int
getBlockSize
()
public
void
init
(Cipher.Mode mode, byte[] key, byte[] iv)
Initialize the cipher for encryption or decryption with the given private key and initialization vector
Parameters
| mode
| Whether this instance wil encrypt or decrypt |
| key
| The key for the cipher |
| iv
| Initialization vector
|
public
void
update
(byte[] input, int inputOffset, int inputLen)
Performs in-place encryption or decryption on the given data.
Parameters
| input
| The subject |
| inputOffset
| Offset at which to start |
| inputLen
| Number of bytes starting at inputOffset
|