Skip to content

Commit 78588ed

Browse files
czurniedensjaeckel
authored andcommitted
removed the corect preprocessor branch in mp_to_unsigend_bin this time and removed 8-bit tests from testme.sh
1 parent be9a71f commit 78588ed

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

bn_mp_from_ubin.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ mp_err mp_from_ubin(mp_int *a, const unsigned char *buf, size_t size)
2323
if ((err = mp_mul_2d(a, 8, a)) != MP_OKAY) {
2424
return err;
2525
}
26-
a->dp[0] |= *b++;
26+
a->dp[0] |= *buf++;
2727
a->used += 1;
2828
}
2929
mp_clamp(a);

testme.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,13 +378,11 @@ do
378378
then
379379
_runvalgrind "$i $a" "$CFLAGS"
380380
[ "$WITH_LOW_MP" != "1" ] && continue
381-
_runvalgrind "$i $a" "-DMP_8BIT $CFLAGS"
382381
_runvalgrind "$i $a" "-DMP_16BIT $CFLAGS"
383382
_runvalgrind "$i $a" "-DMP_32BIT $CFLAGS"
384383
else
385384
_runtest "$i $a" "$CFLAGS"
386385
[ "$WITH_LOW_MP" != "1" ] && continue
387-
_runtest "$i $a" "-DMP_8BIT $CFLAGS"
388386
_runtest "$i $a" "-DMP_16BIT $CFLAGS"
389387
_runtest "$i $a" "-DMP_32BIT $CFLAGS"
390388
fi

0 commit comments

Comments
 (0)