Coverity scan fixes

This commit is contained in:
J Harper
2016-05-03 17:36:14 -07:00
parent b7583a12f6
commit ac16cf8a1b
64 changed files with 306 additions and 394 deletions

View File

@@ -86,11 +86,6 @@ static int32 psPrngTests(void)
return res < 0 ? res : PS_SUCCESS;
}
/******************************************************************************/
#ifdef USE_AES
#define AES_ITER 1000 /* For AES Block mode test */
@@ -893,10 +888,6 @@ int32 psAesTestGCM(void)
}
#endif /* USE_AES_GCM */
#endif /* USE_AES */
#if 0
@@ -2474,7 +2465,6 @@ static int32 psRsaEncryptTest(void)
i++) {
_psTraceInt(" %d bit test...", rsa[i].size * 8);
/* Start with getting both key halfs from the same source */
if (psRsaInitKey(pool, &privkey) < 0) {
return -1;
@@ -2519,7 +2509,6 @@ static int32 psRsaEncryptTest(void)
} /* key loop */
return PS_SUCCESS;
}
@@ -2542,7 +2531,6 @@ static int32 psRsaSignTest(void)
i++) {
_psTraceInt(" %d bit test...", rsa[i].size * 8);
psRsaInitKey(pool, &privkey);
psRsaParsePkcs1PrivKey(pool, rsa[i].key, rsa[i].keysize, &privkey);
if (psRsaEncryptPriv(pool, &privkey, in, sizeof(in), out, rsa[i].size,
@@ -4524,7 +4512,6 @@ static int32_t psEccTest(void)
/******************************************************************************/
/******************************************************************************/
typedef struct {
@@ -4690,7 +4677,6 @@ static test_t tests[] = {
{NULL
, "***** PRF2 TESTS *****"},
{NULL, ""}
};