aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/examples/aes256ofb.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--examples/aes256ofb.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/examples/aes256ofb.c b/examples/aes256ofb.c
index 6ed4621..0ef42fd 100644
--- a/examples/aes256ofb.c
+++ b/examples/aes256ofb.c
@@ -21,15 +21,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_block256(&key).str);
- print_aes_block256_fips_matrix_style(&key);
+ print_aes_block256_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);
aes256_expand_key_schedule(&key, &key_schedule);
@@ -41,20 +41,20 @@ int main()
cipher = aes256ofb_encrypt(plain, &key_schedule, iv, &next_iv);
printf("\n");
printf("Cipher: %s\n", format_aes_block128(&cipher).str);
- print_aes_block128_fips_matrix_style(&cipher);
+ print_aes_block128_as_matrix(&cipher);
printf("\n");
printf("Next initialization vector: %s\n", format_aes_block128(&next_iv).str);
- print_aes_block128_fips_matrix_style(&next_iv);
+ print_aes_block128_as_matrix(&next_iv);
decrypted = aes256ofb_decrypt(cipher, &key_schedule, iv, &next_iv);
printf("\n");
printf("Decrypted: %s\n", format_aes_block128(&decrypted).str);
- print_aes_block128_fips_matrix_style(&decrypted);
+ print_aes_block128_as_matrix(&decrypted);
printf("\n");
printf("Next initialization vector: %s\n", format_aes_block128(&next_iv).str);
- print_aes_block128_fips_matrix_style(&next_iv);
+ print_aes_block128_as_matrix(&next_iv);
return 0;
}