1
0
mirror of https://sourceware.org/git/glibc.git synced 2026-01-06 11:51:29 +03:00

Fix last patch for big-endian machines

This commit is contained in:
Ulrich Drepper
2011-07-02 13:03:53 -04:00
parent fcfc776bc6
commit feea4948bc
4 changed files with 28 additions and 15 deletions

View File

@@ -24,6 +24,7 @@
#include <limits.h>
#include <stdint.h>
#include <stdio.h>
#include <endian.h>
/* Structure to save state of computation between the single steps. */
@@ -34,6 +35,8 @@ struct sha256_ctx
union
{
uint64_t total64;
#define TOTAL64_low (1 - (BYTE_ORDER == LITTLE_ENDIAN))
#define TOTAL64_high (BYTE_ORDER == LITTLE_ENDIAN)
uint32_t total[2];
};
uint32_t buflen;