diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2015-06-05 00:50:00 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2015-06-05 00:50:00 +0300 |
commit | 10cc6f2eaca57750904df838e0bc83e3d2fb999b (patch) | |
tree | 82ed65815e425bc4095bc5a527b64bacdfc6485f | |
parent | implement raw_*_{encrypt,decrypt} in C (diff) | |
download | aes-tools-10cc6f2eaca57750904df838e0bc83e3d2fb999b.tar.gz aes-tools-10cc6f2eaca57750904df838e0bc83e3d2fb999b.zip |
code style
Diffstat (limited to '')
-rw-r--r-- | include/aesni/data.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/aesni/data.h b/include/aesni/data.h index b1085e8..b44b1d6 100644 --- a/include/aesni/data.h +++ b/include/aesni/data.h @@ -27,7 +27,10 @@ AesBlock192; static __inline AesBlock192 __fastcall make_aes_block192(int hi5, int hi4, int lo3, int lo2, int lo1, int lo0) { - return (AesBlock192) { .hi = make_aes_block128(0, 0, hi5, hi4), .lo = make_aes_block128(lo3, lo2, lo1, lo0) }; + AesBlock192 result; + result.hi = make_aes_block128( 0, 0, hi5, hi4); + result.lo = make_aes_block128(lo3, lo2, lo1, lo0); + return result; } typedef struct @@ -39,7 +42,10 @@ AesBlock256; static __inline AesBlock256 __fastcall make_aes_block256(int hi7, int hi6, int hi5, int hi4, int lo3, int lo2, int lo1, int lo0) { - return (AesBlock256) { .hi = make_aes_block128(hi7, hi6, hi5, hi4), .lo = make_aes_block128(lo3, lo2, lo1, lo0) }; + AesBlock256 result; + result.hi = make_aes_block128(hi7, hi6, hi5, hi4); + result.lo = make_aes_block128(lo3, lo2, lo1, lo0); + return result; } typedef struct |