test: fix hash unit test for NSS
Some hash functions in the freebl3 library ignore the length of the output buffer and always return the length of the digest.
This commit is contained in:
parent
47921c7c0c
commit
63f0234748
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ test_unit(void)
|
|||
if (j >= tests[i].length)
|
||||
TEST_CHECK(length == tests[i].length);
|
||||
else
|
||||
TEST_CHECK(length == 0 || length == j);
|
||||
TEST_CHECK(length == 0 || length == j || length == tests[i].length);
|
||||
|
||||
TEST_CHECK(!memcmp(out, tests[i].out, length));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue