mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 13:43:47 +01:00
Move DH_GENERATOR to crypto.c.
This commit is contained in:
parent
1df6b5a734
commit
b31601975b
@ -1809,6 +1809,9 @@ crypto_hmac_sha256(char *hmac_out,
|
|||||||
|
|
||||||
/* DH */
|
/* DH */
|
||||||
|
|
||||||
|
/** Our DH 'g' parameter */
|
||||||
|
#define DH_GENERATOR 2
|
||||||
|
|
||||||
/** Shared P parameter for our circuit-crypto DH key exchanges. */
|
/** Shared P parameter for our circuit-crypto DH key exchanges. */
|
||||||
static BIGNUM *dh_param_p = NULL;
|
static BIGNUM *dh_param_p = NULL;
|
||||||
/** Shared P parameter for our TLS DH key exchanges. */
|
/** Shared P parameter for our TLS DH key exchanges. */
|
||||||
|
@ -29,8 +29,6 @@
|
|||||||
#define PK_BYTES (1024/8)
|
#define PK_BYTES (1024/8)
|
||||||
/** Length of our DH keys. */
|
/** Length of our DH keys. */
|
||||||
#define DH_BYTES (1024/8)
|
#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 =
|
/** Length of a sha1 message digest when encoded in base64 with trailing =
|
||||||
* signs removed. */
|
* signs removed. */
|
||||||
|
Loading…
Reference in New Issue
Block a user