Class KGCMUtil_256
java.lang.Object
org.bouncycastle.crypto.modes.kgcm.KGCMUtil_256
Utilities for the GF(2^m) field with corresponding extension polynomial:
GF (2^256) -> x^256 + x^10 + x^5 + x^2 + 1The representation is little-endian arrays of 64-bit words
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
add
(long[] x, long[] y, long[] z) static void
copy
(long[] x, long[] z) static boolean
equal
(long[] x, long[] y) static void
multiply
(long[] x, long[] y, long[] z) static void
multiplyX
(long[] x, long[] z) static void
multiplyX8
(long[] x, long[] z) static void
one
(long[] z) static void
square
(long[] x, long[] z) static void
x
(long[] z) static void
zero
(long[] z)
-
Field Details
-
SIZE
public static final int SIZE- See Also:
-
-
Constructor Details
-
KGCMUtil_256
public KGCMUtil_256()
-
-
Method Details
-
add
public static void add(long[] x, long[] y, long[] z) -
copy
public static void copy(long[] x, long[] z) -
equal
public static boolean equal(long[] x, long[] y) -
multiply
public static void multiply(long[] x, long[] y, long[] z) -
multiplyX
public static void multiplyX(long[] x, long[] z) -
multiplyX8
public static void multiplyX8(long[] x, long[] z) -
one
public static void one(long[] z) -
square
public static void square(long[] x, long[] z) -
x
public static void x(long[] z) -
zero
public static void zero(long[] z)
-