diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/aes128cbc_example.c | 10 | ||||
-rw-r--r-- | examples/aes128cfb_example.c | 10 | ||||
-rw-r--r-- | examples/aes128ctr_example.c | 10 | ||||
-rw-r--r-- | examples/aes128ecb_example.c | 10 | ||||
-rw-r--r-- | examples/aes128ofb_example.c | 10 | ||||
-rw-r--r-- | examples/aes192cbc_example.c | 10 | ||||
-rw-r--r-- | examples/aes192cfb_example.c | 10 | ||||
-rw-r--r-- | examples/aes192ctr_example.c | 10 | ||||
-rw-r--r-- | examples/aes192ecb_example.c | 10 | ||||
-rw-r--r-- | examples/aes192ofb_example.c | 10 | ||||
-rw-r--r-- | examples/aes256cbc_example.c | 10 | ||||
-rw-r--r-- | examples/aes256cfb_example.c | 10 | ||||
-rw-r--r-- | examples/aes256ctr_example.c | 10 | ||||
-rw-r--r-- | examples/aes256ecb_example.c | 10 | ||||
-rw-r--r-- | examples/aes256ofb_example.c | 10 |
15 files changed, 75 insertions, 75 deletions
diff --git a/examples/aes128cbc_example.c b/examples/aes128cbc_example.c index 44df122..bf2c601 100644 --- a/examples/aes128cbc_example.c +++ b/examples/aes128cbc_example.c @@ -12,7 +12,7 @@ int main() { - __declspec(align(16)) AesBlock128 plain, key, cypher, decrypted, iv, next_iv; + __declspec(align(16)) AesBlock128 plain, key, cipher, decrypted, iv, next_iv; __declspec(align(16)) Aes128KeySchedule key_schedule, inverted_schedule; plain = make_aes_block128(0xffeeddcc, 0xbbaa9988, 0x77665544, 0x33221100); @@ -37,10 +37,10 @@ int main() for (int i = 0; i < 11; ++i) printf("\t[%d]: %s\n", i, format_aes_block128(&key_schedule.keys[i]).str); - cypher = aes128cbc_encrypt(plain, &key_schedule, iv, &next_iv); + cipher = aes128cbc_encrypt(plain, &key_schedule, iv, &next_iv); 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); printf("\n"); printf("Next initialization vector: %s\n", format_aes_block128(&next_iv).str); @@ -53,7 +53,7 @@ int main() for (int i = 0; i < 11; ++i) printf("\t[%d]: %s\n", i, format_aes_block128(&inverted_schedule.keys[i]).str); - decrypted = aes128cbc_decrypt(cypher, &inverted_schedule, iv, &next_iv); + decrypted = aes128cbc_decrypt(cipher, &inverted_schedule, iv, &next_iv); printf("\n"); printf("Decrypted: %s\n", format_aes_block128(&decrypted).str); print_aes_block128_fips_matrix_style(&decrypted); diff --git a/examples/aes128cfb_example.c b/examples/aes128cfb_example.c index 9d63a9a..c3b7cd2 100644 --- a/examples/aes128cfb_example.c +++ b/examples/aes128cfb_example.c @@ -12,7 +12,7 @@ int main() { - __declspec(align(16)) AesBlock128 plain, key, cypher, decrypted, iv, next_iv; + __declspec(align(16)) AesBlock128 plain, key, cipher, decrypted, iv, next_iv; __declspec(align(16)) Aes128KeySchedule key_schedule; plain = make_aes_block128(0xffeeddcc, 0xbbaa9988, 0x77665544, 0x33221100); @@ -37,16 +37,16 @@ int main() for (int i = 0; i < 11; ++i) printf("\t[%d]: %s\n", i, format_aes_block128(&key_schedule.keys[i]).str); - cypher = aes128cfb_encrypt(plain, &key_schedule, iv, &next_iv); + cipher = aes128cfb_encrypt(plain, &key_schedule, iv, &next_iv); 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); printf("\n"); printf("Next initialization vector: %s\n", format_aes_block128(&next_iv).str); print_aes_block128_fips_matrix_style(&next_iv); - decrypted = aes128cfb_decrypt(cypher, &key_schedule, iv, &next_iv); + decrypted = aes128cfb_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); diff --git a/examples/aes128ctr_example.c b/examples/aes128ctr_example.c index b0d38ff..46251e8 100644 --- a/examples/aes128ctr_example.c +++ b/examples/aes128ctr_example.c @@ -12,7 +12,7 @@ int main() { - __declspec(align(16)) AesBlock128 plain, key, cypher, decrypted, iv; + __declspec(align(16)) AesBlock128 plain, key, cipher, decrypted, iv; __declspec(align(16)) Aes128KeySchedule key_schedule; plain = make_aes_block128(0xffeeddcc, 0xbbaa9988, 0x77665544, 0x33221100); @@ -37,12 +37,12 @@ int main() for (int i = 0; i < 11; ++i) printf("\t[%d]: %s\n", i, format_aes_block128(&key_schedule.keys[i]).str); - cypher = aes128ctr_encrypt(plain, &key_schedule, iv, 0); + cipher = aes128ctr_encrypt(plain, &key_schedule, iv, 0); 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); - decrypted = aes128ctr_decrypt(cypher, &key_schedule, iv, 0); + 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); diff --git a/examples/aes128ecb_example.c b/examples/aes128ecb_example.c index 78b7e5f..1d8e7ae 100644 --- a/examples/aes128ecb_example.c +++ b/examples/aes128ecb_example.c @@ -12,7 +12,7 @@ int main() { - __declspec(align(16)) AesBlock128 plain, key, cypher, decrypted; + __declspec(align(16)) AesBlock128 plain, key, cipher, decrypted; __declspec(align(16)) Aes128KeySchedule key_schedule, inverted_schedule; plain = make_aes_block128(0xffeeddcc, 0xbbaa9988, 0x77665544, 0x33221100); @@ -32,10 +32,10 @@ int main() for (int i = 0; i < 11; ++i) printf("\t[%d]: %s\n", i, format_aes_block128(&key_schedule.keys[i]).str); - cypher = aes128ecb_encrypt(plain, &key_schedule); + cipher = aes128ecb_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); aes128_invert_key_schedule(&key_schedule, &inverted_schedule); @@ -44,7 +44,7 @@ int main() for (int i = 0; i < 11; ++i) printf("\t[%d]: %s\n", i, format_aes_block128(&inverted_schedule.keys[i]).str); - decrypted = aes128ecb_decrypt(cypher, &inverted_schedule); + decrypted = aes128ecb_decrypt(cipher, &inverted_schedule); printf("\n"); printf("Decrypted: %s\n", format_aes_block128(&decrypted).str); print_aes_block128_fips_matrix_style(&decrypted); diff --git a/examples/aes128ofb_example.c b/examples/aes128ofb_example.c index 7685008..51f0a8d 100644 --- a/examples/aes128ofb_example.c +++ b/examples/aes128ofb_example.c @@ -12,7 +12,7 @@ int main() { - __declspec(align(16)) AesBlock128 plain, key, cypher, decrypted, iv, next_iv; + __declspec(align(16)) AesBlock128 plain, key, cipher, decrypted, iv, next_iv; __declspec(align(16)) Aes128KeySchedule key_schedule; plain = make_aes_block128(0xffeeddcc, 0xbbaa9988, 0x77665544, 0x33221100); @@ -37,16 +37,16 @@ int main() for (int i = 0; i < 11; ++i) printf("\t[%d]: %s\n", i, format_aes_block128(&key_schedule.keys[i]).str); - cypher = aes128ofb_encrypt(plain, &key_schedule, iv, &next_iv); + cipher = aes128ofb_encrypt(plain, &key_schedule, iv, &next_iv); 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); printf("\n"); printf("Next initialization vector: %s\n", format_aes_block128(&next_iv).str); print_aes_block128_fips_matrix_style(&next_iv); - decrypted = aes128ofb_decrypt(cypher, &key_schedule, iv, &next_iv); + decrypted = aes128ofb_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); diff --git a/examples/aes192cbc_example.c b/examples/aes192cbc_example.c index 2133a17..522cc09 100644 --- a/examples/aes192cbc_example.c +++ b/examples/aes192cbc_example.c @@ -12,7 +12,7 @@ int main() { - __declspec(align(16)) AesBlock128 plain, cypher, decrypted, iv, next_iv; + __declspec(align(16)) AesBlock128 plain, cipher, decrypted, iv, next_iv; __declspec(align(16)) AesBlock192 key; __declspec(align(16)) Aes192KeySchedule key_schedule, inverted_schedule; @@ -38,10 +38,10 @@ int main() for (int i = 0; i < 13; ++i) printf("\t[%d]: %s\n", i, format_aes_block128(&key_schedule.keys[i]).str); - cypher = aes192cbc_encrypt(plain, &key_schedule, iv, &next_iv); + cipher = aes192cbc_encrypt(plain, &key_schedule, iv, &next_iv); 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); printf("\n"); printf("Next initialization vector: %s\n", format_aes_block128(&next_iv).str); @@ -54,7 +54,7 @@ int main() for (int i = 0; i < 13; ++i) printf("\t[%d]: %s\n", i, format_aes_block128(&inverted_schedule.keys[i]).str); - decrypted = aes192cbc_decrypt(cypher, &inverted_schedule, iv, &next_iv); + decrypted = aes192cbc_decrypt(cipher, &inverted_schedule, iv, &next_iv); printf("\n"); printf("Decrypted: %s\n", format_aes_block128(&decrypted).str); print_aes_block128_fips_matrix_style(&decrypted); diff --git a/examples/aes192cfb_example.c b/examples/aes192cfb_example.c index d3ac8bc..598516a 100644 --- a/examples/aes192cfb_example.c +++ b/examples/aes192cfb_example.c @@ -12,7 +12,7 @@ int main() { - __declspec(align(16)) AesBlock128 plain, cypher, decrypted, iv, next_iv; + __declspec(align(16)) AesBlock128 plain, cipher, decrypted, iv, next_iv; __declspec(align(16)) AesBlock192 key; __declspec(align(16)) Aes192KeySchedule key_schedule; @@ -38,16 +38,16 @@ int main() for (int i = 0; i < 13; ++i) printf("\t[%d]: %s\n", i, format_aes_block128(&key_schedule.keys[i]).str); - cypher = aes192cfb_encrypt(plain, &key_schedule, iv, &next_iv); + cipher = aes192cfb_encrypt(plain, &key_schedule, iv, &next_iv); 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); printf("\n"); printf("Next initialization vector: %s\n", format_aes_block128(&next_iv).str); print_aes_block128_fips_matrix_style(&next_iv); - decrypted = aes192cfb_decrypt(cypher, &key_schedule, iv, &next_iv); + decrypted = aes192cfb_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); diff --git a/examples/aes192ctr_example.c b/examples/aes192ctr_example.c index c438f55..6ba8430 100644 --- a/examples/aes192ctr_example.c +++ b/examples/aes192ctr_example.c @@ -12,7 +12,7 @@ int main() { - __declspec(align(16)) AesBlock128 plain, cypher, decrypted, iv; + __declspec(align(16)) AesBlock128 plain, cipher, decrypted, iv; __declspec(align(16)) AesBlock192 key; __declspec(align(16)) Aes192KeySchedule key_schedule; @@ -38,12 +38,12 @@ int main() for (int i = 0; i < 13; ++i) printf("\t[%d]: %s\n", i, format_aes_block128(&key_schedule.keys[i]).str); - cypher = aes192ctr_encrypt(plain, &key_schedule, iv, 0); + cipher = aes192ctr_encrypt(plain, &key_schedule, iv, 0); 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); - decrypted = aes192ctr_decrypt(cypher, &key_schedule, iv, 0); + decrypted = aes192ctr_decrypt(cipher, &key_schedule, iv, 0); printf("\n"); printf("Decrypted: %s\n", format_aes_block128(&decrypted).str); print_aes_block128_fips_matrix_style(&decrypted); diff --git a/examples/aes192ecb_example.c b/examples/aes192ecb_example.c index e0d435b..5aae0bc 100644 --- a/examples/aes192ecb_example.c +++ b/examples/aes192ecb_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)) AesBlock192 key; __declspec(align(16)) Aes192KeySchedule key_schedule, inverted_schedule; @@ -33,10 +33,10 @@ int main() for (int i = 0; i < 13; ++i) printf("\t[%d]: %s\n", i, format_aes_block128(&key_schedule.keys[i]).str); - cypher = aes192ecb_encrypt(plain, &key_schedule); + cipher = aes192ecb_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); aes192_invert_key_schedule(&key_schedule, &inverted_schedule); @@ -45,7 +45,7 @@ int main() for (int i = 0; i < 13; ++i) printf("\t[%d]: %s\n", i, format_aes_block128(&inverted_schedule.keys[i]).str); - decrypted = aes192ecb_decrypt(cypher, &inverted_schedule); + decrypted = aes192ecb_decrypt(cipher, &inverted_schedule); printf("\n"); printf("Decrypted: %s\n", format_aes_block128(&decrypted).str); print_aes_block128_fips_matrix_style(&decrypted); diff --git a/examples/aes192ofb_example.c b/examples/aes192ofb_example.c index 1a50dfb..1e561cb 100644 --- a/examples/aes192ofb_example.c +++ b/examples/aes192ofb_example.c @@ -12,7 +12,7 @@ int main() { - __declspec(align(16)) AesBlock128 plain, cypher, decrypted, iv, next_iv; + __declspec(align(16)) AesBlock128 plain, cipher, decrypted, iv, next_iv; __declspec(align(16)) AesBlock192 key; __declspec(align(16)) Aes192KeySchedule key_schedule; @@ -38,16 +38,16 @@ int main() for (int i = 0; i < 13; ++i) printf("\t[%d]: %s\n", i, format_aes_block128(&key_schedule.keys[i]).str); - cypher = aes192ofb_encrypt(plain, &key_schedule, iv, &next_iv); + cipher = aes192ofb_encrypt(plain, &key_schedule, iv, &next_iv); 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); printf("\n"); printf("Next initialization vector: %s\n", format_aes_block128(&next_iv).str); print_aes_block128_fips_matrix_style(&next_iv); - decrypted = aes192ofb_decrypt(cypher, &key_schedule, iv, &next_iv); + decrypted = aes192ofb_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); diff --git a/examples/aes256cbc_example.c b/examples/aes256cbc_example.c index 21ae58d..b727bec 100644 --- a/examples/aes256cbc_example.c +++ b/examples/aes256cbc_example.c @@ -12,7 +12,7 @@ int main() { - __declspec(align(16)) AesBlock128 plain, cypher, decrypted, iv, next_iv; + __declspec(align(16)) AesBlock128 plain, cipher, decrypted, iv, next_iv; __declspec(align(16)) AesBlock256 key; __declspec(align(16)) Aes256KeySchedule key_schedule, inverted_schedule; @@ -38,10 +38,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 = aes256cbc_encrypt(plain, &key_schedule, iv, &next_iv); + cipher = aes256cbc_encrypt(plain, &key_schedule, iv, &next_iv); 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); printf("\n"); printf("Next initialization vector: %s\n", format_aes_block128(&next_iv).str); @@ -54,7 +54,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 = aes256cbc_decrypt(cypher, &inverted_schedule, iv, &next_iv); + decrypted = aes256cbc_decrypt(cipher, &inverted_schedule, iv, &next_iv); printf("\n"); printf("Decrypted: %s\n", format_aes_block128(&decrypted).str); print_aes_block128_fips_matrix_style(&decrypted); diff --git a/examples/aes256cfb_example.c b/examples/aes256cfb_example.c index 35dd21f..9541ddd 100644 --- a/examples/aes256cfb_example.c +++ b/examples/aes256cfb_example.c @@ -12,7 +12,7 @@ int main() { - __declspec(align(16)) AesBlock128 plain, cypher, decrypted, iv, next_iv; + __declspec(align(16)) AesBlock128 plain, cipher, decrypted, iv, next_iv; __declspec(align(16)) AesBlock256 key; __declspec(align(16)) Aes256KeySchedule key_schedule; @@ -38,16 +38,16 @@ int main() for (int i = 0; i < 15; ++i) printf("\t[%d]: %s\n", i, format_aes_block128(&key_schedule.keys[i]).str); - cypher = aes256cfb_encrypt(plain, &key_schedule, iv, &next_iv); + cipher = aes256cfb_encrypt(plain, &key_schedule, iv, &next_iv); 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); printf("\n"); printf("Next initialization vector: %s\n", format_aes_block128(&next_iv).str); print_aes_block128_fips_matrix_style(&next_iv); - decrypted = aes256cfb_decrypt(cypher, &key_schedule, iv, &next_iv); + decrypted = aes256cfb_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); diff --git a/examples/aes256ctr_example.c b/examples/aes256ctr_example.c index a6fcffe..647d668 100644 --- a/examples/aes256ctr_example.c +++ b/examples/aes256ctr_example.c @@ -12,7 +12,7 @@ int main() { - __declspec(align(16)) AesBlock128 plain, cypher, decrypted, iv; + __declspec(align(16)) AesBlock128 plain, cipher, decrypted, iv; __declspec(align(16)) AesBlock256 key; __declspec(align(16)) Aes256KeySchedule key_schedule; @@ -38,12 +38,12 @@ int main() for (int i = 0; i < 15; ++i) printf("\t[%d]: %s\n", i, format_aes_block128(&key_schedule.keys[i]).str); - cypher = aes256ctr_encrypt(plain, &key_schedule, iv, 0); + cipher = aes256ctr_encrypt(plain, &key_schedule, iv, 0); 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); - decrypted = aes256ctr_decrypt(cypher, &key_schedule, iv, 0); + decrypted = aes256ctr_decrypt(cipher, &key_schedule, iv, 0); printf("\n"); printf("Decrypted: %s\n", format_aes_block128(&decrypted).str); print_aes_block128_fips_matrix_style(&decrypted); 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); diff --git a/examples/aes256ofb_example.c b/examples/aes256ofb_example.c index 749103e..4b2248a 100644 --- a/examples/aes256ofb_example.c +++ b/examples/aes256ofb_example.c @@ -12,7 +12,7 @@ int main() { - __declspec(align(16)) AesBlock128 plain, cypher, decrypted, iv, next_iv; + __declspec(align(16)) AesBlock128 plain, cipher, decrypted, iv, next_iv; __declspec(align(16)) AesBlock256 key; __declspec(align(16)) Aes256KeySchedule key_schedule; @@ -38,16 +38,16 @@ int main() for (int i = 0; i < 15; ++i) printf("\t[%d]: %s\n", i, format_aes_block128(&key_schedule.keys[i]).str); - cypher = aes256ofb_encrypt(plain, &key_schedule, iv, &next_iv); + cipher = aes256ofb_encrypt(plain, &key_schedule, iv, &next_iv); 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); printf("\n"); printf("Next initialization vector: %s\n", format_aes_block128(&next_iv).str); print_aes_block128_fips_matrix_style(&next_iv); - decrypted = aes256ofb_decrypt(cypher, &key_schedule, iv, &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); |