java.lang.Object
com.coderslagoon.crypto.estreamj.ciphers.mickey.MICKEYBase
com.coderslagoon.crypto.estreamj.ciphers.mickey.MICKEY128
All Implemented Interfaces:
ICipher

public class MICKEY128 extends MICKEYBase
  • Constructor Details

    • MICKEY128

      public MICKEY128()
  • Method Details

    • setNonceSize

      public void setNonceSize(int nsize)
      Overrides:
      setNonceSize in class MICKEYBase
    • getKeySize

      public int getKeySize()
      Returns:
      key size in bytes
    • process

      public void process(byte[] inBuf, int inOfs, byte[] outBuf, int outOfs, int len) throws ESJException
      Description copied from interface: ICipher
      Processes data.
      Parameters:
      inBuf - input buffer
      inOfs - where to start reading from the input buffer
      outBuf - output buffer
      outOfs - where to start writing in the output buffer
      len - number of bytes to process, must be aligned to the cipher's word size except on the last call where an arbitrary size can be used
      Throws:
      ESJException - in any error occurred
    • setupKey

      public void setupKey(int mode, byte[] key, int ofs) throws ESJException
      Description copied from interface: ICipher
      Sets up a new key with the existing instance.
      Parameters:
      mode - see MODE_xxx
      key - buffer with key material
      ofs - where the key starts
      Throws:
      ESJException - if any error occurs
    • setupNonce

      public void setupNonce(byte[] nonce, int ofs) throws ESJException
      Description copied from interface: ICipher
      Sets up a new nonce with the existing cipher instance.
      Parameters:
      nonce - buffer with nonce material
      ofs - where the nonce starts
      Throws:
      ESJException - if any error occurs
    • register

      public static void register()