summaryrefslogtreecommitdiff
path: root/src/common/crypto.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-05-10 10:27:54 +0000
committerRoger Dingledine <arma@torproject.org>2004-05-10 10:27:54 +0000
commit3cdf2d67da5f2cd3529ffec9907fa910c0b0208c (patch)
tree812a91531b2e0c1b097ff8ac982017a7907ac7c6 /src/common/crypto.c
parent07871a8a2c3fc4f6a290961dc371b6e8d44ed69a (diff)
downloadtor-3cdf2d67da5f2cd3529ffec9907fa910c0b0208c.tar.gz
tor-3cdf2d67da5f2cd3529ffec9907fa910c0b0208c.zip
it's amazing what a bit of punctuation can do for appearances
svn:r1843
Diffstat (limited to 'src/common/crypto.c')
-rw-r--r--src/common/crypto.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common/crypto.c b/src/common/crypto.c
index 5afa8e36e3..8129c9649e 100644
--- a/src/common/crypto.c
+++ b/src/common/crypto.c
@@ -172,7 +172,7 @@ crypto_pk_env_t *_crypto_new_pk_env_rsa(RSA *rsa)
return env;
}
-/** used by tortls.c: return the RSA* from a crypto_pk_env_t */
+/** used by tortls.c: return the RSA* from a crypto_pk_env_t. */
RSA *_crypto_pk_env_get_rsa(crypto_pk_env_t *env)
{
return env->key;
@@ -1062,9 +1062,9 @@ crypto_digest_assign(crypto_digest_env_t *into,
/* DH */
-/** Shared P parameter for our DH key exchanged */
+/** Shared P parameter for our DH key exchanged. */
static BIGNUM *dh_param_p = NULL;
-/** Shared G parameter for our DH key exchanges */
+/** Shared G parameter for our DH key exchanges. */
static BIGNUM *dh_param_g = NULL;
/** Initialize dh_param_p and dh_param_g if they are not already
@@ -1332,7 +1332,7 @@ void crypto_pseudo_rand(unsigned int n, unsigned char *to)
}
/** Return a pseudorandom integer, choosen uniformly from the values
- * between 0 and max-1 */
+ * between 0 and max-1. */
int crypto_pseudo_rand_int(unsigned int max) {
unsigned int val;
unsigned int cutoff;