X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=crypto%2Fbn%2Fbn_nist.c;h=f8e306bb82d383193547334a6ff93fb42c15fa61;hb=19398a175a7dc36b66f9494d5ebfb85d2e6ac1d6;hp=fa453a4459da73cb55b8d01b9d81fe102fb34049;hpb=b0c0f200712ea51b6442fa0d496a6e0088017890;p=oweals%2Fopenssl.git diff --git a/crypto/bn/bn_nist.c b/crypto/bn/bn_nist.c index fa453a4459..f8e306bb82 100644 --- a/crypto/bn/bn_nist.c +++ b/crypto/bn/bn_nist.c @@ -172,6 +172,7 @@ const BIGNUM *BN_get0_nist_prime_521(void) } /* some misc internal functions */ +#if BN_BITS2 != 64 static BN_ULONG _256_data[BN_NIST_256_TOP*6]; static int _is_set_256_data = 0; static void _init_256_data(void); @@ -179,6 +180,7 @@ static void _init_256_data(void); static BN_ULONG _384_data[BN_NIST_384_TOP*8]; static int _is_set_384_data = 0; static void _init_384_data(void); +#endif #define BN_NIST_ADD_ONE(a) while (!(++(*(a)))) ++(a); @@ -282,6 +284,11 @@ int BN_nist_mod_192(BIGNUM *r, const BIGNUM *a, const BIGNUM *field, nist_cp_bn_0(buf, a_d + BN_NIST_192_TOP, top - BN_NIST_192_TOP, BN_NIST_192_TOP); +#if defined(OPENSSL_SYS_VMS) && defined(__DECC) +# pragma message save +# pragma message disable BADSUBSCRIPT +#endif + nist_set_192(t_d, buf, 0, 3, 3); if (bn_add_words(r_d, r_d, t_d, BN_NIST_192_TOP)) ++carry; @@ -290,6 +297,10 @@ int BN_nist_mod_192(BIGNUM *r, const BIGNUM *a, const BIGNUM *field, if (bn_add_words(r_d, r_d, t_d, BN_NIST_192_TOP)) ++carry; +#if defined(OPENSSL_SYS_VMS) && defined(__DECC) +# pragma message restore +#endif + nist_set_192(t_d, buf, 5, 5, 5) if (bn_add_words(r_d, r_d, t_d, BN_NIST_192_TOP)) ++carry; @@ -396,6 +407,7 @@ int BN_nist_mod_224(BIGNUM *r, const BIGNUM *a, const BIGNUM *field, #endif } +#if BN_BITS2 != 64 static void _init_256_data(void) { int i; @@ -413,6 +425,7 @@ static void _init_256_data(void) } _is_set_256_data = 1; } +#endif #define nist_set_256(to, from, a1, a2, a3, a4, a5, a6, a7, a8) \ { \ @@ -546,6 +559,7 @@ int BN_nist_mod_256(BIGNUM *r, const BIGNUM *a, const BIGNUM *field, #endif } +#if BN_BITS2 != 64 static void _init_384_data(void) { int i; @@ -563,6 +577,7 @@ static void _init_384_data(void) } _is_set_384_data = 1; } +#endif #define nist_set_384(to,from,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12) \ { \