|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--de.flexiprovider.pqc.rainbow.util.RainbowUtil
This class is needed for the conversions while encoding and decoding, as well as for comparison between arrays of some dimensions
| Constructor Summary | |
RainbowUtil()
|
|
| Method Summary | |
static short[] |
convertArray(byte[] in)
This function converts an one-dimensional array of bytes into a one-dimensional array of type short |
static short[][] |
convertArray(byte[][] in)
This function converts a matrix of bytes into a matrix of type short |
static short[][][] |
convertArray(byte[][][] in)
This function converts a 3-dimensional array of bytes into a 3-dimensional array of type short |
static byte[] |
convertArray(short[] in)
This function converts an array of type short into an array of type byte |
static byte[][] |
convertArray(short[][] in)
This function converts a matrix of type short into a matrix of type byte |
static byte[][][] |
convertArray(short[][][] in)
This function converts a 3-dimensional array of type short into a 3-dimensional array of type byte |
static int[] |
convertArraytoInt(byte[] in)
This function converts an one-dimensional array of bytes into a one-dimensional array of int |
static byte[] |
convertIntArray(int[] in)
This function converts an array of type int into an array of type byte |
static boolean |
equals(short[][][] left,
short[][][] right)
Compare two three-dimensional short arrays. |
static boolean |
equals(short[][] left,
short[][] right)
Compare two two-dimensional short arrays. |
static boolean |
equals(short[] left,
short[] right)
Compare two short arrays. |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public RainbowUtil()
| Method Detail |
public static int[] convertArraytoInt(byte[] in)
in - the array to be convertedpublic static short[] convertArray(byte[] in)
in - the array to be convertedpublic static short[][] convertArray(byte[][] in)
in - the matrix to be convertedpublic static short[][][] convertArray(byte[][][] in)
in - the array to be convertedpublic static byte[] convertIntArray(int[] in)
in - the array to be convertedpublic static byte[] convertArray(short[] in)
in - the array to be convertedpublic static byte[][] convertArray(short[][] in)
in - the matrix to be convertedpublic static byte[][][] convertArray(short[][][] in)
in - the array to be converted
public static boolean equals(short[] left,
short[] right)
left - the first short arrayright - the second short array
public static boolean equals(short[][] left,
short[][] right)
left - the first short arrayright - the second short array
public static boolean equals(short[][][] left,
short[][][] right)
left - the first short arrayright - the second short array
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||