Class AES128Gcm

All Implemented Interfaces:
Component, SshCipher, SshComponent, SecureComponent

public class AES128Gcm 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
    • transform

      public void transform(byte[] buf, int start, byte[] output, int off, int len) throws IOException
      Description copied from class: AbstractSshCipher
      Transform the byte array according to the cipher mode; it is legal for the source and destination arrays to reference the same physical array so care should be taken in the transformation process to safeguard this rule.
      Specified by:
      transform in interface SshCipher
      Overrides:
      transform in class AbstractJCECipher
      Throws:
      IOException
    • isMAC

      public boolean isMAC()
      Specified by:
      isMAC in interface SshCipher
      Overrides:
      isMAC in class AbstractSshCipher
    • getMacLength

      public int getMacLength()
      Specified by:
      getMacLength in interface SshCipher
      Overrides:
      getMacLength in class AbstractSshCipher