| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private byte[] | |
| private static final int[] | |
| private int | |
| private static final byte[][] | |
| private int[] | |
| private 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[] | |
| 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[]
[in] the ciphertext to be decrypted. cipher, int [in] the ciphertext offset in the array of bytes. cOff, byte[] [out] the decrypted plaintext output. plain, int [in] the plaintext offset in the array of bytes. pOff)Implements abstract com. Method for one block of decryption. |
| pack-priv void | encryptBlock(byte[]
[in] the plaintext to be encrypted. plain, int [in] the plaintext offset in the array of bytes. pOff, byte[] [out] the encrypted ciphertext output. cipher, int [in] the ciphertext offset in the array of bytes. cOff)Implements abstract com. Method for one block of encryption. |
| private static int[] | Returns: the inverse cipher round keys.[in] the targeted word for substitution. w, int [in] the number of rounds for generating the round keys. rounds)Generate the inverse cipher round keys. |
| private static int[] | Returns: the cipher round keys.[in] the symmetric key byte array. key, int [in] the number of rounds for generating the round keys. rounds)Generate the cipher's round keys as outlined in section 5.2 of the spec. |
| pack-priv int | Returns: the AES block cipher size (in bytes).Implements abstract com. Return the block cipher size. |
| private void | implDecryptBlock(byte[]
[in] the ciphertext to be decrypted. c, int [in] the ciphertext offset in the array of bytes. co, byte[] [out] the plaintext output. p, int [in] the plaintext offset in the array of bytes. po)Method for one block of decryption. |
| private void | implEncryptBlock(byte[]
[in] the plaintext to be encrypted. p, int [in] the plaintext offset in the array of bytes. po, byte[] [out] the ciphertext output. c, int [in] the ciphertext offset in the array of bytes. co)Method for one block of encryption. |
| pack-priv void | init(boolean
[in] indicates if encrypting ( decrypting, String false) or
decrypting (true).[in] the case insentive string name for the AES cipher. algorithm, byte[] [in] the symmetric key byte array for encryption/decryption. key)Implements abstract com. Check algorithm and initalize round keys for decryption and encryption. |
| pack-priv static boolean | Returns: true if the size of the key is valid else false.the size of the key (in bytes) to be validated. len)Verifies if the length argument is a valid key size or not. |
| private static int | Returns: the substituted word.[in] the targeted word for substitution. word)Substitute the word as a step of key expansion. |
| AES_128_ROUNDS | back to summary |
|---|---|
| private static final int AES_128_ROUNDS | |
| AES_192_ROUNDS | back to summary |
|---|---|
| private static final int AES_192_ROUNDS | |
| AES_256_ROUNDS | back to summary |
|---|---|
| private static final int AES_256_ROUNDS | |
| BW | back to summary |
|---|---|
| private static final int BW | |
| prevKey | back to summary |
|---|---|
| private byte[] prevKey | |
| RCON | back to summary |
|---|---|
| private static final int[] RCON | |
| rounds | back to summary |
|---|---|
| private int rounds | |
| SBOX | back to summary |
|---|---|
| private static final byte[][] SBOX | |
| sessionKd | back to summary |
|---|---|
| private int[] sessionKd | |
| sessionKe | back to summary |
|---|---|
| private int[] sessionKe | |
| T0 | back to summary |
|---|---|
| private static final int[] T0 | |
| 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 | |
| TI0 | back to summary |
|---|---|
| private static final int[] TI0 | |
| TI1 | back to summary |
|---|---|
| private static final int[] TI1 | |
| TI2 | back to summary |
|---|---|
| private static final int[] TI2 | |
| TI3 | back to summary |
|---|---|
| private static final int[] TI3 | |
| TI4 | back to summary |
|---|---|
| private static final int[] TI4 | |
| TMI0 | back to summary |
|---|---|
| private static final int[] TMI0 | |
| TMI1 | back to summary |
|---|---|
| private static final int[] TMI1 | |
| TMI2 | back to summary |
|---|---|
| private static final int[] TMI2 | |
| TMI3 | back to summary |
|---|---|
| private static final int[] TMI3 | |
| WB | back to summary |
|---|---|
| private static final int WB | |
| AES_Crypt | back to summary |
|---|---|
| pack-priv AES_Crypt() | |
| decryptBlock | back to summary |
|---|---|
| pack-priv void decryptBlock(byte[] cipher, int cOff, byte[] plain, int pOff) Implements abstract com. Method for one block of decryption.
| |
| encryptBlock | back to summary |
|---|---|
| pack-priv void encryptBlock(byte[] plain, int pOff, byte[] cipher, int cOff) Implements abstract com. Method for one block of encryption.
| |
| genInvRoundKeys | back to summary |
|---|---|
| private static int[] genInvRoundKeys(int[] w, int rounds) Generate the inverse cipher round keys.
| |
| genRoundKeys | back to summary |
|---|---|
| private static int[] genRoundKeys(byte[] key, int rounds) Generate the cipher's round keys as outlined in section 5.2 of the spec.
| |
| getBlockSize | back to summary |
|---|---|
| pack-priv int getBlockSize() Implements abstract com. Return the block cipher size.
| |
| implDecryptBlock | back to summary |
|---|---|
| private void implDecryptBlock(byte[] c, int co, byte[] p, int po) Method for one block of decryption.
| |
| implEncryptBlock | back to summary |
|---|---|
| private void implEncryptBlock(byte[] p, int po, byte[] c, int co) Method for one block of encryption.
| |
| init | back to summary |
|---|---|
| pack-priv void init(boolean decrypting, String algorithm, byte[] key) throws InvalidKeyException Implements abstract com. Check algorithm and initalize round keys for decryption and encryption.
| |
| isKeySizeValid | back to summary |
|---|---|
| pack-priv static boolean isKeySizeValid(int len) Verifies if the length argument is a valid key size or not.
| |
| subWord | back to summary |
|---|---|
| private static int subWord(int word) Substitute the word as a step of key expansion.
| |