Minor cleanup

This commit is contained in:
Ken MacKay
2015-10-12 21:29:57 -07:00
parent 69744ae539
commit f58c04fdec
4 changed files with 13 additions and 7 deletions
+2 -5
View File
@@ -1,6 +1,7 @@
/* Copyright 2014, Kenneth MacKay. Licensed under the BSD 2-clause license. */
#include "uECC.h"
#include "uECC_vli.h"
#ifndef uECC_RNG_MAX_TRIES
#define uECC_RNG_MAX_TRIES 64
@@ -22,10 +23,6 @@
#define uECC_MAX_BYTES 32
#endif
#ifndef uECC_ENABLE_VLI_API
#define uECC_ENABLE_VLI_API 0
#endif
#if uECC_ENABLE_VLI_API
#define uECC_VLI_API
#else
@@ -1411,7 +1408,7 @@ int uECC_generate_random_int(uECC_word_t *random, uECC_Curve curve) {
}
if (!uECC_vli_isZero(random, num_n_words) &&
uECC_vli_cmp(curve->n, random, num_n_words) == 1)
uECC_vli_cmp(curve->n, random, num_n_words) == 1) {
return 1;
}
}