Deleted Added
full compact
bn_mont.c (302408) bn_mont.c (325337)
1/* crypto/bn/bn_mont.c */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved.
4 *
5 * This package is an SSL implementation written
6 * by Eric Young (eay@cryptsoft.com).
7 * The implementation was written so as to conform with Netscapes SSL.
8 *

--- 380 unchanged lines hidden (view full) ---

389 BIGNUM tmod;
390 BN_ULONG buf[2];
391
392 BN_init(&tmod);
393 tmod.d = buf;
394 tmod.dmax = 2;
395 tmod.neg = 0;
396
1/* crypto/bn/bn_mont.c */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved.
4 *
5 * This package is an SSL implementation written
6 * by Eric Young (eay@cryptsoft.com).
7 * The implementation was written so as to conform with Netscapes SSL.
8 *

--- 380 unchanged lines hidden (view full) ---

389 BIGNUM tmod;
390 BN_ULONG buf[2];
391
392 BN_init(&tmod);
393 tmod.d = buf;
394 tmod.dmax = 2;
395 tmod.neg = 0;
396
397 if (BN_get_flags(mod, BN_FLG_CONSTTIME) != 0)
398 BN_set_flags(&tmod, BN_FLG_CONSTTIME);
399
397 mont->ri = (BN_num_bits(mod) + (BN_BITS2 - 1)) / BN_BITS2 * BN_BITS2;
398
399# if defined(OPENSSL_BN_ASM_MONT) && (BN_BITS2<=32)
400 /*
401 * Only certain BN_BITS2<=32 platforms actually make use of n0[1],
402 * and we could use the #else case (with a shorter R value) for the
403 * others. However, currently only the assembler files do know which
404 * is which.

--- 154 unchanged lines hidden ---
400 mont->ri = (BN_num_bits(mod) + (BN_BITS2 - 1)) / BN_BITS2 * BN_BITS2;
401
402# if defined(OPENSSL_BN_ASM_MONT) && (BN_BITS2<=32)
403 /*
404 * Only certain BN_BITS2<=32 platforms actually make use of n0[1],
405 * and we could use the #else case (with a shorter R value) for the
406 * others. However, currently only the assembler files do know which
407 * is which.

--- 154 unchanged lines hidden ---