aboutsummaryrefslogtreecommitdiff
path: root/libcmix-crypto/elgamal/gcrypt
diff options
context:
space:
mode:
authorDennis Brentjes <d.brentjes@gmail.com>2017-04-16 22:00:46 +0200
committerDennis Brentjes <d.brentjes@gmail.com>2017-04-16 22:00:46 +0200
commit33f81a3a57a047326160f371f3269dfb47c59cba (patch)
treedc6e39bca104d7d440f19ae0d663b42afea2835f /libcmix-crypto/elgamal/gcrypt
parentd680f8d3848cbc3adf7d6b2c49e10abc4499cfca (diff)
downloadcmix-33f81a3a57a047326160f371f3269dfb47c59cba.tar.gz
cmix-33f81a3a57a047326160f371f3269dfb47c59cba.tar.bz2
cmix-33f81a3a57a047326160f371f3269dfb47c59cba.zip
Some cleanup and tweaked the statsd slightly.
Diffstat (limited to 'libcmix-crypto/elgamal/gcrypt')
-rw-r--r--libcmix-crypto/elgamal/gcrypt/gcrypt_elgamal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcmix-crypto/elgamal/gcrypt/gcrypt_elgamal.c b/libcmix-crypto/elgamal/gcrypt/gcrypt_elgamal.c
index 8f8019a..57e6c41 100644
--- a/libcmix-crypto/elgamal/gcrypt/gcrypt_elgamal.c
+++ b/libcmix-crypto/elgamal/gcrypt/gcrypt_elgamal.c
@@ -19,7 +19,7 @@ static gcry_mpi_t q;
static gcry_mpi_t g;
static const unsigned int nr_bytes = 256;
static const unsigned int nr_bits = 256*8;
-static const unsigned int message_size = nr_bytes-1;
+static const unsigned int message_size = 255;
void check(gcry_error_t error) {
if (error) {
@@ -410,4 +410,4 @@ SharedKeyDeleter elgamal_delete_shared_key = &gcrypt_elgamal_delete_shared_key;
Encrypter elgamal_encrypt = &gcrypt_elgamal_encrypt;
Inverter elgamal_invert = &gcrypt_elgamal_invert;
UniformIntGetter elgamal_get_uniform_int = &gcrypt_elgamal_get_uniform_int;
-Deinitializer elgamal_deinitialize = &gcrypt_elgamal_deinitialize; \ No newline at end of file
+Deinitializer elgamal_deinitialize = &gcrypt_elgamal_deinitialize;