patch-libtommath_bn_mp_montgomery_setup_c 554 B

1234567891011121314
  1. fix from
  2. http://lists.openembedded.org/pipermail/openembedded-core/2013-May/079000.html
  3. --- dropbear-2014.63.orig/libtommath/bn_mp_montgomery_setup.c 2014-02-19 15:05:24.000000000 +0100
  4. +++ dropbear-2014.63/libtommath/bn_mp_montgomery_setup.c 2014-03-01 12:34:21.000000000 +0100
  5. @@ -48,7 +48,7 @@ mp_montgomery_setup (mp_int * n, mp_digi
  6. #endif
  7. /* rho = -1/m mod b */
  8. - *rho = (unsigned long)(((mp_word)1 << ((mp_word) DIGIT_BIT)) - x) & MP_MASK;
  9. + *rho = (mp_digit)(((mp_word)1 << ((mp_word) DIGIT_BIT)) - x) & MP_MASK;
  10. return MP_OKAY;
  11. }