public final class AesUtil extends Object
Beware: some of the functions here are specific to the representation used for AES-CMAC and SIV, as described in their RFCs. These might not work if used in other contexts.
| Modifier and Type | Field and Description |
|---|---|
static int |
BLOCK_SIZE |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
cmacPad(byte[] x)
Pad by adding a 1 bit, then pad with 0 bits to the next block limit.
|
static byte[] |
dbl(byte[] value)
Multiplies value by x in the finite field GF(2^128) represented using the primitive polynomial
x^128 + x^7 + x^2 + x + 1.
|
public static final int BLOCK_SIZE
public static byte[] dbl(byte[] value)
value - an arrays of 16 bytes representing an element of GF(2^128) using bigendian byte
order.public static byte[] cmacPad(byte[] x)
x - The array to pad (will be copied)