| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean | Returns: true if all values in 2d-byte array are equal false else.2d-byte array 1. a, byte[][] 2d-byte array 2. b)Compares two 2d-byte arrays. |
| public static long | |
| public static int | |
| public static byte[] | |
| public static byte[][] | |
| public static void | copyBytesAtOffset(byte[]
Destination. dst, byte[] Source. src, int Destination offset. offset)Copy src byte array to dst byte array at offset. |
| public static Object | |
| public static void | |
| public static byte[] | Returns: New byte array.Source byte array. src, int Offset in source byte array. offset, int Length of bytes to copy. length)Copy length bytes at position offset from src. |
| public static int | |
| public static int | |
| public static long | |
| public static boolean | Returns: true if at least one null pointer is found false else.2d byte array. in)Checks whether 2d byte array has null pointers. |
| public static boolean | Returns: true if index is valid false else.Height of binary tree. height, long Index to validate. index)Check whether an index is valid or not. |
| public static boolean | |
| public static boolean | |
| public static int | Returns: Logarithm to base 2 ofn.Number. n)Calculates the logarithm base 2 for a given Integer. |
| public static void | |
| public static byte[] | |
| public static byte[] | Returns: int/long as big-endian byte array of sizesizeInByte.int/long value. value, int Size of byte array in byte. sizeInByte)Convert int/long to n-byte array. |
| XMSSUtil | back to summary |
|---|---|
| public XMSSUtil() | |
| areEqual | back to summary |
|---|---|
| public static boolean areEqual(byte[][] a, byte[][] b) Compares two 2d-byte arrays.
| |
| bytesToXBigEndian | back to summary |
|---|---|
| public static long bytesToXBigEndian(byte[] in, int offset, int size) | |
| calculateTau | back to summary |
|---|---|
| public static int calculateTau(int index, int height) | |
| cloneArray | back to summary |
|---|---|
| public static byte[] cloneArray(byte[] in) Clone a byte array.
| |
| cloneArray | back to summary |
|---|---|
| public static byte[][] cloneArray(byte[][] in) Clone a 2d byte array.
| |
| copyBytesAtOffset | back to summary |
|---|---|
| public static void copyBytesAtOffset(byte[] dst, byte[] src, int offset) Copy src byte array to dst byte array at offset.
| |
| deserialize | back to summary |
|---|---|
| public static Object deserialize(byte[] data, final Class<T> clazz) throws IOException, ClassNotFoundException | |
| dumpByteArray | back to summary |
|---|---|
| public static void dumpByteArray(byte[][] x) Dump content of 2d byte array.
| |
| extractBytesAtOffset | back to summary |
|---|---|
| public static byte[] extractBytesAtOffset(byte[] src, int offset, int length) Copy length bytes at position offset from src.
| |
| getDigestSize | back to summary |
|---|---|
| public static int getDigestSize(Digest digest) Determine digest size of digest.
| |
| getLeafIndex | back to summary |
|---|---|
| public static int getLeafIndex(long index, int xmssTreeHeight) | |
| getTreeIndex | back to summary |
|---|---|
| public static long getTreeIndex(long index, int xmssTreeHeight) | |
| hasNullPointer | back to summary |
|---|---|
| public static boolean hasNullPointer(byte[][] in) Checks whether 2d byte array has null pointers.
| |
| isIndexValid | back to summary |
|---|---|
| public static boolean isIndexValid(int height, long index) Check whether an index is valid or not.
| |
| isNewAuthenticationPathNeeded | back to summary |
|---|---|
| public static boolean isNewAuthenticationPathNeeded(long globalIndex, int xmssHeight, int layer) | |
| isNewBDSInitNeeded | back to summary |
|---|---|
| public static boolean isNewBDSInitNeeded(long globalIndex, int xmssHeight, int layer) | |
| log2 | back to summary |
|---|---|
| public static int log2(int n) Calculates the logarithm base 2 for a given Integer.
| |
| longToBigEndian | back to summary |
|---|---|
| public static void longToBigEndian(long value, byte[] in, int offset) | |
| serialize | back to summary |
|---|---|
| public static byte[] serialize(Object obj) throws IOException | |
| toBytesBigEndian | back to summary |
|---|---|
| public static byte[] toBytesBigEndian(long value, int sizeInByte) Convert int/long to n-byte array.
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final Set | |
| private boolean | |
| private final Class |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected Class | resolveClass(ObjectStreamClass
an instance of class desc)ObjectStreamClassOverrides java. |
| components | back to summary |
|---|---|
| private static final Set<E> components | |
| found | back to summary |
|---|---|
| private boolean found | |
| mainClass | back to summary |
|---|---|
| private final Class<T> mainClass | |
| CheckingStream | back to summary |
|---|---|
| pack-priv CheckingStream(Class<T> mainClass, InputStream in) throws IOException | |
| resolveClass | back to summary |
|---|---|
| protected Class Overrides java. Doc from java. Load the local class equivalent of the specified stream class description. Subclasses may implement this method to allow classes to be fetched from an alternate source. The corresponding method in The default implementation of this method in
Class.forName(desc.getName(), false, loader) loader is the first class loader on the current
thread's stack (starting from the currently executing method) that is
neither the platform
class loader nor its ancestor; otherwise, loader is the
platform class loader. If this call results in a
ClassNotFoundException and the name of the passed
ObjectStreamClass instance is the Java language keyword
for a primitive type or void, then the Class object
representing that primitive type or void will be returned
(e.g., an ObjectStreamClass with the name
"int" will be resolved to Integer.TYPE).
Otherwise, the ClassNotFoundException will be thrown to
the caller of this method.
| |