Class GcmCipher.CounterGCMParameterSpec

java.lang.Object
javax.crypto.spec.GCMParameterSpec
com.hierynomus.sshj.transport.cipher.GcmCipher.CounterGCMParameterSpec
All Implemented Interfaces:
AlgorithmParameterSpec
Enclosing class:
GcmCipher

protected static class GcmCipher.CounterGCMParameterSpec extends GCMParameterSpec
Algorithm parameters for AES/GCM that assumes the IV uses an 8-byte counter field as its most significant bytes.
  • Field Details

    • iv

      protected final byte[] iv
  • Constructor Details

    • CounterGCMParameterSpec

      protected CounterGCMParameterSpec(int tLen, byte[] src)
  • Method Details

    • incrementCounter

      protected void incrementCounter()
    • getIV

      public byte[] getIV()
      Overrides:
      getIV in class GCMParameterSpec
    • addExact

      static long addExact(long var0, long var2)
    • getLong

      static long getLong(byte[] buf, int off, int len)
    • putLong

      static int putLong(long value, byte[] buf, int off, int len)