java.lang.Object
com.coderslagoon.crypto.estreamj.ciphers.mickey.MICKEYBase
All Implemented Interfaces:
ICipher
Direct Known Subclasses:
MICKEY, MICKEY128

public abstract class MICKEYBase extends Object implements ICipher
Some general things all MICKEYs do share.
  • Field Details

    • R0

      protected int R0
    • R1

      protected int R1
    • R2

      protected int R2
    • S0

      protected int S0
    • S1

      protected int S1
    • S2

      protected int S2
    • key

      protected int[] key
    • nsize

      protected int nsize
    • cached_setupNonce_R

      protected int[] cached_setupNonce_R
    • cached_setupNonce_S

      protected int[] cached_setupNonce_S
  • Constructor Details

    • MICKEYBase

      protected MICKEYBase()
  • Method Details

    • setNonceSize

      public void setNonceSize(int nsize)
    • getNonceSize

      public int getNonceSize()
      Specified by:
      getNonceSize in interface ICipher
      Returns:
      nonce size in bytes.
    • getWordSize

      public int getWordSize()
      Specified by:
      getWordSize in interface ICipher
      Returns:
      alignment of data needed during calls into process()
    • isPatented

      public boolean isPatented()
      Specified by:
      isPatented in interface ICipher
      Returns:
      true: algorithm is patented, check with vendor for license details / false: free to use in private and commercial applications
    • reset

      public void reset() throws ESJException
      Description copied from interface: ICipher
      Resets the instance, so it can be reused.
      Specified by:
      reset in interface ICipher
      Throws:
      ESJException - if any error occurs
    • erase

      public void erase()
      Description copied from interface: ICipher
      Erases all sensitive data. Instance MUST be abadonned afterwards.
      Specified by:
      erase in interface ICipher