aboutsummaryrefslogtreecommitdiff
path: root/libcmix-crypto/elgamal/gcrypt
diff options
context:
space:
mode:
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;