Interface Cipher

All Known Implementing Classes:
AES128CBC, AES128CTR, AES128GCM, AES192CBC, AES192CTR, AES256CBC, AES256CTR, AES256GCM, AESGCM, ARCFOUR, ARCFOUR128, ARCFOUR256, BlowfishCBC, CipherNone, TripleDESCBC, TripleDESCTR

public interface Cipher
  • Field Summary

    Fields
    Modifier and Type Field Description
    static int DECRYPT_MODE  
    static int ENCRYPT_MODE  
  • Method Summary

    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()  
    boolean isChaCha20()  
    void update​(byte[] foo, int s1, int len, byte[] bar, int s2)  
    void update​(int foo)  
    void updateAAD​(byte[] foo, int s1, int len)  
  • Field Details

  • Method Details

    • getIVSize

      int getIVSize()
    • getBlockSize

      int getBlockSize()
    • getTagSize

      int getTagSize()
    • init

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

      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

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

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

      boolean isCBC()
    • isAEAD

      boolean isAEAD()
    • isChaCha20

      boolean isChaCha20()