Interface Cipher

    • Method Detail

      • getIVSize

        int getIVSize()
      • getBlockSize

        int getBlockSize()
      • getTagSize

        default int getTagSize()
      • init

        void init​(int mode,
                  byte[] key,
                  byte[] iv)
           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • update

        default void update​(int foo)
                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • update

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

        default void updateAAD​(byte[] foo,
                               int s1,
                               int len)
                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • doFinal

        default void doFinal​(byte[] foo,
                             int s1,
                             int len,
                             byte[] bar,
                             int s2)
                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • isCBC

        boolean isCBC()
      • isAEAD

        default boolean isAEAD()
      • isChaCha20

        default boolean isChaCha20()