forked from wolfSSL/wolfssl
ripemd in function call fixed
This commit is contained in:
@ -511,7 +511,7 @@ int sha384_test()
|
|||||||
#ifdef WOLFSSL_RIPEMD
|
#ifdef WOLFSSL_RIPEMD
|
||||||
int ripemd_test(void)
|
int ripemd_test(void)
|
||||||
{
|
{
|
||||||
RipeMd ripemd;
|
wc_RipeMd ripemd;
|
||||||
byte hash[RIPEMD_DIGEST_SIZE];
|
byte hash[RIPEMD_DIGEST_SIZE];
|
||||||
|
|
||||||
testVector a, b, c, d;
|
testVector a, b, c, d;
|
||||||
@ -548,12 +548,12 @@ int ripemd_test(void)
|
|||||||
test_ripemd[2] = c;
|
test_ripemd[2] = c;
|
||||||
test_ripemd[3] = d;
|
test_ripemd[3] = d;
|
||||||
|
|
||||||
InitRipeMd(&ripemd);
|
wc_InitRipeMd(&ripemd);
|
||||||
|
|
||||||
for (i = 0; i < times; ++i) {
|
for (i = 0; i < times; ++i) {
|
||||||
RipeMdUpdate(&ripemd, (byte*)test_ripemd[i].input,
|
wc_RipeMdUpdate(&ripemd, (byte*)test_ripemd[i].input,
|
||||||
(word32)test_ripemd[i].inLen);
|
(word32)test_ripemd[i].inLen);
|
||||||
RipeMdFinal(&ripemd, hash);
|
wc_RipeMdFinal(&ripemd, hash);
|
||||||
|
|
||||||
if (memcmp(hash, test_ripemd[i].output, RIPEMD_DIGEST_SIZE) != 0)
|
if (memcmp(hash, test_ripemd[i].output, RIPEMD_DIGEST_SIZE) != 0)
|
||||||
return -10 - i;
|
return -10 - i;
|
||||||
|
Reference in New Issue
Block a user