Class Blake2b.Engine.LittleEndian

  • Enclosing class:
    Blake2b.Engine

    public static class Blake2b.Engine.LittleEndian
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      LittleEndian()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int readInt​(byte[] b, int off)  
      static long readLong​(byte[] b, int off)
      Little endian - byte[] to long
      static java.lang.String toHexStr​(byte[] b)  
      static java.lang.String toHexStr​(byte[] b, boolean upperCase)  
      static void writeInt​(int v, byte[] b, int off)
      Little endian - int to byte[]
      static void writeLong​(long v, byte[] b, int off)
      Little endian - long to byte[]
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LittleEndian

        public LittleEndian()
    • Method Detail

      • toHexStr

        public static java.lang.String toHexStr​(byte[] b)
        Returns:
        hex rep of byte (lower case).
      • toHexStr

        public static java.lang.String toHexStr​(byte[] b,
                                                boolean upperCase)
      • readInt

        public static int readInt​(byte[] b,
                                  int off)
      • readLong

        public static long readLong​(byte[] b,
                                    int off)
        Little endian - byte[] to long
      • writeLong

        public static void writeLong​(long v,
                                     byte[] b,
                                     int off)
        Little endian - long to byte[]
      • writeInt

        public static void writeInt​(int v,
                                    byte[] b,
                                    int off)
        Little endian - int to byte[]