Package com.jcraft.jsch
Interface Cipher
-
- All Known Implementing Classes:
AES128CBC,AES128CTR,AES128GCM,AES192CBC,AES192CTR,AES256CBC,AES256CTR,AES256GCM,ARCFOUR,ARCFOUR128,ARCFOUR256,BlowfishCBC,BlowfishCTR,CAST128CBC,CAST128CTR,ChaCha20Poly1305,SEEDCBC,TripleDESCBC,TripleDESCTR,Twofish128CBC,Twofish128CTR,Twofish192CBC,Twofish192CTR,Twofish256CBC,Twofish256CTR
public interface Cipher
-
-
Field Summary
Fields Modifier and Type Field Description static intDECRYPT_MODEstatic intENCRYPT_MODE
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voiddoFinal(byte[] foo, int s1, int len, byte[] bar, int s2)intgetBlockSize()intgetIVSize()default intgetTagSize()voidinit(int mode, byte[] key, byte[] iv)default booleanisAEAD()booleanisCBC()default booleanisChaCha20()voidupdate(byte[] foo, int s1, int len, byte[] bar, int s2)default voidupdate(int foo)default voidupdateAAD(byte[] foo, int s1, int len)
-
-
-
Field Detail
-
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 Detail
-
getIVSize
int getIVSize()
-
getBlockSize
int getBlockSize()
-
getTagSize
default int getTagSize()
-
init
void init(int mode, byte[] key, byte[] iv) throws java.lang.Exception- Throws:
java.lang.Exception
-
update
default 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
default void updateAAD(byte[] foo, int s1, int len) throws java.lang.Exception- Throws:
java.lang.Exception
-
doFinal
default void doFinal(byte[] foo, int s1, int len, byte[] bar, int s2) throws java.lang.Exception- Throws:
java.lang.Exception
-
isCBC
boolean isCBC()
-
isAEAD
default boolean isAEAD()
-
isChaCha20
default boolean isChaCha20()
-
-