summaryrefslogtreecommitdiff
path: root/pkcs1-rsa-sha512.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-rsa-sha512.c
parent8c4130e4e9b5823de08deb093e6b66d44bce99ea (diff)
downloadnettle-77b0bf6a0660aa8e7291b612596edd7ce46f10ae.tar.gz
New constant NETTLE_MAX_BIGNUM_SIZE.
Diffstat (limited to 'pkcs1-rsa-sha512.c')
-rw-r--r--pkcs1-rsa-sha512.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkcs1-rsa-sha512.c b/pkcs1-rsa-sha512.c
index fd58999c..df7520e5 100644
--- a/pkcs1-rsa-sha512.c
+++ b/pkcs1-rsa-sha512.c
@@ -62,7 +62,7 @@ sha512_prefix[] =
int
pkcs1_rsa_sha512_encode(mpz_t m, unsigned size, struct sha512_ctx *hash)
{
- TMP_DECL(em, uint8_t, NETTLE_MAX_BIGNUM_BITS / 8);
+ TMP_DECL(em, uint8_t, NETTLE_MAX_BIGNUM_SIZE);
TMP_ALLOC(em, size);
if (pkcs1_signature_prefix(size, em,
@@ -82,7 +82,7 @@ pkcs1_rsa_sha512_encode(mpz_t m, unsigned size, struct sha512_ctx *hash)
int
pkcs1_rsa_sha512_encode_digest(mpz_t m, unsigned size, const uint8_t *digest)
{
- TMP_DECL(em, uint8_t, NETTLE_MAX_BIGNUM_BITS / 8);
+ TMP_DECL(em, uint8_t, NETTLE_MAX_BIGNUM_SIZE);
TMP_ALLOC(em, size);
if (pkcs1_signature_prefix(size, em,