diff options
Diffstat (limited to 'Source/charon/utils')
-rw-r--r-- | Source/charon/utils/gmp_helper.c | 1 | ||||
-rw-r--r-- | Source/charon/utils/gmp_helper.h | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/Source/charon/utils/gmp_helper.c b/Source/charon/utils/gmp_helper.c index 6d6ddc52b..d9e2ec9f1 100644 --- a/Source/charon/utils/gmp_helper.c +++ b/Source/charon/utils/gmp_helper.c @@ -130,6 +130,7 @@ static status_t init_prime (private_gmp_helper_t *this, mpz_t *prime, int bytes) allocator_free(random_bytes.ptr); random_bytes.ptr = NULL; + /* composites are possible but should never occur */ mpz_nextprime (*(prime),*(prime)); return SUCCESS; diff --git a/Source/charon/utils/gmp_helper.h b/Source/charon/utils/gmp_helper.h index 478dd06a9..ff2a73c8a 100644 --- a/Source/charon/utils/gmp_helper.h +++ b/Source/charon/utils/gmp_helper.h @@ -54,6 +54,8 @@ struct gmp_helper_s { /* Convert network form (binary bytes, big-endian) to mpz_t of gmp library. * + * mpz_t gets initialized in this function. + * * @param this calling private_gmp_helper_t object * @param mpz_value pointer to a mpz_t value * @param data chunk_t containing the network form of data |