Class GCMUtil
java.lang.Object
org.bouncycastle.crypto.modes.gcm.GCMUtil
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic byteareEqual(byte[] x, byte[] y) static intareEqual(int[] x, int[] y) static longareEqual(long[] x, long[] y) static byte[]asBytes(int[] x) static voidasBytes(int[] x, byte[] z) static byte[]asBytes(long[] x) static voidasBytes(long[] x, byte[] z) static int[]asInts(byte[] x) static voidasInts(byte[] x, int[] z) static long[]asLongs(byte[] x) static voidasLongs(byte[] x, long[] z) static voidcopy(byte[] x, byte[] z) static voidcopy(int[] x, int[] z) static voidcopy(long[] x, long[] z) static voiddivideP(long[] x, long[] z) static voidmultiply(byte[] x, byte[] y) static voidmultiply(int[] x, int[] y) static voidmultiply(long[] x, long[] y) static voidmultiplyP(int[] x) static voidmultiplyP(int[] x, int[] z) static voidmultiplyP(long[] x) static voidmultiplyP(long[] x, long[] z) static voidmultiplyP16(long[] x) static voidmultiplyP3(long[] x, long[] z) static voidmultiplyP4(long[] x, long[] z) static voidmultiplyP7(long[] x, long[] z) static voidmultiplyP8(int[] x) static voidmultiplyP8(int[] x, int[] y) static voidmultiplyP8(long[] x) static voidmultiplyP8(long[] x, long[] y) static byte[]static int[]static long[]static long[]pAsLongs()static voidsquare(long[] x, long[] z) static voidxor(byte[] x, byte[] y) static voidxor(byte[] x, byte[] y, byte[] z) static voidxor(byte[] x, byte[] y, int yOff) static voidxor(byte[] x, byte[] y, int yOff, int yLen) static voidxor(byte[] x, int xOff, byte[] y, int yOff, byte[] z, int zOff) static voidxor(byte[] x, int xOff, byte[] y, int yOff, int len) static voidxor(int[] x, int[] y) static voidxor(int[] x, int[] y, int[] z) static voidxor(long[] x, long[] y) static voidxor(long[] x, long[] y, long[] z)
-
Field Details
-
SIZE_BYTES
public static final int SIZE_BYTES- See Also:
-
SIZE_INTS
public static final int SIZE_INTS- See Also:
-
SIZE_LONGS
public static final int SIZE_LONGS- See Also:
-
-
Constructor Details
-
GCMUtil
public GCMUtil()
-
-
Method Details
-
oneAsBytes
public static byte[] oneAsBytes() -
oneAsInts
public static int[] oneAsInts() -
oneAsLongs
public static long[] oneAsLongs() -
areEqual
public static byte areEqual(byte[] x, byte[] y) -
areEqual
public static int areEqual(int[] x, int[] y) -
areEqual
public static long areEqual(long[] x, long[] y) -
asBytes
public static byte[] asBytes(int[] x) -
asBytes
public static void asBytes(int[] x, byte[] z) -
asBytes
public static byte[] asBytes(long[] x) -
asBytes
public static void asBytes(long[] x, byte[] z) -
asInts
public static int[] asInts(byte[] x) -
asInts
public static void asInts(byte[] x, int[] z) -
asLongs
public static long[] asLongs(byte[] x) -
asLongs
public static void asLongs(byte[] x, long[] z) -
copy
public static void copy(byte[] x, byte[] z) -
copy
public static void copy(int[] x, int[] z) -
copy
public static void copy(long[] x, long[] z) -
divideP
public static void divideP(long[] x, long[] z) -
multiply
public static void multiply(byte[] x, byte[] y) -
multiply
public static void multiply(int[] x, int[] y) -
multiply
public static void multiply(long[] x, long[] y) -
multiplyP
public static void multiplyP(int[] x) -
multiplyP
public static void multiplyP(int[] x, int[] z) -
multiplyP
public static void multiplyP(long[] x) -
multiplyP
public static void multiplyP(long[] x, long[] z) -
multiplyP3
public static void multiplyP3(long[] x, long[] z) -
multiplyP4
public static void multiplyP4(long[] x, long[] z) -
multiplyP7
public static void multiplyP7(long[] x, long[] z) -
multiplyP8
public static void multiplyP8(int[] x) -
multiplyP8
public static void multiplyP8(int[] x, int[] y) -
multiplyP8
public static void multiplyP8(long[] x) -
multiplyP8
public static void multiplyP8(long[] x, long[] y) -
multiplyP16
public static void multiplyP16(long[] x) -
pAsLongs
public static long[] pAsLongs() -
square
public static void square(long[] x, long[] z) -
xor
public static void xor(byte[] x, byte[] y) -
xor
public static void xor(byte[] x, byte[] y, int yOff) -
xor
public static void xor(byte[] x, int xOff, byte[] y, int yOff, byte[] z, int zOff) -
xor
public static void xor(byte[] x, byte[] y, int yOff, int yLen) -
xor
public static void xor(byte[] x, int xOff, byte[] y, int yOff, int len) -
xor
public static void xor(byte[] x, byte[] y, byte[] z) -
xor
public static void xor(int[] x, int[] y) -
xor
public static void xor(int[] x, int[] y, int[] z) -
xor
public static void xor(long[] x, long[] y) -
xor
public static void xor(long[] x, long[] y, long[] z)
-