X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;ds=sidebyside;f=bigint%2Fbigint_io.c;h=9b942ea0f74d2e7d975c05e70df0635c8706030c;hb=c48e9f61be5047296dfbb6e91c1a2d638f71cc71;hp=a3992f25dcd6a3bd2f04a2b9a264c20353e3fd0f;hpb=fdbda6486df88be6ac2ba948f21e84c396499535;p=avr-crypto-lib.git 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; }