aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/examples/aes256ecb.c
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2015-06-04 17:05:24 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2015-06-04 17:05:24 +0300
commita497b83f80508747151dacf660f7d5de48d0464f (patch)
treeb2ded10280830aa31b3be10e2b81fc1a42df65e0 /examples/aes256ecb.c
parentrefactoring (diff)
downloadaes-tools-a497b83f80508747151dacf660f7d5de48d0464f.tar.gz
aes-tools-a497b83f80508747151dacf660f7d5de48d0464f.zip
explicitly separate BE vs. LE block I/O functions
Diffstat (limited to '')
-rw-r--r--examples/aes256ecb.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/aes256ecb.c b/examples/aes256ecb.c
index 18e9e88..e1e2488 100644
--- a/examples/aes256ecb.c
+++ b/examples/aes256ecb.c
@@ -20,11 +20,11 @@ int main()
key = make_aes_block256(0x1f1e1d1c, 0x1b1a1918, 0x17161514, 0x13121110, 0x0f0e0d0c, 0x0b0a0908, 0x07060504, 0x03020100);
printf("Plain: %s\n", format_aes_block128(&plain).str);
- print_aes_block128_fips_matrix_style(&plain);
+ print_aes_block128_as_matrix(&plain);
printf("\n");
printf("Key: %s\n", format_aes_block256(&key).str);
- print_aes_block256_fips_matrix_style(&key);
+ print_aes_block256_as_matrix(&key);
aes256_expand_key_schedule(&key, &key_schedule);
@@ -36,7 +36,7 @@ int main()
cipher = aes256ecb_encrypt(plain, &key_schedule);
printf("\n");
printf("Cipher: %s\n", format_aes_block128(&cipher).str);
- print_aes_block128_fips_matrix_style(&cipher);
+ print_aes_block128_as_matrix(&cipher);
aes256_invert_key_schedule(&key_schedule, &inverted_schedule);
@@ -48,7 +48,7 @@ int main()
decrypted = aes256ecb_decrypt(cipher, &inverted_schedule);
printf("\n");
printf("Decrypted: %s\n", format_aes_block128(&decrypted).str);
- print_aes_block128_fips_matrix_style(&decrypted);
+ print_aes_block128_as_matrix(&decrypted);
return 0;
}