Class AES128GCM

  • All Implemented Interfaces:
    Cipher

    public class AES128GCM
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      AES128GCM()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void doFinal​(byte[] foo, int s1, int len, byte[] bar, int s2)  
      int getBlockSize()  
      int getIVSize()  
      int getTagSize()  
      void init​(int mode, byte[] key, byte[] iv)  
      boolean isAEAD()  
      boolean isCBC()  
      void update​(byte[] foo, int s1, int len, byte[] bar, int s2)  
      void updateAAD​(byte[] foo, int s1, int len)  
      • Methods inherited from class java.lang.Object

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

      • AES128GCM

        public AES128GCM()
    • Method Detail

      • getBlockSize

        public int getBlockSize()
      • getIVSize

        public int getIVSize()
        Specified by:
        getIVSize in interface Cipher
      • getTagSize

        public int getTagSize()
        Specified by:
        getTagSize in interface Cipher
      • init

        public void init​(int mode,
                         byte[] key,
                         byte[] iv)
                  throws java.lang.Exception
        Specified by:
        init in interface Cipher
        Throws:
        java.lang.Exception
      • update

        public void update​(byte[] foo,
                           int s1,
                           int len,
                           byte[] bar,
                           int s2)
                    throws java.lang.Exception
        Specified by:
        update in interface Cipher
        Throws:
        java.lang.Exception
      • updateAAD

        public void updateAAD​(byte[] foo,
                              int s1,
                              int len)
                       throws java.lang.Exception
        Specified by:
        updateAAD in interface Cipher
        Throws:
        java.lang.Exception
      • doFinal

        public void doFinal​(byte[] foo,
                            int s1,
                            int len,
                            byte[] bar,
                            int s2)
                     throws java.lang.Exception
        Specified by:
        doFinal in interface Cipher
        Throws:
        java.lang.Exception
      • isCBC

        public boolean isCBC()
        Specified by:
        isCBC in interface Cipher
      • isAEAD

        public boolean isAEAD()
        Specified by:
        isAEAD in interface Cipher