|
Bouncy Castle Cryptography Library 1.49 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.pqc.crypto.rainbow.util.RainbowUtil
public class 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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RainbowUtil()
Method Detail |
---|
public static int[] convertArraytoInt(byte[] in)
in
- the array to be converted
public static short[] convertArray(byte[] in)
in
- the array to be converted
public static short[][] convertArray(byte[][] in)
in
- the matrix to be converted
public static short[][][] convertArray(byte[][][] in)
in
- the array to be converted
public static byte[] convertIntArray(int[] in)
in
- the array to be converted
public static byte[] convertArray(short[] in)
in
- the array to be converted
public static byte[][] convertArray(short[][] in)
in
- the matrix to be converted
public 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
|
Bouncy Castle Cryptography Library 1.49 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |