Interface FeedbackCipher


public interface FeedbackCipher
This interface represents the type of cipher that has a feedback mechanism built into it, such as CBC or CFB.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the name of the feedback mechanism
    byte[]
    Gets the initialization vector.
    void
    Resets the iv to its original value.
  • Method Details

    • getFeedback

      String getFeedback()
      Gets the name of the feedback mechanism
      Returns:
      the name of the feedback mechanism
    • getIV

      byte[] getIV()
      Gets the initialization vector.
      Returns:
      the initialization vector
    • reset

      void reset()
      Resets the iv to its original value. This is used when doFinal is called in the Cipher class, so that the cipher can be reused (with its original iv).