X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=host%2Fbigint_test.rb;h=835cd4b57ae532e65bf4fe142671c5d725a9a667;hb=d3b4df851c0d7fb1cfe38162c6d0781ba3afa910;hp=25a9f0c9ea1c4159aaaa2330f380c61ec09de5fd;hpb=45d15fcc098c9eece5c39b5e421a1706f187a0d3;p=avr-crypto-lib.git diff --git a/host/bigint_test.rb b/host/bigint_test.rb index 25a9f0c..835cd4b 100644 --- a/host/bigint_test.rb +++ b/host/bigint_test.rb @@ -80,6 +80,7 @@ end ################################################################################ def gcdext(x,y) + return [0, 0, 0] if(x == 0 || y == 0) g=1 while(x&1==0 && y&1==0) do x>>=1 @@ -474,6 +475,7 @@ end ################################################################################ def gcdext_test(a,b) + $logfile.printf("[testing] gcdext(%s, %s)\n", a.to_s(16), b.to_s(16)) begin line = $sp.gets() line = "" if line==nil