diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2014-03-02 08:49:37 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2014-03-02 08:49:37 +0100 |
commit | 4e2469a90193a1b4f8733b6de2238ce9b897bf90 (patch) | |
tree | f53d30478a6ca9fbf26e8d892d99c7f41a5d3302 /package/dropbear/patches/patch-libtommath_bn_mp_montgomery_setup_c | |
parent | 32e00c4479ec1ccc5914c4949c42ee54e4f6a728 (diff) | |
parent | f5a8c46a5e05beadcbd2e7e2ff486974e39059fd (diff) |
Merge branch 'master' of git+ssh://openadk.org/git/openadk
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; + } |