Class BaseGCMCipher.CounterGCMParameterSpec

java.lang.Object
javax.crypto.spec.GCMParameterSpec
org.apache.sshd.common.cipher.BaseGCMCipher.CounterGCMParameterSpec
All Implemented Interfaces:
AlgorithmParameterSpec
Enclosing class:
BaseGCMCipher

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

    • iv

      protected final byte[] iv
    • initialCounter

      protected final long initialCounter
  • Constructor Details

    • CounterGCMParameterSpec

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

    • incrementCounter

      protected void incrementCounter()
    • getIV

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