diff options
author | Christian Fuchs <christian.fuchs@cfuchs.net> | 2014-01-21 10:54:47 +0000 |
---|---|---|
committer | Christian Fuchs <christian.fuchs@cfuchs.net> | 2014-01-21 10:54:47 +0000 |
commit | 84e1871a793507afdba49cf385cbf7ce2e04aca4 (patch) | |
tree | 5846909b13922f6c551606801ef2812b16d14b74 /src/scalarproduct/scalarproduct.h | |
parent | a43f7e0dad6e3c984f57b6181f0234566e771ce1 (diff) | |
download | gnunet-84e1871a793507afdba49cf385cbf7ce2e04aca4.tar.gz gnunet-84e1871a793507afdba49cf385cbf7ce2e04aca4.zip |
- scalarproduct element container was 1 byte too large
- added logics to compute the maximum supported number of paillier hom.ops for a ciphertext
- updated comments
Diffstat (limited to 'src/scalarproduct/scalarproduct.h')
-rw-r--r-- | src/scalarproduct/scalarproduct.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/scalarproduct/scalarproduct.h b/src/scalarproduct/scalarproduct.h index 2e6b6bd8f..66f05e76d 100644 --- a/src/scalarproduct/scalarproduct.h +++ b/src/scalarproduct/scalarproduct.h | |||
@@ -44,9 +44,8 @@ extern "C" | |||
44 | /** | 44 | /** |
45 | * When performing our crypto, we may add two encrypted values with each | 45 | * When performing our crypto, we may add two encrypted values with each |
46 | * a maximal length of GNUNET_CRYPTO_RSA_DATA_ENCODING_LENGTH. | 46 | * a maximal length of GNUNET_CRYPTO_RSA_DATA_ENCODING_LENGTH. |
47 | * thus we can receive a slightly longer element (+1 byte) | ||
48 | */ | 47 | */ |
49 | #define PAILLIER_ELEMENT_LENGTH (2*KEYBITS/8 +1) | 48 | #define PAILLIER_ELEMENT_LENGTH (2*KEYBITS/sizeof(char)) |
50 | 49 | ||
51 | /** | 50 | /** |
52 | * Maximum count of elements we can put into a multipart message | 51 | * Maximum count of elements we can put into a multipart message |