From f13f7c9a4b6877dd9d003d9e72d3295eedc48eb8 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 17 Jun 2015 05:30:47 +0300 Subject: code style --- src/c/aes128.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/c/aes128.c') diff --git a/src/c/aes128.c b/src/c/aes128.c index ac1b4f5..92bc4a6 100644 --- a/src/c/aes128.c +++ b/src/c/aes128.c @@ -13,7 +13,7 @@ AesNI_Block128 __fastcall aesni_raw_encrypt_block128( AesNI_Block128 plain, - AesNI_KeySchedule128* key_schedule) + const AesNI_KeySchedule128* key_schedule) { plain = _mm_xor_si128(plain, key_schedule->keys[0]); plain = _mm_aesenc_si128(plain, key_schedule->keys[1]); @@ -30,7 +30,7 @@ AesNI_Block128 __fastcall aesni_raw_encrypt_block128( AesNI_Block128 __fastcall aesni_raw_decrypt_block128( AesNI_Block128 cipher, - AesNI_KeySchedule128* inverted_schedule) + const AesNI_KeySchedule128* inverted_schedule) { cipher = _mm_xor_si128(cipher, inverted_schedule->keys[0]); cipher = _mm_aesdec_si128(cipher, inverted_schedule->keys[1]); @@ -82,7 +82,7 @@ void __fastcall aesni_raw_expand_key_schedule128( } void __fastcall aesni_raw_invert_key_schedule128( - AesNI_KeySchedule128* key_schedule, + const AesNI_KeySchedule128* key_schedule, AesNI_KeySchedule128* inverted_schedule) { inverted_schedule->keys[0] = key_schedule->keys[10]; -- cgit v1.2.3