Rijndael was designed by Vincent Rijmen and Joan Daemen.
Modifier and Type | Field and Description |
---|---|
private int[] | |
private byte[] | lastKey
Cipher encryption/decryption key |
private int | limit
ROUNDS * 4 |
private static final int[] | |
private boolean | |
private boolean | |
private static final byte[] | |
private int[][] | sessionK
Session and Sub keys |
private static final byte[] | |
private static final int[] | |
private static final int[] | |
private static final int[] | |
private static final int[] | |
private static final int[] | |
private static final int[] | |
private static final int[] | |
private static final int[] | |
private static final int[] | |
private static final int[] | |
private static final int[] | |
private static final int[] |
Access | Constructor and Description |
---|---|
pack-priv |
Modifier and Type | Method and Description |
---|---|
pack-priv void | decryptBlock(byte[]
the input buffer with the data to be decrypted in, int the offset in inOffset, byte[] cipher the buffer for the decryption result out, int the offset in outOffset)plain Implements abstract com. |
pack-priv void | encryptBlock(byte[]
the input buffer with the data to be encrypted in, int the offset in inOffset, byte[] plain the buffer for the encryption result out, int the offset in outOffset)cipher Implements abstract com. |
pack-priv int | Returns: this cipher's block sizeImplements abstract com. |
private static int | Returns: The number of rounds.The size of the user key material in bytes.
MUST be one of (16, 24, 32). keySize)Return The number of rounds for a given Rijndael keysize. |
private void | |
private void | |
pack-priv void | init(boolean
flag indicating encryption or decryption decrypting, String the algorithm name algorithm, byte[] the key key)Implements abstract com. |
pack-priv static boolean | |
private void | makeSessionKey(byte[]
The 128/192/256-bit cipher key to use. k)Expand a user-supplied key material into a session key. |
K | back to summary |
---|---|
private int[] K |
lastKey | back to summary |
---|---|
private byte[] lastKey Cipher encryption/decryption key |
limit | back to summary |
---|---|
private int limit ROUNDS * 4 |
rcon | back to summary |
---|---|
private static final int[] rcon |
ROUNDS_12 | back to summary |
---|---|
private boolean ROUNDS_12 |
ROUNDS_14 | back to summary |
---|---|
private boolean ROUNDS_14 |
S | back to summary |
---|---|
private static final byte[] S |
sessionK | back to summary |
---|---|
private int[][] sessionK Session and Sub keys |
Si | back to summary |
---|---|
private static final byte[] Si |
T1 | back to summary |
---|---|
private static final int[] T1 |
T2 | back to summary |
---|---|
private static final int[] T2 |
T3 | back to summary |
---|---|
private static final int[] T3 |
T4 | back to summary |
---|---|
private static final int[] T4 |
T5 | back to summary |
---|---|
private static final int[] T5 |
T6 | back to summary |
---|---|
private static final int[] T6 |
T7 | back to summary |
---|---|
private static final int[] T7 |
T8 | back to summary |
---|---|
private static final int[] T8 |
U1 | back to summary |
---|---|
private static final int[] U1 |
U2 | back to summary |
---|---|
private static final int[] U2 |
U3 | back to summary |
---|---|
private static final int[] U3 |
U4 | back to summary |
---|---|
private static final int[] U4 |
AESCrypt | back to summary |
---|---|
pack-priv AESCrypt() |
decryptBlock | back to summary |
---|---|
pack-priv void decryptBlock(byte[] in, int inOffset, byte[] out, int outOffset) Implements abstract com. Decrypt exactly one block of plaintext.
|
encryptBlock | back to summary |
---|---|
pack-priv void encryptBlock(byte[] in, int inOffset, byte[] out, int outOffset) Implements abstract com. Encrypt exactly one block of plaintext.
|
getBlockSize | back to summary |
---|---|
pack-priv int getBlockSize() Implements abstract com. Returns this cipher's block size.
|
getRounds | back to summary |
---|---|
private static int getRounds(int keySize) Return The number of rounds for a given Rijndael keysize.
|
implDecryptBlock | back to summary |
---|---|
private void implDecryptBlock(byte[] in, int inOffset, byte[] out, int outOffset)
|
implEncryptBlock | back to summary |
---|---|
private void implEncryptBlock(byte[] in, int inOffset, byte[] out, int outOffset)
|
init | back to summary |
---|---|
pack-priv void init(boolean decrypting, String algorithm, byte[] key) throws InvalidKeyException Implements abstract com. Doc from com. Initializes the cipher in the specified mode with the given key.
|
isKeySizeValid | back to summary |
---|---|
pack-priv static boolean isKeySizeValid(int len) |
makeSessionKey | back to summary |
---|---|
private void makeSessionKey(byte[] k) throws InvalidKeyException Expand a user-supplied key material into a session key.
|