Class GcmCipher.CounterGCMParameterSpec

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

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

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

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

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static long addExact​(long var0, long var2)  
      byte[] getIV()  
      (package private) static long getLong​(byte[] buf, int off, int len)  
      protected void incrementCounter()  
      (package private) static int putLong​(long value, byte[] buf, int off, int len)  
      • 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
    • 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
      • 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)