summaryrefslogtreecommitdiff
path: root/Build/source/texk
diff options
context:
space:
mode:
authorLuigi Scarso <luigi.scarso@gmail.com>2019-02-28 23:13:09 +0000
committerLuigi Scarso <luigi.scarso@gmail.com>2019-02-28 23:13:09 +0000
commit72042738dc9cfe999ce7413c113aea0147cb09fb (patch)
treefb6282a586af3c5e87e770d5a69ac7923e705c7f /Build/source/texk
parente0e267c2e701f0b441b580590abaa4d15043a660 (diff)
fixed a typo in SHA512_Update function
git-svn-id: svn://tug.org/texlive/trunk@50177 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk')
-rw-r--r--Build/source/texk/web2c/luatexdir/luapplib/util/utilsha.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Build/source/texk/web2c/luatexdir/luapplib/util/utilsha.c b/Build/source/texk/web2c/luatexdir/luapplib/util/utilsha.c
index aa640ec24f9..2b44e40bec7 100644
--- a/Build/source/texk/web2c/luatexdir/luapplib/util/utilsha.c
+++ b/Build/source/texk/web2c/luatexdir/luapplib/util/utilsha.c
@@ -927,9 +927,9 @@ static void SHA512_Update(SHA512_CTX* context, const uint8_t *data, size_t len)
while (len >= SHA512_BLOCK_LENGTH) {
/* Process as many complete blocks as we can */
#if ARM_COMPLIANT
- SHA512_Transform(context, (uint64_t*)((void *)context->buffer));
+ SHA512_Transform(context, (uint64_t*)((void *)data));
#else
- SHA512_Transform(context, (uint64_t*)context->buffer);
+ SHA512_Transform(context, (uint64_t*)data);
#endif
ADDINC128(context->bitcount, SHA512_BLOCK_LENGTH << 3);
len -= SHA512_BLOCK_LENGTH;