aboutsummaryrefslogtreecommitdiff
path: root/src/common/crypto.h
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@gmail.com>2011-11-24 22:06:50 +0100
committerGeorge Kadianakis <desnacked@gmail.com>2011-11-24 22:06:50 +0100
commitedec9409e85ba4a8b5d0575b23046d83d7562b87 (patch)
tree557b92a79829e3757e545ea1b88692777d15646f /src/common/crypto.h
parent11221d0f17bf3ea6039249ad8b06b3a1afd6291d (diff)
downloadtor-edec9409e85ba4a8b5d0575b23046d83d7562b87.tar
tor-edec9409e85ba4a8b5d0575b23046d83d7562b87.tar.gz
Copy/Paste Jake's stuff.
This commit copies parts of Jake's f3bb6846975193d9a6649c31f94bda47e4014070 commit verbatim to the current master.
Diffstat (limited to 'src/common/crypto.h')
-rw-r--r--src/common/crypto.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/crypto.h b/src/common/crypto.h
index 80c10296a..2929a2eff 100644
--- a/src/common/crypto.h
+++ b/src/common/crypto.h
@@ -29,6 +29,10 @@
#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 our Rakshasa DH parameter prime 'p' */
+#define RAKSHASA_BITS 1024
/** Length of a sha1 message digest when encoded in base64 with trailing =
* signs removed. */