aboutsummaryrefslogtreecommitdiff
path: root/crypto/include
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2014-11-02 20:16:59 +0000
committerMatt Caswell <matt@openssl.org>2014-12-08 21:41:42 +0000
commit02a62d1a4ab711e935defb6e61c2564130ff8627 (patch)
tree9c8fcd221027fc113aeebe4678866d3ceb9193ad /crypto/include
parente35af275d592188cb0adf3a4cc6641e302acd9a7 (diff)
downloadopenssl-02a62d1a4ab711e935defb6e61c2564130ff8627.zip
openssl-02a62d1a4ab711e935defb6e61c2564130ff8627.tar.gz
openssl-02a62d1a4ab711e935defb6e61c2564130ff8627.tar.bz2
Move bn internal functions into bn_int.h and bn_lcl.h
Reviewed-by: Tim Hudson <tjh@openssl.org>
Diffstat (limited to 'crypto/include')
-rw-r--r--crypto/include/internal/bn_int.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/crypto/include/internal/bn_int.h b/crypto/include/internal/bn_int.h
index 811990b..d3e9def 100644
--- a/crypto/include/internal/bn_int.h
+++ b/crypto/include/internal/bn_int.h
@@ -62,6 +62,13 @@
extern "C" {
#endif
+#define bn_expand(a,bits) ((((((bits+BN_BITS2-1))/BN_BITS2)) <= (a)->dmax)?\
+ (a):bn_expand2((a),(bits+BN_BITS2-1)/BN_BITS2))
+BIGNUM *bn_wexpand(BIGNUM *a, int words);
+BIGNUM *bn_expand2(BIGNUM *a, int words);
+
+void bn_correct_top(BIGNUM *a);
+
/* Determine the modified width-(w+1) Non-Adjacent Form (wNAF) of 'scalar'.
* This is an array r[] of values that are either zero or odd with an
* absolute value less than 2^w satisfying