summaryrefslogtreecommitdiff
path: root/pkcs1-decrypt.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 /pkcs1-decrypt.c
parent8c4130e4e9b5823de08deb093e6b66d44bce99ea (diff)
downloadnettle-77b0bf6a0660aa8e7291b612596edd7ce46f10ae.tar.gz
New constant NETTLE_MAX_BIGNUM_SIZE.
Diffstat (limited to 'pkcs1-decrypt.c')
-rw-r--r--pkcs1-decrypt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkcs1-decrypt.c b/pkcs1-decrypt.c
index bd21f88b..eb003528 100644
--- a/pkcs1-decrypt.c
+++ b/pkcs1-decrypt.c
@@ -38,11 +38,11 @@ pkcs1_decrypt (unsigned key_size,
const mpz_t m,
unsigned *length, uint8_t *message)
{
- TMP_DECL(em, uint8_t, NETTLE_MAX_BIGNUM_BITS / 8);
+ TMP_DECL(em, uint8_t, NETTLE_MAX_BIGNUM_SIZE);
uint8_t *terminator;
unsigned padding;
unsigned message_length;
-
+
TMP_ALLOC(em, key_size);
nettle_mpz_get_str_256(key_size, em, m);