Explorar o código

add more constants

svn:r1488
Nick Mathewson %!s(int64=22) %!d(string=hai) anos
pai
achega
34633c1122
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      src/common/crypto.h

+ 3 - 1
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