Revert "Temporarily add sha512.c r1.27 as a patch"
This reverts commit e61927441352a7ac4c51b9b8fc2164d1d236e2f3.
This commit is contained in:
parent
7f31918653
commit
be58e25d2c
@ -1,35 +0,0 @@
|
||||
diff -u -p -r1.29 -r1.28
|
||||
--- crypto/sha/sha512.c 11 Apr 2023 13:03:03 -0000 1.29
|
||||
+++ crypto/sha/sha512.c 11 Apr 2023 10:35:21 -0000 1.28
|
||||
@@ -546,28 +546,9 @@ SHA512_Final(unsigned char *md, SHA512_C
|
||||
sha512_block_data_order(c, p, 1);
|
||||
}
|
||||
|
||||
- memset (p + n, 0, sizeof(c->u) - 16 - n);
|
||||
-#if BYTE_ORDER == BIG_ENDIAN
|
||||
- c->u.d[SHA_LBLOCK - 2] = c->Nh;
|
||||
- c->u.d[SHA_LBLOCK - 1] = c->Nl;
|
||||
-#else
|
||||
- p[sizeof(c->u) - 1] = (unsigned char)(c->Nl);
|
||||
- p[sizeof(c->u) - 2] = (unsigned char)(c->Nl >> 8);
|
||||
- p[sizeof(c->u) - 3] = (unsigned char)(c->Nl >> 16);
|
||||
- p[sizeof(c->u) - 4] = (unsigned char)(c->Nl >> 24);
|
||||
- p[sizeof(c->u) - 5] = (unsigned char)(c->Nl >> 32);
|
||||
- p[sizeof(c->u) - 6] = (unsigned char)(c->Nl >> 40);
|
||||
- p[sizeof(c->u) - 7] = (unsigned char)(c->Nl >> 48);
|
||||
- p[sizeof(c->u) - 8] = (unsigned char)(c->Nl >> 56);
|
||||
- p[sizeof(c->u) - 9] = (unsigned char)(c->Nh);
|
||||
- p[sizeof(c->u) - 10] = (unsigned char)(c->Nh >> 8);
|
||||
- p[sizeof(c->u) - 11] = (unsigned char)(c->Nh >> 16);
|
||||
- p[sizeof(c->u) - 12] = (unsigned char)(c->Nh >> 24);
|
||||
- p[sizeof(c->u) - 13] = (unsigned char)(c->Nh >> 32);
|
||||
- p[sizeof(c->u) - 14] = (unsigned char)(c->Nh >> 40);
|
||||
- p[sizeof(c->u) - 15] = (unsigned char)(c->Nh >> 48);
|
||||
- p[sizeof(c->u) - 16] = (unsigned char)(c->Nh >> 56);
|
||||
-#endif
|
||||
+ memset(p + n, 0, sizeof(c->u) - 16 - n);
|
||||
+ c->u.d[SHA_LBLOCK - 2] = htobe64(c->Nh);
|
||||
+ c->u.d[SHA_LBLOCK - 1] = htobe64(c->Nl);
|
||||
|
||||
sha512_block_data_order(c, p, 1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user