commit | 2c91f4b8b27c6f8e1a1a76559851317a37939a7c | [log] [tgz] |
---|---|---|
author | Dave Rodgman <dave.rodgman@arm.com> | Wed Jun 07 19:59:05 2023 +0100 |
committer | Dave Rodgman <dave.rodgman@arm.com> | Wed Jun 07 19:59:05 2023 +0100 |
tree | 5815b83890477e0c750a5167db70fa3c2b57d8a3 | |
parent | 2f0f998ec4fb0808904e2944f33409ebdc777391 [diff] [blame] |
Fix for big-endian architectures Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
diff --git a/library/sha3.c b/library/sha3.c index 7151094..4b97a85 100644 --- a/library/sha3.c +++ b/library/sha3.c
@@ -236,7 +236,7 @@ // process input in 8-byte chunks while (ilen >= 8) { - ABSORB(ctx, ctx->index, mbedtls_get_unaligned_uint64(input)); + ABSORB(ctx, ctx->index, MBEDTLS_GET_UINT64_LE(input, 0)); input += 8; ilen -= 8; if ((ctx->index = (ctx->index + 8) % ctx->max_block_size) == 0) {