public class AES
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
BS |
static int |
CBC |
static int |
CFB1 |
static int |
CFB2 |
static int |
CFB4 |
static int |
CTR1 |
static int |
CTR16 |
static int |
CTR2 |
static int |
CTR4 |
static int |
CTR8 |
static int |
ECB |
byte[] |
f |
static int |
OFB1 |
static int |
OFB16 |
static int |
OFB2 |
static int |
OFB4 |
static int |
OFB8 |
| Constructor and Description |
|---|
AES() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
CBC_IV0_DECRYPT(byte[] K,
byte[] C) |
static byte[] |
CBC_IV0_ENCRYPT(byte[] K,
byte[] M) |
int |
decrypt(byte[] buff) |
void |
ecb_decrypt(byte[] buff) |
void |
ecb_encrypt(byte[] buff) |
int |
encrypt(byte[] buff) |
void |
end() |
byte[] |
getreg() |
boolean |
init(int m,
int nk,
byte[] key,
byte[] iv) |
void |
reset(int m,
byte[] iv) |
public byte[] f
public static final int ECB
public static final int CBC
public static final int CFB1
public static final int CFB2
public static final int CFB4
public static final int OFB1
public static final int OFB2
public static final int OFB4
public static final int OFB8
public static final int OFB16
public static final int CTR1
public static final int CTR2
public static final int CTR4
public static final int CTR8
public static final int CTR16
public static final int BS
public void reset(int m,
byte[] iv)
public byte[] getreg()
public boolean init(int m,
int nk,
byte[] key,
byte[] iv)
public void ecb_encrypt(byte[] buff)
public void ecb_decrypt(byte[] buff)
public int encrypt(byte[] buff)
public int decrypt(byte[] buff)
public void end()
public static byte[] CBC_IV0_ENCRYPT(byte[] K,
byte[] M)
public static byte[] CBC_IV0_DECRYPT(byte[] K,
byte[] C)