Class ChaCha20Poly1305

  • All Implemented Interfaces:
    Cipher

    public class ChaCha20Poly1305
    extends java.lang.Object
    implements Cipher
    • Constructor Detail

      • ChaCha20Poly1305

        public ChaCha20Poly1305()
    • Method Detail

      • getIVSize

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

        public int getBlockSize()
        Specified by:
        getBlockSize 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​(int foo)
                    throws java.lang.Exception
        Specified by:
        update 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
      • 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
      • isChaCha20

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