org.bouncycastle.crypto.modes.kgcm
Class KGCMUtil_128
java.lang.Object
|
+--org.bouncycastle.crypto.modes.kgcm.KGCMUtil_128
- public class KGCMUtil_128
- extends java.lang.Object
Utilities for the GF(2^m) field with corresponding extension polynomial:
GF (2^128) -> x^128 + x^7 + x^2 + x + 1
The representation is little-endian arrays of 64-bit words
Field Summary |
static int |
SIZE
|
Method Summary |
static 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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SIZE
public static final int SIZE
KGCMUtil_128
public KGCMUtil_128()
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)