aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/examples
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2015-05-24 17:47:15 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2015-05-24 17:47:15 +0300
commitbec414fe59dcc319183aab9ca9cbd70fbb4242df (patch)
tree89632780cc459350723b193aac2689b924878542 /examples
parentadd higher-level encrypt/decrypt functions (diff)
downloadaes-tools-bec414fe59dcc319183aab9ca9cbd70fbb4242df.tar.gz
aes-tools-bec414fe59dcc319183aab9ca9cbd70fbb4242df.zip
add FIPS-style printing to AES-192/256 blocks
Diffstat (limited to '')
-rw-r--r--examples/aes192_example.c1
-rw-r--r--examples/aes256cbc_example.c1
-rw-r--r--examples/aes256ecb_example.c1
3 files changed, 3 insertions, 0 deletions
diff --git a/examples/aes192_example.c b/examples/aes192_example.c
index c936ab7..eb9b79d 100644
--- a/examples/aes192_example.c
+++ b/examples/aes192_example.c
@@ -25,6 +25,7 @@ int main()
printf("\n");
printf("Key: %s\n", format_aes_block192(&key).str);
printf(" %s\n", format_aes_block192_fips_style(&key).str);
+ print_aes_block192_fips_matrix_style(&key);
cypher = aes192ecb_encrypt(plain, &key);
printf("\n");
diff --git a/examples/aes256cbc_example.c b/examples/aes256cbc_example.c
index 4ce50d9..275b947 100644
--- a/examples/aes256cbc_example.c
+++ b/examples/aes256cbc_example.c
@@ -26,6 +26,7 @@ int main()
printf("\n");
printf("Key: %s\n", format_aes_block256(&key).str);
printf(" %s\n", format_aes_block256_fips_style(&key).str);
+ print_aes_block256_fips_matrix_style(&key);
printf("\n");
printf("Initialization vector: %s\n", format_aes_block128(&iv).str);
diff --git a/examples/aes256ecb_example.c b/examples/aes256ecb_example.c
index fe7f9b9..d7a82ee 100644
--- a/examples/aes256ecb_example.c
+++ b/examples/aes256ecb_example.c
@@ -25,6 +25,7 @@ int main()
printf("\n");
printf("Key: %s\n", format_aes_block256(&key).str);
printf(" %s\n", format_aes_block256_fips_style(&key).str);
+ print_aes_block256_fips_matrix_style(&key);
cypher = aes256ecb_encrypt(plain, &key);
printf("\n");