From 33f81a3a57a047326160f371f3269dfb47c59cba Mon Sep 17 00:00:00 2001 From: Dennis Brentjes Date: Sun, 16 Apr 2017 22:00:46 +0200 Subject: Some cleanup and tweaked the statsd slightly. --- libcmix-crypto/elgamal/gcrypt/gcrypt_elgamal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libcmix-crypto') 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; -- cgit v1.2.3-70-g09d2