Interface Cipher

All Known Implementing Classes:
AES128CBC, AES128CTR, AES128GCM, AES192CBC, AES192CTR, AES256CBC, AES256CTR, AES256GCM, ARCFOUR, ARCFOUR128, ARCFOUR256, BlowfishCBC, BlowfishCTR, CAST128CBC, CAST128CTR, ChaCha20Poly1305, SEEDCBC, TripleDESCBC, TripleDESCTR, Twofish128CBC, Twofish128CTR, Twofish192CBC, Twofish192CTR, Twofish256CBC, Twofish256CTR

public interface Cipher
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    doFinal(byte[] foo, int s1, int len, byte[] bar, int s2)
     
    int
     
    int
     
    default int
     
    void
    init(int mode, byte[] key, byte[] iv)
     
    default boolean
     
    boolean
     
    default boolean
     
    void
    update(byte[] foo, int s1, int len, byte[] bar, int s2)
     
    default void
    update(int foo)
     
    default void
    updateAAD(byte[] foo, int s1, int len)
     
  • Field Details

  • Method Details

    • getIVSize

      int getIVSize()
    • getBlockSize

      int getBlockSize()
    • getTagSize

      default int getTagSize()
    • init

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

      default void update(int foo) throws Exception
      Throws:
      Exception
    • update

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

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

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

      boolean isCBC()
    • isAEAD

      default boolean isAEAD()
    • isChaCha20

      default boolean isChaCha20()