aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-04-05 20:52:16 +0000
committerNick Mathewson <nickm@torproject.org>2004-04-05 20:52:16 +0000
commit34633c11226ee9562602cb6fda15c77f2d0c98d3 (patch)
treea117db2d0ca7fee6482e3547443a04558bf8a0f8 /src/common
parent2d3aea40a402e59ca31cf42249e6ba0f53f75ef6 (diff)
downloadtor-34633c11226ee9562602cb6fda15c77f2d0c98d3.tar
tor-34633c11226ee9562602cb6fda15c77f2d0c98d3.tar.gz
add more constants
svn:r1488
Diffstat (limited to 'src/common')
-rw-r--r--src/common/crypto.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common/crypto.h b/src/common/crypto.h
index 44ea11f82..36bc21fca 100644
--- a/src/common/crypto.h
+++ b/src/common/crypto.h
@@ -12,7 +12,9 @@
#define CIPHER_IV_LEN 0
#define PK_BITS 1024
#define PK_BYTES (PK_BITS/8)
-#define CRYPTO_DH_SIZE (1024 / 8)
+#define DH_BITS 1024
+#define DH_BYTES (DH_BITS/8)
+#define CRYPTO_DH_SIZE DH_BYTES
#define PK_NO_PADDING 60000
#define PK_PKCS1_PADDING 60001