Class BaseGCMCipher.CounterGCMParameterSpec

  • All Implemented Interfaces:
    java.security.spec.AlgorithmParameterSpec
    Enclosing class:
    BaseGCMCipher

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

      Fields 
      Modifier and Type Field Description
      protected long initialCounter  
      protected byte[] iv  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected CounterGCMParameterSpec​(int tLen, byte[] src)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] getIV()  
      protected void incrementCounter()  
      • Methods inherited from class javax.crypto.spec.GCMParameterSpec

        getTLen
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • iv

        protected final byte[] iv
      • initialCounter

        protected final long initialCounter
    • Constructor Detail

      • CounterGCMParameterSpec

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

      • incrementCounter

        protected void incrementCounter()
      • getIV

        public byte[] getIV()
        Overrides:
        getIV in class javax.crypto.spec.GCMParameterSpec