- code cleanups

This commit is contained in:
Martin Willi
2005-11-26 15:48:05 +00:00
parent c1eb153733
commit acb81e48cf
2 changed files with 8 additions and 8 deletions
@@ -1,7 +1,7 @@
/** /**
* @file hasher_sha1.h * @file hasher_sha1.h
* *
* @brief Interface for the hasher_sha1_t * @brief Interface of hasher_sha1_t
* *
*/ */
+2 -2
View File
@@ -129,7 +129,7 @@ static status_t init_prime (private_gmp_helper_t *this, mpz_t *prime, int bytes)
} }
/* TODO change to true random device ? */ /* TODO change to true random device ? */
// status = randomizer->allocate_random_bytes(randomizer,bytes, &random_bytes); //status = randomizer->allocate_random_bytes(randomizer,bytes, &random_bytes);
status = randomizer->allocate_pseudo_random_bytes(randomizer,bytes, &random_bytes); status = randomizer->allocate_pseudo_random_bytes(randomizer,bytes, &random_bytes);
/* make sure most significant bit is set */ /* make sure most significant bit is set */
@@ -171,7 +171,7 @@ static status_t init_prime_fast (private_gmp_helper_t *this, mpz_t *prime, int b
} }
/* TODO change to true random device ? */ /* TODO change to true random device ? */
// status = randomizer->allocate_random_bytes(randomizer,bytes, &random_bytes); //status = randomizer->allocate_random_bytes(randomizer,bytes, &random_bytes);
status = randomizer->allocate_pseudo_random_bytes(randomizer,bytes, &random_bytes); status = randomizer->allocate_pseudo_random_bytes(randomizer,bytes, &random_bytes);
/* make sure most significant bit is set */ /* make sure most significant bit is set */