|
Bouncy Castle Cryptography Library 1.79 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.bouncycastle.pqc.legacy.crypto.gmss.util.GMSSUtil
This class provides several methods that are required by the GMSS classes.
Constructor Summary | |
GMSSUtil()
|
Method Summary | |
int |
bytesToIntLittleEndian(byte[] bytes)
Converts a byte array beginning at offset into a 32 bit integer (little-endian representation) |
int |
bytesToIntLittleEndian(byte[] bytes,
int offset)
Converts a byte array beginning at offset into a 32 bit integer (little-endian representation) |
byte[] |
concatenateArray(byte[][] arraycp)
This method concatenates a 2-dimensional byte array into a 1-dimensional byte array |
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 intValue. |
byte[] |
intToBytesLittleEndian(int value)
Converts a 32 bit integer into a byte array beginning at offset (little-endian representation) |
void |
printArray(java.lang.String text,
byte[] array)
This method prints the values of a 1-dimensional byte array |
void |
printArray(java.lang.String text,
byte[][] array)
This method prints the values of a 2-dimensional byte array |
boolean |
testPowerOfTwo(int testValue)
This method tests if an integer is a power of 2. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GMSSUtil()
Method Detail |
public byte[] intToBytesLittleEndian(int value)
value
- the integer to convertpublic int bytesToIntLittleEndian(byte[] bytes)
bytes
- the byte arraypublic int bytesToIntLittleEndian(byte[] bytes, int offset)
bytes
- the byte arrayoffset
- the integer offset into the byte arraypublic byte[] concatenateArray(byte[][] arraycp)
arraycp
- a 2-dimensional byte array.public void printArray(java.lang.String text, byte[][] array)
text
- a Stringarray
- a 2-dimensional byte arraypublic void printArray(java.lang.String text, byte[] array)
text
- a Stringarray
- a 1-dimensional byte array.public boolean testPowerOfTwo(int testValue)
testValue
- an integerpublic int getLog(int intValue)
intValue
- an integer
|
Bouncy Castle Cryptography Library 1.79 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |