diff options
Diffstat (limited to 'sse/blake2.h')
-rw-r--r-- | sse/blake2.h | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/sse/blake2.h b/sse/blake2.h index 4f2b196..20bc22d 100644 --- a/sse/blake2.h +++ b/sse/blake2.h @@ -17,12 +17,6 @@ #include <stddef.h> #include <stdint.h> -#if defined(_MSC_VER) -#define ALIGN(x) __declspec(align(x)) -#else -#define ALIGN(x) __attribute__ ((__aligned__(x))) -#endif - #if defined(__cplusplus) extern "C" { #endif @@ -61,7 +55,7 @@ extern "C" { uint8_t personal[BLAKE2S_PERSONALBYTES]; // 32 } blake2s_param; - ALIGN( 64 ) typedef struct __blake2s_state + typedef struct __blake2s_state { uint32_t h[8]; uint32_t t[2]; @@ -86,7 +80,7 @@ extern "C" { uint8_t personal[BLAKE2B_PERSONALBYTES]; // 64 } blake2b_param; - ALIGN( 64 ) typedef struct __blake2b_state + typedef struct __blake2b_state { uint64_t h[8]; uint64_t t[2]; @@ -96,7 +90,7 @@ extern "C" { uint8_t last_node; } blake2b_state; - ALIGN( 64 ) typedef struct __blake2sp_state + typedef struct __blake2sp_state { blake2s_state S[8][1]; blake2s_state R[1]; @@ -104,7 +98,7 @@ extern "C" { size_t buflen; } blake2sp_state; - ALIGN( 64 ) typedef struct __blake2bp_state + typedef struct __blake2bp_state { blake2b_state S[4][1]; blake2b_state R[1]; |