浏览代码

Move DH_GENERATOR to crypto.c.

George Kadianakis 12 年之前
父节点
当前提交
b31601975b
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. 3 0
      src/common/crypto.c
  2. 0 2
      src/common/crypto.h

+ 3 - 0
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. */

+ 0 - 2
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. */