java.lang.Object
com.coderslagoon.crypto.estreamj.framework.Utils

public class Utils extends Object
  • Method Details

    • fillPattern123

      public static void fillPattern123(byte[] buf, int ofs, int len)
    • checkPattern123

      public static boolean checkPattern123(byte[] buf, int ofs, int len)
    • makeOutputBuffer

      public static byte[] makeOutputBuffer(int len, int extraLen)
    • arraysEquals

      public static boolean arraysEquals(byte[] a, int ofsA, byte[] b, int ofsB, int len)
    • readInt32LE

      public static final int readInt32LE(byte[] data, int ofs)
    • writeInt32LE

      public static final void writeInt32LE(int value, byte[] data, int ofs)
    • readInt32BE

      public static final int readInt32BE(byte[] data, int ofs)
    • writeInt32BE

      public static final void writeInt32BE(int value, byte[] data, int ofs)
    • readInt64BE

      public static final long readInt64BE(byte[] data, int ofs)
    • writeInt64BE

      public static final void writeInt64BE(long value, byte[] data, int ofs)
    • hexStrToBytes

      public static byte[] hexStrToBytes(String hex)
    • hexDump

      public static int hexDump(InputStream is, PrintStream ps, int maxRead, int bytesPerLine)
    • swapByteOrder32

      public static byte[] swapByteOrder32(byte[] data, int ofs, int len)