AES Encryption
Start
Read Input form plaintext
file (plaintext.txt)
(Hex)
Read keys form file
(keys.txt)
Convert Hex to Binary
Hex - 128 bits
AES Encryption Function
(1. SubByte() [s-box]
(2. ShiftRows()
(3. MixColumns()
(4. AddRoundKey(round)
Convert Binary to Hex
Record / save
(aesencryptrecord.txt)
1. SubByte()
2. ShiftRows()
3. (MixCounds()
4. AddRoundKey()
Record / save
End
(ciphertext.txt)
AES Decryption
Start
Read Input form Ciphertext
file (ciphertext_dec.txt)
(Hex)
Read keys form file
(keys.txt)
Convert Hex to Binary
Hex - 128 bits
AES Decryption Function
(5. SubByte() [s-box]
(6. ShiftRows()
(7. MixColumns()
(8. AddRoundKey(round)
Convert Binary to Hex
Record / save
(aesdecryptrecord.txt)
5. SubByte()
6. ShiftRows()
7. (MixCounds()
8. AddRoundKey()
Record / save
End
(plaintext_dec.txt)
Scope:
1. Block Cipher size is 512 bits.
2. Keys size is 128 bits.