summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ec/ec_lcl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/ec/ec_lcl.h')
-rw-r--r--src/lib/libcrypto/ec/ec_lcl.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/lib/libcrypto/ec/ec_lcl.h b/src/lib/libcrypto/ec/ec_lcl.h
index d11aaed8cb..e1c91e67ab 100644
--- a/src/lib/libcrypto/ec/ec_lcl.h
+++ b/src/lib/libcrypto/ec/ec_lcl.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: ec_lcl.h,v 1.6 2016/11/04 17:33:19 miod Exp $ */ 1/* $OpenBSD: ec_lcl.h,v 1.7 2016/12/21 15:49:29 jsing Exp $ */
2/* 2/*
3 * Originally written by Bodo Moeller for the OpenSSL project. 3 * Originally written by Bodo Moeller for the OpenSSL project.
4 */ 4 */
@@ -69,19 +69,23 @@
69 * 69 *
70 */ 70 */
71 71
72
73#include <stdlib.h> 72#include <stdlib.h>
74 73
75#include <openssl/obj_mac.h> 74#include <openssl/obj_mac.h>
76#include <openssl/ec.h> 75#include <openssl/ec.h>
77#include <openssl/bn.h> 76#include <openssl/bn.h>
78 77
78__BEGIN_HIDDEN_DECLS
79
79#if defined(__SUNPRO_C) 80#if defined(__SUNPRO_C)
80# if __SUNPRO_C >= 0x520 81# if __SUNPRO_C >= 0x520
81# pragma error_messages (off,E_ARRAY_OF_INCOMPLETE_NONAME,E_ARRAY_OF_INCOMPLETE) 82# pragma error_messages (off,E_ARRAY_OF_INCOMPLETE_NONAME,E_ARRAY_OF_INCOMPLETE)
82# endif 83# endif
83#endif 84#endif
84 85
86#define bn_wexpand(a,words) (((words) <= (a)->dmax)?(a):bn_expand2((a),(words)))
87BIGNUM *bn_expand2(BIGNUM *a, int words);
88
85/* Use default functions for poin2oct, oct2point and compressed coordinates */ 89/* Use default functions for poin2oct, oct2point and compressed coordinates */
86#define EC_FLAGS_DEFAULT_OCT 0x1 90#define EC_FLAGS_DEFAULT_OCT 0x1
87 91
@@ -447,4 +451,7 @@ void ec_GFp_nistp_points_make_affine_internal(size_t num, void *point_array,
447 void (*felem_inv)(void *out, const void *in), 451 void (*felem_inv)(void *out, const void *in),
448 void (*felem_contract)(void *out, const void *in)); 452 void (*felem_contract)(void *out, const void *in));
449void ec_GFp_nistp_recode_scalar_bits(unsigned char *sign, unsigned char *digit, unsigned char in); 453void ec_GFp_nistp_recode_scalar_bits(unsigned char *sign, unsigned char *digit, unsigned char in);
454
450#endif 455#endif
456
457__END_HIDDEN_DECLS