X-Git-Url: https://git.cryptolib.org/?p=avr-crypto-lib.git;a=blobdiff_plain;f=bigint%2Fbigint_io.c;h=9b942ea0f74d2e7d975c05e70df0635c8706030c;hp=a3992f25dcd6a3bd2f04a2b9a264c20353e3fd0f;hb=d3b4df851c0d7fb1cfe38162c6d0781ba3afa910;hpb=45d15fcc098c9eece5c39b5e421a1706f187a0d3 diff --git a/bigint/bigint_io.c b/bigint/bigint_io.c index a3992f2..9b942ea 100644 --- a/bigint/bigint_io.c +++ b/bigint/bigint_io.c @@ -153,5 +153,9 @@ uint8_t bigint_read_hex_echo(bigint_t* a){ if(shift4){ bigint_shiftright(a, 4); } + if(a->length_W == 1 && a->wordv[0] == 0){ + a->length_W = 0; + a->info = 0; + } return 0; }