public class GCM
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
GCM_ACCEPTING_CIPHER |
static int |
GCM_ACCEPTING_HEADER |
static int |
GCM_DECRYPTING |
static int |
GCM_ENCRYPTING |
static int |
GCM_FINISHED |
static int |
GCM_NOT_ACCEPTING_MORE |
static int |
NB |
| Constructor and Description |
|---|
GCM() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
add_cipher(byte[] cipher,
int len) |
boolean |
add_header(byte[] header,
int len) |
byte[] |
add_plain(byte[] plain,
int len) |
static void |
decrypt(byte[] P,
byte[] T,
byte[] K,
byte[] IV,
byte[] H,
byte[] C) |
static void |
encrypt(byte[] C,
byte[] T,
byte[] K,
byte[] IV,
byte[] H,
byte[] P) |
byte[] |
finish(boolean extract) |
static byte[] |
hex2bytes(java.lang.String s) |
void |
init(int nk,
byte[] key,
int niv,
byte[] iv) |
public static final int NB
public static final int GCM_ACCEPTING_HEADER
public static final int GCM_ACCEPTING_CIPHER
public static final int GCM_NOT_ACCEPTING_MORE
public static final int GCM_FINISHED
public static final int GCM_ENCRYPTING
public static final int GCM_DECRYPTING
public void init(int nk,
byte[] key,
int niv,
byte[] iv)
public boolean add_header(byte[] header,
int len)
public byte[] add_plain(byte[] plain,
int len)
public byte[] add_cipher(byte[] cipher,
int len)
public byte[] finish(boolean extract)
public static byte[] hex2bytes(java.lang.String s)
public static void encrypt(byte[] C,
byte[] T,
byte[] K,
byte[] IV,
byte[] H,
byte[] P)
public static void decrypt(byte[] P,
byte[] T,
byte[] K,
byte[] IV,
byte[] H,
byte[] C)