|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.pqc.legacy.math.linearalgebra.ByteUtils
This class is a utility class for manipulating byte arrays.
Method Summary | |
static byte[] |
clone(byte[] array)
Deprecated. Return a clone of the given byte array (performs null check beforehand). |
static byte[] |
concatenate(byte[][] array)
Deprecated. Convert a 2-dimensional byte array into a 1-dimensional byte array by concatenating all entries. |
static byte[] |
concatenate(byte[] x1,
byte[] x2)
Deprecated. Concatenate two byte arrays. |
static int |
deepHashCode(byte[] array)
Deprecated. Computes a hashcode based on the contents of a one-dimensional byte array rather than its identity. |
static int |
deepHashCode(byte[][] array)
Deprecated. Computes a hashcode based on the contents of a two-dimensional byte array rather than its identity. |
static int |
deepHashCode(byte[][][] array)
Deprecated. Computes a hashcode based on the contents of a three-dimensional byte array rather than its identity. |
static boolean |
equals(byte[][][] left,
byte[][][] right)
Deprecated. Compare two three-dimensional byte arrays. |
static boolean |
equals(byte[][] left,
byte[][] right)
Deprecated. Compare two two-dimensional byte arrays. |
static boolean |
equals(byte[] left,
byte[] right)
Deprecated. Compare two byte arrays (perform null checks beforehand). |
static byte[] |
fromHexString(java.lang.String s)
Deprecated. Convert a string containing hexadecimal characters to a byte-array. |
static byte[][] |
split(byte[] input,
int index)
Deprecated. Split a byte array input into two arrays at index, i.e. the first array will have the lower index bytes, the second one the higher input.length - index bytes. |
static byte[] |
subArray(byte[] input,
int start)
Deprecated. Generate a subarray of a given byte array. |
static byte[] |
subArray(byte[] input,
int start,
int end)
Deprecated. Generate a subarray of a given byte array. |
static java.lang.String |
toBinaryString(byte[] input)
Deprecated. Convert a byte array to the corresponding bit string. |
static char[] |
toCharArray(byte[] input)
Deprecated. Rewrite a byte array as a char array |
static java.lang.String |
toHexString(byte[] input)
Deprecated. Convert a byte array to the corresponding hexstring. |
static java.lang.String |
toHexString(byte[] input,
java.lang.String prefix,
java.lang.String seperator)
Deprecated. Convert a byte array to the corresponding hex string. |
static byte[] |
xor(byte[] x1,
byte[] x2)
Deprecated. Compute the bitwise XOR of two arrays of bytes. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static boolean equals(byte[] left, byte[] right)
left
- the first byte arrayright
- the second byte array
public static boolean equals(byte[][] left, byte[][] right)
left
- the first byte arrayright
- the second byte array
public static boolean equals(byte[][][] left, byte[][][] right)
left
- the first byte arrayright
- the second byte array
public static int deepHashCode(byte[] array)
array
- the array to compute the hashcode of
public static int deepHashCode(byte[][] array)
array
- the array to compute the hashcode of
public static int deepHashCode(byte[][][] array)
array
- the array to compute the hashcode of
public static byte[] clone(byte[] array)
array
- the array to clone
public static byte[] fromHexString(java.lang.String s)
s
- a hex string
public static java.lang.String toHexString(byte[] input)
input
- the byte array to be converted
public static java.lang.String toHexString(byte[] input, java.lang.String prefix, java.lang.String seperator)
input
- the byte array to be convertedprefix
- the prefix to put at the beginning of the hex stringseperator
- a separator string
public static java.lang.String toBinaryString(byte[] input)
input
- the byte array to be converted
public static byte[] xor(byte[] x1, byte[] x2)
x1
- the first arrayx2
- the second array
public static byte[] concatenate(byte[] x1, byte[] x2)
x1
- the first arrayx2
- the second array
public static byte[] concatenate(byte[][] array)
array
- a 2-dimensional byte array
public static byte[][] split(byte[] input, int index) throws java.lang.ArrayIndexOutOfBoundsException
input
- the byte array to be splitindex
- the index where the byte array is split
java.lang.ArrayIndexOutOfBoundsException
- if index is out of boundspublic static byte[] subArray(byte[] input, int start, int end)
input
- the input byte arraystart
- the start indexend
- the end index
public static byte[] subArray(byte[] input, int start)
input
- the input byte arraystart
- the start index
public static char[] toCharArray(byte[] input)
input
- -
the byte array
|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |