aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-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