summaryrefslogtreecommitdiff
path: root/src/libstdcrypto/sha512_transform.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2017-01-21 15:46:20 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2017-01-21 15:46:20 +0000
commit2746b131aa482ac17c94bc6b82e58dbcc1b752cf (patch)
tree87e50c57bc8458b0809c280ab5d00042d1102925 /src/libstdcrypto/sha512_transform.c
parent05db4ba46ae1ca6143bb9b432d1e05e69eddd263 (diff)
downloadskalibs-2746b131aa482ac17c94bc6b82e58dbcc1b752cf.tar.xz
Types fix: librandom, libstdcrypto
Diffstat (limited to 'src/libstdcrypto/sha512_transform.c')
-rw-r--r--src/libstdcrypto/sha512_transform.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstdcrypto/sha512_transform.c b/src/libstdcrypto/sha512_transform.c
index b28e97b..7b94adf 100644
--- a/src/libstdcrypto/sha512_transform.c
+++ b/src/libstdcrypto/sha512_transform.c
@@ -74,7 +74,7 @@ void sha512_transform (SHA512Schedule *ctx, unsigned char const *block)
register unsigned int i = 0 ;
for (; i < 16 ; i++) uint64_unpack_big((char const *)block + (i << 3), w + i) ;
- for (; i < 80; i++) w[i] = R1(w[i-2]) + w[i-7] + R0(w[i-15]) + w[i-16] ;
+ for (; i < 80 ; i++) w[i] = R1(w[i-2]) + w[i-7] + R0(w[i-15]) + w[i-16] ;
for (i = 0 ; i < 8 ; i++) h[i] = ctx->h[i] ;
for (i = 0 ; i < 80 ; i++)
{