AES 128 implementation encrypting a 1GB test file.
- Create the file with
openssl rand -out sample.txt -base64 $(( 2**30 * 3/4 ))
- Encrypt using openssl
openssl aes-128-ecb -a -salt -in sample.txt -out sample.txt.enc
- Decrypt using openssl
openssl aes-128-ecb -d -a -in sample.txt.enc -out sample.txt.new
- Veryfy the plaintext is the same when decrypted
hexdump -n64 sample.txt
- Veryfy the plaintext is the same when decrypted
hexdump -n64 sample.txt.new
cd ..
cmake AES-128
make