From a497b83f80508747151dacf660f7d5de48d0464f Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Thu, 4 Jun 2015 17:05:24 +0300 Subject: explicitly separate BE vs. LE block I/O functions --- examples/aes128ctr.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'examples/aes128ctr.c') diff --git a/examples/aes128ctr.c b/examples/aes128ctr.c index 0291032..d798e70 100644 --- a/examples/aes128ctr.c +++ b/examples/aes128ctr.c @@ -20,15 +20,15 @@ int main() iv = make_aes_block128(0xfedcba98, 0x76543210, 0xfedcba98, 0x76543210); 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_block128(&key).str); - print_aes_block128_fips_matrix_style(&key); + print_aes_block128_as_matrix(&key); printf("\n"); printf("Initialization vector: %s\n", format_aes_block128(&iv).str); - print_aes_block128_fips_matrix_style(&iv); + print_aes_block128_as_matrix(&iv); aes128_expand_key_schedule(key, &key_schedule); @@ -40,12 +40,12 @@ int main() cipher = aes128ctr_encrypt(plain, &key_schedule, iv, 0); printf("\n"); printf("Cipher: %s\n", format_aes_block128(&cipher).str); - print_aes_block128_fips_matrix_style(&cipher); + print_aes_block128_as_matrix(&cipher); decrypted = aes128ctr_decrypt(cipher, &key_schedule, iv, 0); 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; } -- cgit v1.2.3