mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-04 04:13:40 +00:00
Fix for big-endian architectures
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
parent
2f0f998ec4
commit
2c91f4b8b2
@ -236,7 +236,7 @@ int mbedtls_sha3_update(mbedtls_sha3_context *ctx,
|
|||||||
|
|
||||||
// process input in 8-byte chunks
|
// process input in 8-byte chunks
|
||||||
while (ilen >= 8) {
|
while (ilen >= 8) {
|
||||||
ABSORB(ctx, ctx->index, mbedtls_get_unaligned_uint64(input));
|
ABSORB(ctx, ctx->index, MBEDTLS_GET_UINT64_LE(input, 0));
|
||||||
input += 8;
|
input += 8;
|
||||||
ilen -= 8;
|
ilen -= 8;
|
||||||
if ((ctx->index = (ctx->index + 8) % ctx->max_block_size) == 0) {
|
if ((ctx->index = (ctx->index + 8) % ctx->max_block_size) == 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user