diff options
author | Christian Fuchs <christian.fuchs@cfuchs.net> | 2013-09-02 13:57:17 +0000 |
---|---|---|
committer | Christian Fuchs <christian.fuchs@cfuchs.net> | 2013-09-02 13:57:17 +0000 |
commit | c9b0b7850190a2deec71bc8029a8db58ad809fd5 (patch) | |
tree | 4905976fd71a20ed952ed11c59e10fdcd0557f4d /src/scalarproduct/scalarproduct.h | |
parent | 24a5d2fbc4f6fd9be36a59f0e53ddf9f511d3826 (diff) | |
download | gnunet-c9b0b7850190a2deec71bc8029a8db58ad809fd5.tar.gz gnunet-c9b0b7850190a2deec71bc8029a8db58ad809fd5.zip |
remmoved deprecated headerfile from scalarproduct
updated includes where appropiate
Diffstat (limited to 'src/scalarproduct/scalarproduct.h')
-rw-r--r-- | src/scalarproduct/scalarproduct.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/scalarproduct/scalarproduct.h b/src/scalarproduct/scalarproduct.h index 5d6b82a35..43a866cf1 100644 --- a/src/scalarproduct/scalarproduct.h +++ b/src/scalarproduct/scalarproduct.h | |||
@@ -33,6 +33,20 @@ | |||
33 | extern "C" | 33 | extern "C" |
34 | { | 34 | { |
35 | #endif | 35 | #endif |
36 | /////////////////////////////////////////////////////////////////////////////// | ||
37 | // Defines | ||
38 | /////////////////////////////////////////////////////////////////////////////// | ||
39 | /** | ||
40 | * Length of the key used for encryption | ||
41 | */ | ||
42 | #define KEYBITS 2048 | ||
43 | |||
44 | /** | ||
45 | * When performing our crypto, we may add two encrypted values with each | ||
46 | * a maximal length of GNUNET_CRYPTO_RSA_DATA_ENCODING_LENGTH. | ||
47 | * thus we can receive a slightly longer element (+1 byte) | ||
48 | */ | ||
49 | #define PAILLIER_ELEMENT_LENGTH (2*KEYBITS/8 +1) | ||
36 | 50 | ||
37 | /////////////////////////////////////////////////////////////////////////////// | 51 | /////////////////////////////////////////////////////////////////////////////// |
38 | // Scalar Product Message Types | 52 | // Scalar Product Message Types |