aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/c/aes192.c
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2015-06-17 05:30:47 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2015-06-17 05:30:47 +0300
commitf13f7c9a4b6877dd9d003d9e72d3295eedc48eb8 (patch)
treeca1085ee1b7c5b965b9cfb6e021d0cb3c1db0cf2 /src/c/aes192.c
parentcxx: add block parsing (diff)
downloadaes-tools-f13f7c9a4b6877dd9d003d9e72d3295eedc48eb8.tar.gz
aes-tools-f13f7c9a4b6877dd9d003d9e72d3295eedc48eb8.zip
code style
Diffstat (limited to '')
-rw-r--r--src/c/aes192.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/c/aes192.c b/src/c/aes192.c
index c0d410a..b3a7e9f 100644
--- a/src/c/aes192.c
+++ b/src/c/aes192.c
@@ -13,7 +13,7 @@
AesNI_Block128 __fastcall aesni_raw_encrypt_block192(
AesNI_Block128 plain,
- AesNI_KeySchedule192* key_schedule)
+ const AesNI_KeySchedule192* key_schedule)
{
plain = _mm_xor_si128(plain, key_schedule->keys[0]);
plain = _mm_aesenc_si128(plain, key_schedule->keys[1]);
@@ -32,7 +32,7 @@ AesNI_Block128 __fastcall aesni_raw_encrypt_block192(
AesNI_Block128 __fastcall aesni_raw_decrypt_block192(
AesNI_Block128 cipher,
- AesNI_KeySchedule192* inverted_schedule)
+ const AesNI_KeySchedule192* inverted_schedule)
{
cipher = _mm_xor_si128(cipher, inverted_schedule->keys[0]);
cipher = _mm_aesdec_si128(cipher, inverted_schedule->keys[1]);
@@ -115,7 +115,7 @@ void __fastcall aesni_raw_expand_key_schedule192(
}
void __fastcall aesni_raw_invert_key_schedule192(
- AesNI_KeySchedule192* key_schedule,
+ const AesNI_KeySchedule192* key_schedule,
AesNI_KeySchedule192* inverted_schedule)
{
inverted_schedule->keys[0] = key_schedule->keys[12];