diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2015-06-04 03:25:57 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2015-06-04 03:25:57 +0300 |
commit | f89d5f29a90d6c71068a759e5891e925131a5e65 (patch) | |
tree | 0eef5f382f350542d9fa5a4288a285422ae61296 /examples/aes256ecb_example.c | |
parent | add CTR mode (diff) | |
download | aes-tools-f89d5f29a90d6c71068a759e5891e925131a5e65.tar.gz aes-tools-f89d5f29a90d6c71068a759e5891e925131a5e65.zip |
grammar tweaks
Diffstat (limited to 'examples/aes256ecb_example.c')
-rw-r--r-- | examples/aes256ecb_example.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/aes256ecb_example.c b/examples/aes256ecb_example.c index 37366a3..31d05d7 100644 --- a/examples/aes256ecb_example.c +++ b/examples/aes256ecb_example.c @@ -12,7 +12,7 @@ int main() { - __declspec(align(16)) AesBlock128 plain, cypher, decrypted; + __declspec(align(16)) AesBlock128 plain, cipher, decrypted; __declspec(align(16)) AesBlock256 key; __declspec(align(16)) Aes256KeySchedule key_schedule, inverted_schedule; @@ -33,10 +33,10 @@ int main() for (int i = 0; i < 15; ++i) printf("\t[%d]: %s\n", i, format_aes_block128(&key_schedule.keys[i]).str); - cypher = aes256ecb_encrypt(plain, &key_schedule); + cipher = aes256ecb_encrypt(plain, &key_schedule); printf("\n"); - printf("Cypher: %s\n", format_aes_block128(&cypher).str); - print_aes_block128_fips_matrix_style(&cypher); + printf("Cypher: %s\n", format_aes_block128(&cipher).str); + print_aes_block128_fips_matrix_style(&cipher); aes256_invert_key_schedule(&key_schedule, &inverted_schedule); @@ -45,7 +45,7 @@ int main() for (int i = 0; i < 15; ++i) printf("\t[%d]: %s\n", i, format_aes_block128(&inverted_schedule.keys[i]).str); - decrypted = aes256ecb_decrypt(cypher, &inverted_schedule); + decrypted = aes256ecb_decrypt(cipher, &inverted_schedule); printf("\n"); printf("Decrypted: %s\n", format_aes_block128(&decrypted).str); print_aes_block128_fips_matrix_style(&decrypted); |