summaryrefslogtreecommitdiff
path: root/nettle-internal.h
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 /nettle-internal.h
parent8c4130e4e9b5823de08deb093e6b66d44bce99ea (diff)
downloadnettle-77b0bf6a0660aa8e7291b612596edd7ce46f10ae.tar.gz
New constant NETTLE_MAX_BIGNUM_SIZE.
Diffstat (limited to 'nettle-internal.h')
-rw-r--r--nettle-internal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/nettle-internal.h b/nettle-internal.h
index 88822393..f1a90429 100644
--- a/nettle-internal.h
+++ b/nettle-internal.h
@@ -45,6 +45,7 @@ do { if (size > (sizeof(name) / sizeof(name[0]))) abort(); } while (0)
/* Arbitrary limits which apply to systems that don't have alloca */
#define NETTLE_MAX_BIGNUM_BITS 10000
+#define NETTLE_MAX_BIGNUM_SIZE ((NETTLE_MAX_BIGNUM_BITS + 7)/8)
#define NETTLE_MAX_HASH_BLOCK_SIZE 128
#define NETTLE_MAX_HASH_DIGEST_SIZE 64
#define NETTLE_MAX_SEXP_ASSOC 17