aboutsummaryrefslogtreecommitdiff
path: root/crypt/sha512.h
diff options
context:
space:
mode:
Diffstat (limited to 'crypt/sha512.h')
-rw-r--r--crypt/sha512.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/crypt/sha512.h b/crypt/sha512.h
index 27dd717..28d63fc 100644
--- a/crypt/sha512.h
+++ b/crypt/sha512.h
@@ -44,7 +44,11 @@ struct sha512_ctx
uint64_t total[2];
};
uint64_t buflen;
- char buffer[256] __attribute__ ((__aligned__ (__alignof__ (uint64_t))));
+ union
+ {
+ char buffer[256];
+ uint64_t buffer64[32];
+ };
};
/* Initialize structure containing state of computation.