summaryrefslogtreecommitdiff
path: root/rsa-encrypt.c
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2012-04-23 14:39:21 +0200
committerNiels Möller <nisse@lysator.liu.se>2012-04-23 14:39:57 +0200
commit77b0bf6a0660aa8e7291b612596edd7ce46f10ae (patch)
tree7798f2d4c8488ed7223082a538ee181427b9674b /rsa-encrypt.c
parent8c4130e4e9b5823de08deb093e6b66d44bce99ea (diff)
downloadnettle-77b0bf6a0660aa8e7291b612596edd7ce46f10ae.tar.gz
New constant NETTLE_MAX_BIGNUM_SIZE.
Diffstat (limited to 'rsa-encrypt.c')
-rw-r--r--rsa-encrypt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rsa-encrypt.c b/rsa-encrypt.c
index fb346db7..29523fcb 100644
--- a/rsa-encrypt.c
+++ b/rsa-encrypt.c
@@ -43,7 +43,7 @@ rsa_encrypt(const struct rsa_public_key *key,
unsigned length, const uint8_t *message,
mpz_t gibbberish)
{
- TMP_DECL(em, uint8_t, NETTLE_MAX_BIGNUM_BITS / 8);
+ TMP_DECL(em, uint8_t, NETTLE_MAX_BIGNUM_SIZE);
unsigned padding;
unsigned i;