diff options
Diffstat (limited to 'package/dropbear/patches/patch-libtommath_bn_mp_montgomery_setup_c')
-rw-r--r-- | package/dropbear/patches/patch-libtommath_bn_mp_montgomery_setup_c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/package/dropbear/patches/patch-libtommath_bn_mp_montgomery_setup_c b/package/dropbear/patches/patch-libtommath_bn_mp_montgomery_setup_c new file mode 100644 index 000000000..a821eb2f9 --- /dev/null +++ b/package/dropbear/patches/patch-libtommath_bn_mp_montgomery_setup_c @@ -0,0 +1,14 @@ +fix from +http://lists.openembedded.org/pipermail/openembedded-core/2013-May/079000.html + +--- dropbear-2014.63.orig/libtommath/bn_mp_montgomery_setup.c 2014-02-19 15:05:24.000000000 +0100 ++++ dropbear-2014.63/libtommath/bn_mp_montgomery_setup.c 2014-03-01 12:34:21.000000000 +0100 +@@ -48,7 +48,7 @@ mp_montgomery_setup (mp_int * n, mp_digi + #endif + + /* rho = -1/m mod b */ +- *rho = (unsigned long)(((mp_word)1 << ((mp_word) DIGIT_BIT)) - x) & MP_MASK; ++ *rho = (mp_digit)(((mp_word)1 << ((mp_word) DIGIT_BIT)) - x) & MP_MASK; + + return MP_OKAY; + } |