Class ArcFour128
java.lang.Object
com.sshtools.common.ssh.components.AbstractSshCipher
com.sshtools.common.ssh.components.jce.AbstractJCECipher
com.sshtools.common.ssh.components.jce.ArcFour128
- All Implemented Interfaces:
Component,SshCipher,SshComponent,SecureComponent
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface com.sshtools.common.ssh.components.SshCipher
DECRYPT_MODE, ENCRYPT_MODE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGet the cipher block size.voidinit(int mode, byte[] iv, byte[] keydata) Initialize the cipher with up to 40 bytes of iv and key data.Methods inherited from class com.sshtools.common.ssh.components.jce.AbstractJCECipher
createCipher, getKeyLength, getProvider, getProviderName, transformMethods inherited from class com.sshtools.common.ssh.components.AbstractSshCipher
getAlgorithm, getMacLength, getPriority, getSecurityLevel, isMAC, transform
-
Constructor Details
-
ArcFour128
- Throws:
IOException
-
-
Method Details
-
init
Description copied from class:AbstractSshCipherInitialize the cipher with up to 40 bytes of iv and key data. Each implementation should take as much data from the initialization as it needs ignoring any data that it does not require.- Specified by:
initin interfaceSshCipher- Overrides:
initin classAbstractJCECipher- Parameters:
mode- the mode to operateiv- the initiaization vectorkeydata- the key data- Throws:
IOException
-
getBlockSize
public int getBlockSize()Description copied from class:AbstractSshCipherGet the cipher block size.- Specified by:
getBlockSizein interfaceSshCipher- Overrides:
getBlockSizein classAbstractJCECipher- Returns:
- the block size in bytes.
-