fix wrongly used LTC_ARGCHK/LTC_ARGCHKVD macros

This commit is contained in:
Steffen Jaeckel 2015-10-24 16:31:24 +02:00
parent 460b8716c9
commit 318dbbccc3
4 changed files with 6 additions and 6 deletions

View File

@ -77,8 +77,8 @@ done:
void dh_sizes(int *low, int *high)
{
int x;
LTC_ARGCHK(low != NULL);
LTC_ARGCHK(high != NULL);
LTC_ARGCHKVD(low != NULL);
LTC_ARGCHKVD(high != NULL);
*low = INT_MAX;
*high = 0;
for (x = 0; sets[x].size != 0; x++) {
@ -187,7 +187,7 @@ error2:
*/
void dh_free(dh_key *key)
{
LTC_ARGCHK(key != NULL);
LTC_ARGCHKVD(key != NULL);
if ( key->x ) {
mp_clear( key->x );
key->x = NULL;

View File

@ -71,7 +71,7 @@
static inline void packet_store_header (unsigned char *dst, int section, int subsection)
{
LTC_ARGCHK(dst != NULL);
LTC_ARGCHKVD(dst != NULL);
/* store version number */
dst[0] = (unsigned char)(CRYPT&255);

View File

@ -25,7 +25,7 @@
int rsa_get_size(rsa_key *key)
{
int ret = INT_MAX;
LTC_ARGCHKVD(key != NULL);
LTC_ARGCHK(key != NULL);
if (key)
{

View File

@ -27,7 +27,7 @@
int rsa_sign_saltlen_get_max_ex(int padding, int hash_idx, rsa_key *key)
{
int ret = INT_MAX;
LTC_ARGCHKVD(key != NULL);
LTC_ARGCHK(key != NULL);
if ((hash_is_valid(hash_idx) == CRYPT_OK) &&
(padding == LTC_PKCS_1_PSS))