| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: The resulting integerthe byte array bytes)Converts a byte array beginning at |
| public int | Returns: The resulting integerthe byte array bytes, int the integer offset into the byte array offset)Converts a byte array beginning at |
| public byte[] | Returns: 1-dimensional byte array with concatenated input arraya 2-dimensional byte array. arraycp)This method concatenates a 2-dimensional byte array into a 1-dimensional byte array |
| public int | Returns: The least integer greater or equal to the logarithm to the base 2 ofintValuean integer intValue)This method returns the least integer that is greater or equal to the
logarithm to the base 2 of an integer |
| public byte[] | intToBytesLittleEndian(int
the integer to convert value)Converts a 32 bit integer into a byte array beginning at
|
| public void | printArray(String
a String text, byte[][] a 2-dimensional byte array array)This method prints the values of a 2-dimensional byte array |
| public void | printArray(String
a String text, byte[] a 1-dimensional byte array. array)This method prints the values of a 1-dimensional byte array |
| public boolean | Returns: TRUE if testValue is a power of 2,
FALSE otherwisean integer testValue)This method tests if an integer is a power of 2. |
| GMSSUtil | back to summary |
|---|---|
| public GMSSUtil() | |
| bytesToIntLittleEndian | back to summary |
|---|---|
| public int bytesToIntLittleEndian(byte[] bytes) Converts a byte array beginning at
| |
| bytesToIntLittleEndian | back to summary |
|---|---|
| public int bytesToIntLittleEndian(byte[] bytes, int offset) Converts a byte array beginning at
| |
| concatenateArray | back to summary |
|---|---|
| public byte[] concatenateArray(byte[][] arraycp) This method concatenates a 2-dimensional byte array into a 1-dimensional byte array
| |
| getLog | back to summary |
|---|---|
| public int getLog(int intValue) This method returns the least integer that is greater or equal to the
logarithm to the base 2 of an integer
| |
| intToBytesLittleEndian | back to summary |
|---|---|
| public byte[] intToBytesLittleEndian(int value) Converts a 32 bit integer into a byte array beginning at
| |
| printArray | back to summary |
|---|---|
| public void printArray(String text, byte[][] array) This method prints the values of a 2-dimensional byte array
| |
| printArray | back to summary |
|---|---|
| public void printArray(String text, byte[] array) This method prints the values of a 1-dimensional byte array
| |
| testPowerOfTwo | back to summary |
|---|---|
| public boolean testPowerOfTwo(int testValue) This method tests if an integer is a power of 2.
| |