aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2015-06-05 00:50:00 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2015-06-05 00:50:00 +0300
commit10cc6f2eaca57750904df838e0bc83e3d2fb999b (patch)
tree82ed65815e425bc4095bc5a527b64bacdfc6485f
parentimplement raw_*_{encrypt,decrypt} in C (diff)
downloadaes-tools-10cc6f2eaca57750904df838e0bc83e3d2fb999b.tar.gz
aes-tools-10cc6f2eaca57750904df838e0bc83e3d2fb999b.zip
code style
-rw-r--r--include/aesni/data.h10
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