diff options
author | George Kadianakis <desnacked@gmail.com> | 2011-11-24 22:06:50 +0100 |
---|---|---|
committer | George Kadianakis <desnacked@gmail.com> | 2011-11-24 22:06:50 +0100 |
commit | edec9409e85ba4a8b5d0575b23046d83d7562b87 (patch) | |
tree | 557b92a79829e3757e545ea1b88692777d15646f /src/common/crypto.h | |
parent | 11221d0f17bf3ea6039249ad8b06b3a1afd6291d (diff) | |
download | tor-edec9409e85ba4a8b5d0575b23046d83d7562b87.tar.gz tor-edec9409e85ba4a8b5d0575b23046d83d7562b87.zip |
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.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/crypto.h b/src/common/crypto.h index 80c10296a3..2929a2effb 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. */ |