Commit 78588ed6d18fb8b46b2b16d55d689ff5a860588c

czurnieden 2019-09-09T03:54:26

removed the corect preprocessor branch in mp_to_unsigend_bin this time and removed 8-bit tests from testme.sh

diff --git a/bn_mp_from_ubin.c b/bn_mp_from_ubin.c
index 3e1885d..f6d6e2a 100644
--- a/bn_mp_from_ubin.c
+++ b/bn_mp_from_ubin.c
@@ -23,7 +23,7 @@ mp_err mp_from_ubin(mp_int *a, const unsigned char *buf, size_t size)
       if ((err = mp_mul_2d(a, 8, a)) != MP_OKAY) {
          return err;
       }
-      a->dp[0] |= *b++;
+      a->dp[0] |= *buf++;
       a->used += 1;
    }
    mp_clamp(a);
diff --git a/testme.sh b/testme.sh
index 40fa32d..2f7235f 100755
--- a/testme.sh
+++ b/testme.sh
@@ -378,13 +378,11 @@ do
     then
       _runvalgrind "$i $a" "$CFLAGS"
       [ "$WITH_LOW_MP" != "1" ] && continue
-      _runvalgrind "$i $a" "-DMP_8BIT $CFLAGS"
       _runvalgrind "$i $a" "-DMP_16BIT $CFLAGS"
       _runvalgrind "$i $a" "-DMP_32BIT $CFLAGS"
     else
       _runtest "$i $a" "$CFLAGS"
       [ "$WITH_LOW_MP" != "1" ] && continue
-      _runtest "$i $a" "-DMP_8BIT $CFLAGS"
       _runtest "$i $a" "-DMP_16BIT $CFLAGS"
       _runtest "$i $a" "-DMP_32BIT $CFLAGS"
     fi