reduce diff with upstream

This commit is contained in:
christos 2020-03-22 20:13:15 +00:00
parent 59ca9d0b73
commit 7826a661ac
3 changed files with 5 additions and 5 deletions

View File

@ -37,7 +37,7 @@ int MD5_Init(MD5_CTX *c)
void md5_block_data_order(MD5_CTX *c, const void *data_, size_t num)
{
const unsigned char *data = data_;
register MD32_REG_T A, B, C, D, l;
register unsigned MD32_REG_T A, B, C, D, l;
# ifndef MD32_XARRAY
/* See comment in crypto/sha/sha_local.h for details. */
unsigned MD32_REG_T XX0, XX1, XX2, XX3, XX4, XX5, XX6, XX7,

View File

@ -36,8 +36,8 @@ int RIPEMD160_Init(RIPEMD160_CTX *c)
void ripemd160_block_data_order(RIPEMD160_CTX *ctx, const void *p, size_t num)
{
const unsigned char *data = p;
register MD32_REG_T A, B, C, D, E;
MD32_REG_T a, b, c, d, e, l;
register unsigned MD32_REG_T A, B, C, D, E;
unsigned MD32_REG_T a, b, c, d, e, l;
# ifndef MD32_XARRAY
/* See comment in crypto/sha/sha_local.h for details. */
unsigned MD32_REG_T XX0, XX1, XX2, XX3, XX4, XX5, XX6, XX7,

View File

@ -168,7 +168,7 @@ static const SHA_LONG K256[64] = {
static void sha256_block_data_order(SHA256_CTX *ctx, const void *in,
size_t num)
{
MD32_REG_T a, b, c, d, e, f, g, h, s0, s1, T1, T2;
unsigned MD32_REG_T a, b, c, d, e, f, g, h, s0, s1, T1, T2;
SHA_LONG X[16], l;
int i;
const unsigned char *data = in;
@ -246,7 +246,7 @@ static void sha256_block_data_order(SHA256_CTX *ctx, const void *in,
static void sha256_block_data_order(SHA256_CTX *ctx, const void *in,
size_t num)
{
MD32_REG_T a, b, c, d, e, f, g, h, s0, s1, T1;
unsigned MD32_REG_T a, b, c, d, e, f, g, h, s0, s1, T1;
SHA_LONG X[16];
int i;
const unsigned char *data = in;