Class ArcFour128

All Implemented Interfaces:
Component, SshCipher, SshComponent, SecureComponent

public class ArcFour128 extends AbstractJCECipher
  • Constructor Details

  • Method Details

    • init

      public void init(int mode, byte[] iv, byte[] keydata) throws IOException
      Description copied from class: AbstractSshCipher
      Initialize 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:
      init in interface SshCipher
      Overrides:
      init in class AbstractJCECipher
      Parameters:
      mode - the mode to operate
      iv - the initiaization vector
      keydata - the key data
      Throws:
      IOException
    • getBlockSize

      public int getBlockSize()
      Description copied from class: AbstractSshCipher
      Get the cipher block size.
      Specified by:
      getBlockSize in interface SshCipher
      Overrides:
      getBlockSize in class AbstractJCECipher
      Returns:
      the block size in bytes.