Package com.jcraft.jsch
Interface Cipher
- All Known Implementing Classes:
AES128CBC,AES128CTR,AES128GCM,AES192CBC,AES192CTR,AES256CBC,AES256CTR,AES256GCM,AESGCM,ARCFOUR,ARCFOUR128,ARCFOUR256,BlowfishCBC,CipherNone,TripleDESCBC,TripleDESCTR
public interface Cipher
-
Field Summary
Fields Modifier and Type Field Description static intDECRYPT_MODEstatic intENCRYPT_MODE -
Method Summary
Modifier and Type Method Description voiddoFinal(byte[] foo, int s1, int len, byte[] bar, int s2)intgetBlockSize()intgetIVSize()intgetTagSize()voidinit(int mode, byte[] key, byte[] iv)booleanisAEAD()booleanisCBC()booleanisChaCha20()voidupdate(byte[] foo, int s1, int len, byte[] bar, int s2)voidupdate(int foo)voidupdateAAD(byte[] foo, int s1, int len)
-
Field Details
-
ENCRYPT_MODE
static final int ENCRYPT_MODE- See Also:
- Constant Field Values
-
DECRYPT_MODE
static final int DECRYPT_MODE- See Also:
- Constant Field Values
-
-
Method Details
-
getIVSize
int getIVSize() -
getBlockSize
int getBlockSize() -
getTagSize
int getTagSize() -
init
void init(int mode, byte[] key, byte[] iv) throws java.lang.Exception- Throws:
java.lang.Exception
-
update
void update(int foo) throws java.lang.Exception- Throws:
java.lang.Exception
-
update
void update(byte[] foo, int s1, int len, byte[] bar, int s2) throws java.lang.Exception- Throws:
java.lang.Exception
-
updateAAD
void updateAAD(byte[] foo, int s1, int len) throws java.lang.Exception- Throws:
java.lang.Exception
-
doFinal
void doFinal(byte[] foo, int s1, int len, byte[] bar, int s2) throws java.lang.Exception- Throws:
java.lang.Exception
-
isCBC
boolean isCBC() -
isAEAD
boolean isAEAD() -
isChaCha20
boolean isChaCha20()
-