[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Move DH_GENERATOR to crypto.c.
commit b31601975b0be372f6c041868a54024a8d89ad8c
Author: George Kadianakis <desnacked@xxxxxxxxx>
Date: Fri Nov 25 17:44:11 2011 +0100
Move DH_GENERATOR to crypto.c.
---
src/common/crypto.c | 3 +++
src/common/crypto.h | 2 --
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/common/crypto.c b/src/common/crypto.c
index da3b80b..8cf6231 100644
--- a/src/common/crypto.c
+++ b/src/common/crypto.c
@@ -1809,6 +1809,9 @@ crypto_hmac_sha256(char *hmac_out,
/* DH */
+/** Our DH 'g' parameter */
+#define DH_GENERATOR 2
+
/** Shared P parameter for our circuit-crypto DH key exchanges. */
static BIGNUM *dh_param_p = NULL;
/** Shared P parameter for our TLS DH key exchanges. */
diff --git a/src/common/crypto.h b/src/common/crypto.h
index bac6db9..771c49c 100644
--- a/src/common/crypto.h
+++ b/src/common/crypto.h
@@ -29,8 +29,6 @@
#define PK_BYTES (1024/8)
/** Length of our DH keys. */
#define DH_BYTES (1024/8)
-/** Our DH 'g' parameter */
-#define DH_GENERATOR 2
/** Length of a sha1 message digest when encoded in base64 with trailing =
* signs removed. */
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits