diff options
Diffstat (limited to '')
-rw-r--r-- | src/lib/libcrypto/bn/bn_nist.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/libcrypto/bn/bn_nist.c b/src/lib/libcrypto/bn/bn_nist.c index 1e4cf833dc..4d4a7b86df 100644 --- a/src/lib/libcrypto/bn/bn_nist.c +++ b/src/lib/libcrypto/bn/bn_nist.c | |||
@@ -59,6 +59,8 @@ | |||
59 | #include "bn_lcl.h" | 59 | #include "bn_lcl.h" |
60 | #include "cryptlib.h" | 60 | #include "cryptlib.h" |
61 | 61 | ||
62 | #include <machine/endian.h> | ||
63 | |||
62 | 64 | ||
63 | #define BN_NIST_192_TOP (192+BN_BITS2-1)/BN_BITS2 | 65 | #define BN_NIST_192_TOP (192+BN_BITS2-1)/BN_BITS2 |
64 | #define BN_NIST_224_TOP (224+BN_BITS2-1)/BN_BITS2 | 66 | #define BN_NIST_224_TOP (224+BN_BITS2-1)/BN_BITS2 |
@@ -318,7 +320,7 @@ static void nist_cp_bn(BN_ULONG *dst, const BN_ULONG *src, int top) | |||
318 | :(to[(n)/2] =((m)&1)?(from[(m)/2]>>32):(from[(m)/2]&BN_MASK2l))) | 320 | :(to[(n)/2] =((m)&1)?(from[(m)/2]>>32):(from[(m)/2]&BN_MASK2l))) |
319 | #define bn_32_set_0(to, n) (((n)&1)?(to[(n)/2]&=BN_MASK2l):(to[(n)/2]=0)); | 321 | #define bn_32_set_0(to, n) (((n)&1)?(to[(n)/2]&=BN_MASK2l):(to[(n)/2]=0)); |
320 | #define bn_cp_32(to,n,from,m) ((m)>=0)?bn_cp_32_naked(to,n,from,m):bn_32_set_0(to,n) | 322 | #define bn_cp_32(to,n,from,m) ((m)>=0)?bn_cp_32_naked(to,n,from,m):bn_32_set_0(to,n) |
321 | # if defined(L_ENDIAN) | 323 | # if _BYTE_ORDER == _LITTLE_ENDIAN |
322 | # if defined(__arch64__) | 324 | # if defined(__arch64__) |
323 | # define NIST_INT64 long | 325 | # define NIST_INT64 long |
324 | # else | 326 | # else |