Class Blake2b.Engine.LittleEndian
java.lang.Object
net.sourceforge.plantuml.argon2.blake2.Blake2b.Engine.LittleEndian
- Enclosing class:
- Blake2b.Engine
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
readInt
(byte[] b, int off) static long
readLong
(byte[] b, int off) Little endian - byte[] to longstatic String
toHexStr
(byte[] b) static 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[]
-
Constructor Details
-
LittleEndian
public LittleEndian()
-
-
Method Details
-
toHexStr
- Returns:
- hex rep of byte (lower case).
-
toHexStr
-
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[]
-