fix test vector error output
This commit is contained in:
@@ -136,7 +136,7 @@ static bool test_crypter(private_crypto_tester_t *this,
|
|||||||
crypter->destroy(crypter);
|
crypter->destroy(crypter);
|
||||||
if (failed)
|
if (failed)
|
||||||
{
|
{
|
||||||
DBG1("disabled %N: test vector %d failed",
|
DBG1("disabled %N: test vector %u failed",
|
||||||
encryption_algorithm_names, alg, tested);
|
encryption_algorithm_names, alg, tested);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -151,7 +151,7 @@ static bool test_crypter(private_crypto_tester_t *this,
|
|||||||
}
|
}
|
||||||
if (!failed)
|
if (!failed)
|
||||||
{
|
{
|
||||||
DBG1("enabled %N: passed %d test vectors",
|
DBG1("enabled %N: passed %u test vectors",
|
||||||
encryption_algorithm_names, alg, tested);
|
encryption_algorithm_names, alg, tested);
|
||||||
}
|
}
|
||||||
return !failed;
|
return !failed;
|
||||||
@@ -240,7 +240,7 @@ static bool test_signer(private_crypto_tester_t *this,
|
|||||||
signer->destroy(signer);
|
signer->destroy(signer);
|
||||||
if (failed)
|
if (failed)
|
||||||
{
|
{
|
||||||
DBG1("disabled %N: test vector %d failed",
|
DBG1("disabled %N: test vector %u failed",
|
||||||
integrity_algorithm_names, alg, tested);
|
integrity_algorithm_names, alg, tested);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -255,7 +255,7 @@ static bool test_signer(private_crypto_tester_t *this,
|
|||||||
}
|
}
|
||||||
if (!failed)
|
if (!failed)
|
||||||
{
|
{
|
||||||
DBG1("enabled %N: passed %d test vectors",
|
DBG1("enabled %N: passed %u test vectors",
|
||||||
integrity_algorithm_names, alg, tested);
|
integrity_algorithm_names, alg, tested);
|
||||||
}
|
}
|
||||||
return !failed;
|
return !failed;
|
||||||
@@ -330,8 +330,8 @@ static bool test_hasher(private_crypto_tester_t *this, hash_algorithm_t alg,
|
|||||||
hasher->destroy(hasher);
|
hasher->destroy(hasher);
|
||||||
if (failed)
|
if (failed)
|
||||||
{
|
{
|
||||||
DBG1("disabled %N: test vector %d failed",
|
DBG1("disabled %N: test vector %u failed",
|
||||||
hash_algorithm_names, alg), tested;
|
hash_algorithm_names, alg, tested);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -345,7 +345,7 @@ static bool test_hasher(private_crypto_tester_t *this, hash_algorithm_t alg,
|
|||||||
}
|
}
|
||||||
if (!failed)
|
if (!failed)
|
||||||
{
|
{
|
||||||
DBG1("enabled %N: passed %d test vectors",
|
DBG1("enabled %N: passed %u test vectors",
|
||||||
hash_algorithm_names, alg, tested);
|
hash_algorithm_names, alg, tested);
|
||||||
}
|
}
|
||||||
return !failed;
|
return !failed;
|
||||||
@@ -431,7 +431,7 @@ static bool test_prf(private_crypto_tester_t *this,
|
|||||||
prf->destroy(prf);
|
prf->destroy(prf);
|
||||||
if (failed)
|
if (failed)
|
||||||
{
|
{
|
||||||
DBG1("disabled %N: test vector %d failed",
|
DBG1("disabled %N: test vector %u failed",
|
||||||
pseudo_random_function_names, alg, tested);
|
pseudo_random_function_names, alg, tested);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -446,7 +446,7 @@ static bool test_prf(private_crypto_tester_t *this,
|
|||||||
}
|
}
|
||||||
if (!failed)
|
if (!failed)
|
||||||
{
|
{
|
||||||
DBG1("enabled %N: passed %d test vectors",
|
DBG1("enabled %N: passed %u test vectors",
|
||||||
pseudo_random_function_names, alg, tested);
|
pseudo_random_function_names, alg, tested);
|
||||||
}
|
}
|
||||||
return !failed;
|
return !failed;
|
||||||
@@ -515,7 +515,7 @@ static bool test_rng(private_crypto_tester_t *this, rng_quality_t quality,
|
|||||||
rng->destroy(rng);
|
rng->destroy(rng);
|
||||||
if (failed)
|
if (failed)
|
||||||
{
|
{
|
||||||
DBG1("disabled %N: test vector %d failed",
|
DBG1("disabled %N: test vector %u failed",
|
||||||
rng_quality_names, quality, tested);
|
rng_quality_names, quality, tested);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -530,7 +530,7 @@ static bool test_rng(private_crypto_tester_t *this, rng_quality_t quality,
|
|||||||
}
|
}
|
||||||
if (!failed)
|
if (!failed)
|
||||||
{
|
{
|
||||||
DBG1("enabled %N: passed %d test vectors",
|
DBG1("enabled %N: passed %u test vectors",
|
||||||
rng_quality_names, quality, tested);
|
rng_quality_names, quality, tested);
|
||||||
}
|
}
|
||||||
return !failed;
|
return !failed;
|
||||||
|
|||||||
Reference in New Issue
Block a user