From 7bf46a4c27adb81859966cabcbb119a025fdb306 Mon Sep 17 00:00:00 2001 From: geoffrey Date: Sat, 20 Jun 2026 16:26:40 +0200 Subject: [PATCH] Send cmd struct to device --- .gitignore | 1 + common.h | 2 +- main | Bin 24816 -> 21440 bytes reports | 800 ++++++++++++++++++++++++++--------------------------- uart.c | 11 +- 5 files changed, 410 insertions(+), 404 deletions(-) diff --git a/.gitignore b/.gitignore index c18dd8d..bb6b143 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ __pycache__/ +**.swp diff --git a/common.h b/common.h index 5d28b90..d4befa8 100644 --- a/common.h +++ b/common.h @@ -10,7 +10,7 @@ struct prng{ #define CSPRNG_VERS 0x1 -/* Define all commandes */ +/* Define all commands */ #define CSPRNG_CMD_GET_RNG 0x10 struct cmd{ diff --git a/main b/main index 73d8a7fd5a268c8af10f1cb87765d41040b7522e..e937eaa5764d300078acdcd6cf327f5bcb0781f7 100755 GIT binary patch literal 21440 zcmeI43v?7!n#XS^gqM&GB8q@R2}X#Rkboc$Bb`7)Wex8{WtmLV=~R-|q&s$3LxN@i z+c>tFR%VnHe5^RkL&xE$>o6(`hKB}bMuE{$9C3|f96AOyC=780d;j09dpp%lXU@!? zvwL>;8$V`27yM zjP-}VAJ-Y-HbWrPaMdaCa-h(sLQ=dZMR=kdBkZJU&{OA(LC`S&_m&1E9L-r8lP zD8H1Vx@>ZdyL|dJlWQunYuuhdeRlnf>Dkk-$?z)qh1?u#2D$w9ns#bHI9=1Qk)Bu z1U(O(l0-iOx@7iqd(l7Ci@u>3{gu7w7xto`--~`;FM1lD$;wYHn@oRwFZ!ll^oO8V zK%!d(MY8m-=|#V?7yYPS^mG|WmOhP(Wcq)HUIB^j7AVFgD#@?ayLIN*eI8eB9jnuP zKCh3}1#~}iRr)pE?XT0c3JR~$Jgio$g^uYi{5o~r$9$Tzg01#@>U?gGUWtIpnt;EW zxoW(Ajd|-3MR!#RTZh9{?{rkUJl!01 zol?`;g5sjWxsEA0Q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(zz%mUc%aK3XfIhEtBjE7A~1H zd!c>F{Q1jm<@WN~a~9g*VctWpL~Ln?9qaghcX1VMX!m8i*wJ2oNyhO#_>#12Grc5@ zU3EEv4v95A<%)g&lH*Mq1I8mK8+Y?dXeWwI1LG{H&j>|a%1mOw@WI-wvDR4 zPGVYolvE=Xx*EJlL6_K|k;SZ2{QI;?=giG z?=4}%4s-eGc8=Z&iu}cUKp`h{KT&>RCnPQN^o~)4w^C=|5K`POn#-?SNs&WV<%S}EbN$zG|2f=FyhjzXgIAdRsm;v(P0*1E|5=h)fB8Br-Y>(19iki}d^b*v z{xbIyvdq-rJUYJ2Z!-DU@%N2F3VV^C2n)HzGCRZ;kh-$g=xPZ)A(&Y!kq zF#7*!if$<65RowVH|PHn^v3zeyzh4r_Y=bGPrqx8{^B`;kg{;((p>)2&{G%D96*Qo zE<)_HZO%`Gg{1elRv`SvbAvH6DYeA)qK6V;;r}@z=-Ltf;`gf9Z@q_)KhcfCPmH7Q z!k0{hzxe$s^9KSQh%+9-U&zbgZ1j)+4l2>Twwnf^Y)lO2^z9?1CGr>d@!J>ah9V!~ zMtK>J!90I+KMQ~HJ4g5kf1@-FF=pDz^WVxRrjgLnvm;R+G5^!^CsB6h$p0%V*G~?b ZB1OK!mZl4n35&9>&@G0W985v!zX4r&cQyb3 diff --git a/reports b/reports index f79ce9a..1ed5c3b 100644 --- a/reports +++ b/reports @@ -1,10 +1,10 @@ *************** *** Test: 0 *** *************** -Testing p (236412899) +Testing p (214031023) p is a prime number. The test has succeeded. -Testing q (1449535663) +Testing q (1881550591) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -13,23 +13,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 342688928293717037 +n: 402710197817984593 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 18221263061575827332 +Random number: 11776886247649214735 All tests has passed with success, the BBS algorithm works. *************** *** Test: 1 *** *************** -Testing p (509210311) +Testing p (859714979) p is a prime number. The test has succeeded. -Testing q (476028191) +Testing q (1906471603) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -38,23 +38,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 242398463183877401 +n: 1639022194137241337 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 13957250907377810679 +Random number: 9685020260693956726 All tests has passed with success, the BBS algorithm works. *************** *** Test: 2 *** *************** -Testing p (1475551283) +Testing p (2108841907) p is a prime number. The test has succeeded. -Testing q (973725763) +Testing q (1127172391) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -63,23 +63,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 1436782298884803929 +n: 2377028374554189637 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 6865706233718783231 +Random number: 7272164569094110906 All tests has passed with success, the BBS algorithm works. *************** *** Test: 3 *** *************** -Testing p (2023325947) +Testing p (457237427) p is a prime number. The test has succeeded. -Testing q (314316287) +Testing q (1539497759) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -88,23 +88,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 635964299051798789 +n: 703915994197426093 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 10078954275340087149 +Random number: 4726677595152011818 All tests has passed with success, the BBS algorithm works. *************** *** Test: 4 *** *************** -Testing p (1943341627) +Testing p (1570273667) p is a prime number. The test has succeeded. -Testing q (1858778459) +Testing q (1301537071) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -113,23 +113,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 3612241554745612793 +n: 2043769389215609357 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 13690091737832226816 +Random number: 11018431273704990418 All tests has passed with success, the BBS algorithm works. *************** *** Test: 5 *** *************** -Testing p (883663439) +Testing p (36024727) p is a prime number. The test has succeeded. -Testing q (1669183259) +Testing q (1504123631) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -138,23 +138,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 1474996218969167701 +n: 54185643181023737 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 4897934848390581084 +Random number: 11625585767067952097 All tests has passed with success, the BBS algorithm works. *************** *** Test: 6 *** *************** -Testing p (829659359) +Testing p (295231319) p is a prime number. The test has succeeded. -Testing q (737795039) +Testing q (154622563) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -163,23 +163,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 612118559130120001 +n: 45649423221650597 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 9708342100660668705 +Random number: 16112359183294641411 All tests has passed with success, the BBS algorithm works. *************** *** Test: 7 *** *************** -Testing p (598116203) +Testing p (1989464563) p is a prime number. The test has succeeded. -Testing q (480422083) +Testing q (935362487) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -188,23 +188,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 287348232121310849 +n: 1860870521446048181 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 8444825606750600696 +Random number: 16382400172310280808 All tests has passed with success, the BBS algorithm works. *************** *** Test: 8 *** *************** -Testing p (389121727) +Testing p (2124187367) p is a prime number. The test has succeeded. -Testing q (2061022343) +Testing q (1124534107) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -213,23 +213,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 801988573493746361 +n: 2388721143850026269 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 5543013947387472548 +Random number: 5458414373584121227 All tests has passed with success, the BBS algorithm works. *************** *** Test: 9 *** *************** -Testing p (833714363) +Testing p (662574239) p is a prime number. The test has succeeded. -Testing q (1703304527) +Testing q (1383583427) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -238,23 +238,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 1420069448722821301 +n: 916726736237537053 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 9138049836158135531 +Random number: 8440204995140003032 All tests has passed with success, the BBS algorithm works. *************** *** Test: 10 *** *************** -Testing p (496224247) +Testing p (1941792659) p is a prime number. The test has succeeded. -Testing q (130793263) +Testing q (869640251) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -263,23 +263,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 64902788444847961 +n: 1688661055362717409 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 18374214338710287740 +Random number: 14398741658097303455 All tests has passed with success, the BBS algorithm works. *************** *** Test: 11 *** *************** -Testing p (1740405031) +Testing p (1945410791) p is a prime number. The test has succeeded. -Testing q (738029147) +Testing q (657403931) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -288,23 +288,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 1284469640463438557 +n: 1278920701413219421 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 7810876928086368174 +Random number: 6511863215217083930 All tests has passed with success, the BBS algorithm works. *************** *** Test: 12 *** *************** -Testing p (44917087) +Testing p (1472855543) p is a prime number. The test has succeeded. -Testing q (697940339) +Testing q (966514123) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -313,23 +313,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 31349446927672493 +n: 1423535683448333789 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 1895353598221782705 +Random number: 3495797467198068993 All tests has passed with success, the BBS algorithm works. *************** *** Test: 13 *** *************** -Testing p (1604562983) +Testing p (689061823) p is a prime number. The test has succeeded. -Testing q (1090760423) +Testing q (1965422299) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -338,23 +338,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 1750193798067221809 +n: 1354297472313791077 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 8944367864858557632 +Random number: 9843512302829872390 All tests has passed with success, the BBS algorithm works. *************** *** Test: 14 *** *************** -Testing p (505683883) +Testing p (242758871) p is a prime number. The test has succeeded. -Testing q (1343195731) +Testing q (1305674371) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -363,23 +363,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 679232432881103473 +n: 316964036197595141 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 18205627915990556328 +Random number: 5492694997578156123 All tests has passed with success, the BBS algorithm works. *************** *** Test: 15 *** *************** -Testing p (1940941207) +Testing p (369107639) p is a prime number. The test has succeeded. -Testing q (2143802371) +Testing q (1548318647) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -388,23 +388,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 4160994361538201797 +n: 571496240213844433 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 16561374041047375085 +Random number: 7427977626585271824 All tests has passed with success, the BBS algorithm works. *************** *** Test: 16 *** *************** -Testing p (73039579) +Testing p (681383803) p is a prime number. The test has succeeded. -Testing q (929390131) +Testing q (376965551) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -413,23 +413,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 67882263894994849 +n: 256858220740370453 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 12350787772269445851 +Random number: 15564903559948161877 All tests has passed with success, the BBS algorithm works. *************** *** Test: 17 *** *************** -Testing p (2058806179) +Testing p (403366879) p is a prime number. The test has succeeded. -Testing q (1876829819) +Testing q (1841474179) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -438,23 +438,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 3864028828288651601 +n: 742789692342317341 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 14180667775752636938 +Random number: 9662911559142257023 All tests has passed with success, the BBS algorithm works. *************** *** Test: 18 *** *************** -Testing p (936363607) +Testing p (1211579731) p is a prime number. The test has succeeded. -Testing q (917452691) +Testing q (830886367) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -463,23 +463,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 859069310996616437 +n: 1006685081021427277 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 3582984501271528915 +Random number: 9331598859514181647 All tests has passed with success, the BBS algorithm works. *************** *** Test: 19 *** *************** -Testing p (361126399) +Testing p (79867847) p is a prime number. The test has succeeded. -Testing q (1792782263) +Testing q (153500363) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -488,23 +488,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 647421002828260937 +n: 12259743506528461 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 12332169021332278476 +Random number: 10670101160124258875 All tests has passed with success, the BBS algorithm works. *************** *** Test: 20 *** *************** -Testing p (1079689183) +Testing p (888534011) p is a prime number. The test has succeeded. -Testing q (985668571) +Testing q (415555867) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -513,23 +513,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 1064215694131767493 +n: 369235521300092537 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 13560492014018831682 +Random number: 13750365897735302339 All tests has passed with success, the BBS algorithm works. *************** *** Test: 21 *** *************** -Testing p (1035682027) +Testing p (1491271039) p is a prime number. The test has succeeded. -Testing q (1930098931) +Testing q (442500787) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -538,23 +538,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 1998968773168613137 +n: 659888608387807693 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 3906848351319316606 +Random number: 6723792258975467183 All tests has passed with success, the BBS algorithm works. *************** *** Test: 22 *** *************** -Testing p (824899903) +Testing p (1298740291) p is a prime number. The test has succeeded. -Testing q (1681398239) +Testing q (260283587) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -563,23 +563,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 1386985244255470817 +n: 338040781522903817 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 14557306431021167913 +Random number: 9033242095553176067 All tests has passed with success, the BBS algorithm works. *************** *** Test: 23 *** *************** -Testing p (1163289143) +Testing p (1096898771) p is a prime number. The test has succeeded. -Testing q (1594586827) +Testing q (1525895759) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -588,23 +588,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 1854965543419919261 +n: 1673753182721212189 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 2484405126603198764 +Random number: 9595396211810462227 All tests has passed with success, the BBS algorithm works. *************** *** Test: 24 *** *************** -Testing p (1894794047) +Testing p (1139262559) p is a prime number. The test has succeeded. -Testing q (24945611) +Testing q (1273091179) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -613,23 +613,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 47266795221577717 +n: 1450385114427867061 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 6059495291564529354 +Random number: 13160528642154596169 All tests has passed with success, the BBS algorithm works. *************** *** Test: 25 *** *************** -Testing p (1467181271) +Testing p (1531450411) p is a prime number. The test has succeeded. -Testing q (44866879) +Testing q (1982770987) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -638,23 +638,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 65827844557023209 +n: 3036515442960025657 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 8654553304429526910 +Random number: 840852125071636477 All tests has passed with success, the BBS algorithm works. *************** *** Test: 26 *** *************** -Testing p (1338820367) +Testing p (1032488287) p is a prime number. The test has succeeded. -Testing q (1282631579) +Testing q (519405647) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -663,23 +663,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 1717213281322569493 +n: 536280246729156689 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 7147913949981697350 +Random number: 4719196854115937701 All tests has passed with success, the BBS algorithm works. *************** *** Test: 27 *** *************** -Testing p (1746597271) +Testing p (1337358203) p is a prime number. The test has succeeded. -Testing q (1585247107) +Testing q (373914391) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -688,23 +688,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 2768788270946844997 +n: 500057478023599373 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 16181838028018357422 +Random number: 14956511301780275319 All tests has passed with success, the BBS algorithm works. *************** *** Test: 28 *** *************** -Testing p (1300948127) +Testing p (2017535563) p is a prime number. The test has succeeded. -Testing q (705927307) +Testing q (1875917639) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -713,23 +713,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 918374807839803989 +n: 3784730549941495757 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 8484070686346314881 +Random number: 5790968212910587263 All tests has passed with success, the BBS algorithm works. *************** *** Test: 29 *** *************** -Testing p (844058399) +Testing p (267713311) p is a prime number. The test has succeeded. -Testing q (1992087007) +Testing q (494474191) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -738,23 +738,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 1681437769797121793 +n: 132377322876656401 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 7187971162089850913 +Random number: 4493302660192003901 All tests has passed with success, the BBS algorithm works. *************** *** Test: 30 *** *************** -Testing p (1831414987) +Testing p (214151939) p is a prime number. The test has succeeded. -Testing q (980438999) +Testing q (1279941863) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -763,23 +763,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 1795590676607878013 +n: 274102031768722357 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 10454217091598886711 +Random number: 3374199908301446420 All tests has passed with success, the BBS algorithm works. *************** *** Test: 31 *** *************** -Testing p (1359361943) +Testing p (1059981451) p is a prime number. The test has succeeded. -Testing q (1250043499) +Testing q (1203711983) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -788,23 +788,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 1699261559635158557 +n: 1275912374326427333 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 14504299047120391621 +Random number: 17789341587482214624 All tests has passed with success, the BBS algorithm works. *************** *** Test: 32 *** *************** -Testing p (1557534211) +Testing p (1615761263) p is a prime number. The test has succeeded. -Testing q (1911110867) +Testing q (1615541203) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -813,23 +813,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 2976620556366370937 +n: 2610328894587819389 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 18103630233951113806 +Random number: 2434629065880146083 All tests has passed with success, the BBS algorithm works. *************** *** Test: 33 *** *************** -Testing p (2010006659) +Testing p (1149066371) p is a prime number. The test has succeeded. -Testing q (633240719) +Testing q (1101906599) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -838,23 +838,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 1272818061939947821 +n: 1266163816893882229 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 531468411713401329 +Random number: 5793652136831070358 All tests has passed with success, the BBS algorithm works. *************** *** Test: 34 *** *************** -Testing p (509354411) +Testing p (741777007) p is a prime number. The test has succeeded. -Testing q (1388741891) +Testing q (2137637483) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -863,23 +863,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 707361807921331201 +n: 1585650334190753381 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 6875854204058067211 +Random number: 15408211237752676020 All tests has passed with success, the BBS algorithm works. *************** *** Test: 35 *** *************** -Testing p (133816483) +Testing p (744242111) p is a prime number. The test has succeeded. -Testing q (255019) +Testing q (1202788387) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -888,23 +888,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 34125745678177 +n: 895165768227164957 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 8709779116396052894 +Random number: 8008847291508759988 All tests has passed with success, the BBS algorithm works. *************** *** Test: 36 *** *************** -Testing p (1600299479) +Testing p (2016623299) p is a prime number. The test has succeeded. -Testing q (1322456743) +Testing q (1837739663) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -913,23 +913,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 2116326836822936897 +n: 3706028621902208237 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 17335844872505943714 +Random number: 15750244445858655317 All tests has passed with success, the BBS algorithm works. *************** *** Test: 37 *** *************** -Testing p (1685845247) +Testing p (1750434859) p is a prime number. The test has succeeded. -Testing q (1615330091) +Testing q (820444211) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -938,23 +938,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 2723196556248427477 +n: 1436134146799151249 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 17270511783420698942 +Random number: 6797007812672219118 All tests has passed with success, the BBS algorithm works. *************** *** Test: 38 *** *************** -Testing p (1036469047) +Testing p (464568239) p is a prime number. The test has succeeded. -Testing q (251714839) +Testing q (682777259) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -963,23 +963,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 260894639294088433 +n: 317196628842876901 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 13248841213242281227 +Random number: 5755833443408956575 All tests has passed with success, the BBS algorithm works. *************** *** Test: 39 *** *************** -Testing p (1222819867) +Testing p (1791591479) p is a prime number. The test has succeeded. -Testing q (376619983) +Testing q (97762439) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -988,23 +988,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 460538397521602261 +n: 175150352678657281 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 15655894579001667002 +Random number: 5270567790910609475 All tests has passed with success, the BBS algorithm works. *************** *** Test: 40 *** *************** -Testing p (499075111) +Testing p (1727932807) p is a prime number. The test has succeeded. -Testing q (1988107067) +Testing q (1484103211) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -1013,23 +1013,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 992214755142909437 +n: 2564430627260943277 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 9728526573701921550 +Random number: 2584019998323491853 All tests has passed with success, the BBS algorithm works. *************** *** Test: 41 *** *************** -Testing p (1902851627) +Testing p (2046180739) p is a prime number. The test has succeeded. -Testing q (1143104507) +Testing q (203731903) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -1038,23 +1038,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 2175158270975982889 +n: 416872295838416317 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 4192700815998537260 +Random number: 8667997092993365742 All tests has passed with success, the BBS algorithm works. *************** *** Test: 42 *** *************** -Testing p (137859191) +Testing p (1329713579) p is a prime number. The test has succeeded. -Testing q (1562062283) +Testing q (577050407) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -1063,23 +1063,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 215344642625993053 +n: 767311761955376653 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 14066580904650993101 +Random number: 15807495895435786441 All tests has passed with success, the BBS algorithm works. *************** *** Test: 43 *** *************** -Testing p (434820299) +Testing p (668493667) p is a prime number. The test has succeeded. -Testing q (650992379) +Testing q (1775358971) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -1088,23 +1088,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 283064700883501321 +n: 1186816228765136657 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 3664985608137763350 +Random number: 10088363257660580211 All tests has passed with success, the BBS algorithm works. *************** *** Test: 44 *** *************** -Testing p (2075081947) +Testing p (587079539) p is a prime number. The test has succeeded. -Testing q (336699851) +Testing q (190785739) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -1113,23 +1113,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 698679782367689897 +n: 112006403699894321 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 3886841404671927807 +Random number: 8705551320139207316 All tests has passed with success, the BBS algorithm works. *************** *** Test: 45 *** *************** -Testing p (389034707) +Testing p (912977651) p is a prime number. The test has succeeded. -Testing q (1175087759) +Testing q (1435549723) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -1138,23 +1138,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 457149922021851613 +n: 1310624813998240673 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 13858877241405196780 +Random number: 14391965187617846398 All tests has passed with success, the BBS algorithm works. *************** *** Test: 46 *** *************** -Testing p (643553191) +Testing p (1378915207) p is a prime number. The test has succeeded. -Testing q (2025171443) +Testing q (1814326379) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -1163,23 +1163,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 1303305544464724613 +n: 2501802234464345453 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 15592578083494876955 +Random number: 151917767112114142 All tests has passed with success, the BBS algorithm works. *************** *** Test: 47 *** *************** -Testing p (1282664963) +Testing p (16087339) p is a prime number. The test has succeeded. -Testing q (735127559) +Testing q (959364059) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -1188,23 +1188,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 942922363265015317 +n: 15433614841549001 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 3688753342384005117 +Random number: 16701309217384457048 All tests has passed with success, the BBS algorithm works. *************** *** Test: 48 *** *************** -Testing p (560213939) +Testing p (1112516387) p is a prime number. The test has succeeded. -Testing q (1895902559) +Testing q (963717803) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -1213,23 +1213,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 1062111040537569901 +n: 1072151848281137761 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 15174181351431781971 +Random number: 16594448527075584781 All tests has passed with success, the BBS algorithm works. *************** *** Test: 49 *** *************** -Testing p (275933519) +Testing p (477085267) p is a prime number. The test has succeeded. -Testing q (1965771239) +Testing q (1240175099) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -1238,23 +1238,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 542422175526260041 +n: 591669268233166433 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 3194150269311944246 +Random number: 5662724497418130730 All tests has passed with success, the BBS algorithm works. *************** *** Test: 50 *** *************** -Testing p (1748875067) +Testing p (1146089267) p is a prime number. The test has succeeded. -Testing q (1485120583) +Testing q (1847183683) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -1263,23 +1263,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 2597290359097204061 +n: 2117037393263830361 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 9077568236341217776 +Random number: 1881083035982934031 All tests has passed with success, the BBS algorithm works. *************** *** Test: 51 *** *************** -Testing p (1931717387) +Testing p (1489617091) p is a prime number. The test has succeeded. -Testing q (1567628903) +Testing q (1578266083) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -1288,23 +1288,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 3028216008288836461 +n: 2351012131382424553 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 13112189250376598279 +Random number: 3229234527077056485 All tests has passed with success, the BBS algorithm works. *************** *** Test: 52 *** *************** -Testing p (1053979139) +Testing p (83986939) p is a prime number. The test has succeeded. -Testing q (1338468763) +Testing q (772337987) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -1313,23 +1313,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 1410718154405135057 +n: 64866303401551793 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 220052402059302046 +Random number: 15876333448383075159 All tests has passed with success, the BBS algorithm works. *************** *** Test: 53 *** *************** -Testing p (604086139) +Testing p (768489467) p is a prime number. The test has succeeded. -Testing q (1571995171) +Testing q (432438283) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -1338,23 +1338,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 949620493376034769 +n: 332324265613065161 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 15162797506037789927 +Random number: 17022152138161267927 All tests has passed with success, the BBS algorithm works. *************** *** Test: 54 *** *************** -Testing p (134343959) +Testing p (1282489139) p is a prime number. The test has succeeded. -Testing q (1738871723) +Testing q (278707687) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -1363,23 +1363,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 233606911460971357 +n: 357439581533311493 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 11315486520407574506 +Random number: 16043109376372454017 All tests has passed with success, the BBS algorithm works. *************** *** Test: 55 *** *************** -Testing p (732975923) +Testing p (1789627783) p is a prime number. The test has succeeded. -Testing q (689795251) +Testing q (714644251) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -1388,23 +1388,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 505603310782741673 +n: 1278947206550825533 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 14926393054527941861 +Random number: 12994712478335184932 All tests has passed with success, the BBS algorithm works. *************** *** Test: 56 *** *************** -Testing p (1277549519) +Testing p (1377569719) p is a prime number. The test has succeeded. -Testing q (1318089623) +Testing q (1282597787) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -1413,23 +1413,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 1683924763862541337 +n: 1766867873027611853 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 346896177569636605 +Random number: 14765253999123889525 All tests has passed with success, the BBS algorithm works. *************** *** Test: 57 *** *************** -Testing p (1250260511) +Testing p (1856410151) p is a prime number. The test has succeeded. -Testing q (381851471) +Testing q (624234763) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -1438,23 +1438,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 477413815258561681 +n: 1158835750640279213 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 4341140863472009864 +Random number: 12295585541424326342 All tests has passed with success, the BBS algorithm works. *************** *** Test: 58 *** *************** -Testing p (1047915931) +Testing p (1770882583) p is a prime number. The test has succeeded. -Testing q (236202751) +Testing q (293599331) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -1463,23 +1463,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 247520625718926181 +n: 519929941648351973 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 9869727488027642979 +Random number: 13269393401182510844 All tests has passed with success, the BBS algorithm works. *************** *** Test: 59 *** *************** -Testing p (1904159683) +Testing p (1413775091) p is a prime number. The test has succeeded. -Testing q (1519363231) +Testing q (300751219) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -1488,23 +1488,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 2893110208302815773 +n: 425194582010085929 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 1409126215294505774 +Random number: 12505253456243202853 All tests has passed with success, the BBS algorithm works. *************** *** Test: 60 *** *************** -Testing p (1189777679) +Testing p (488479763) p is a prime number. The test has succeeded. -Testing q (107165651) +Testing q (1544168179) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -1513,23 +1513,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 127503299515304029 +n: 754294906110061577 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 14102244630888894812 +Random number: 12566672579278772507 All tests has passed with success, the BBS algorithm works. *************** *** Test: 61 *** *************** -Testing p (1732339043) +Testing p (1232049503) p is a prime number. The test has succeeded. -Testing q (1700708491) +Testing q (1337359459) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -1538,23 +1538,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 2946203719720914113 +n: 1647693056793298877 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 721517442545819259 +Random number: 11920212897314376305 All tests has passed with success, the BBS algorithm works. *************** *** Test: 62 *** *************** -Testing p (214518527) +Testing p (1608169379) p is a prime number. The test has succeeded. -Testing q (2117134823) +Testing q (284752379) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -1563,23 +1563,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 454164643690365721 +n: 457930056505202641 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 2333306839051001258 +Random number: 7565043200348317310 All tests has passed with success, the BBS algorithm works. *************** *** Test: 63 *** *************** -Testing p (1759071163) +Testing p (1790115043) p is a prime number. The test has succeeded. -Testing q (831323099) +Testing q (347359979) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -1588,23 +1588,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 1462356490586694137 +n: 621814323744064097 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 846771185591157999 +Random number: 7543175443583706312 All tests has passed with success, the BBS algorithm works. *************** *** Test: 64 *** *************** -Testing p (2145971123) +Testing p (378069427) p is a prime number. The test has succeeded. -Testing q (1422302347) +Testing q (308097199) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -1613,23 +1613,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 3052219764837125681 +n: 116482131486234973 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 1193785140384230927 +Random number: 10299754098700905224 All tests has passed with success, the BBS algorithm works. *************** *** Test: 65 *** *************** -Testing p (1070024779) +Testing p (349467919) p is a prime number. The test has succeeded. -Testing q (612958399) +Testing q (449244031) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -1638,23 +1638,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 655880675426168821 +n: 156996376636741489 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 4832707365888543349 +Random number: 9628141665462657508 All tests has passed with success, the BBS algorithm works. *************** *** Test: 66 *** *************** -Testing p (2083545671) +Testing p (642825683) p is a prime number. The test has succeeded. -Testing q (98833519) +Testing q (978069199) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -1663,23 +1663,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 205924150662146249 +n: 628728000868437917 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 9595626696188051486 +Random number: 2753985119382138392 All tests has passed with success, the BBS algorithm works. *************** *** Test: 67 *** *************** -Testing p (519049931) +Testing p (242775191) p is a prime number. The test has succeeded. -Testing q (1912804459) +Testing q (2074925947) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -1688,23 +1688,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 992841022460442329 +n: 503740543093780877 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 8219881918818937505 +Random number: 3162519027780636722 All tests has passed with success, the BBS algorithm works. *************** *** Test: 68 *** *************** -Testing p (1873039439) +Testing p (1653397723) p is a prime number. The test has succeeded. -Testing q (334215979) +Testing q (169719743) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -1713,23 +1713,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 625999709810995781 +n: 280614236624345189 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 7648211678046639943 +Random number: 827353608360991949 All tests has passed with success, the BBS algorithm works. *************** *** Test: 69 *** *************** -Testing p (89790131) +Testing p (1988193719) p is a prime number. The test has succeeded. -Testing q (1166550719) +Testing q (1694973547) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -1738,23 +1738,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 104744741877154189 +n: 3369935760016551293 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 7507964773784511783 +Random number: 15106432883590439231 All tests has passed with success, the BBS algorithm works. *************** *** Test: 70 *** *************** -Testing p (1910407127) +Testing p (1540210363) p is a prime number. The test has succeeded. -Testing q (2103270119) +Testing q (389426879) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -1763,23 +1763,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 4018102225343738113 +n: 599799314666547077 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 12491172361638265631 +Random number: 8996709457749345040 All tests has passed with success, the BBS algorithm works. *************** *** Test: 71 *** *************** -Testing p (1305943907) +Testing p (1322338691) p is a prime number. The test has succeeded. -Testing q (86657107) +Testing q (417885947) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -1788,23 +1788,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 113169320884897049 +n: 552586756143275377 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 14765805383615511492 +Random number: 12066069969411043011 All tests has passed with success, the BBS algorithm works. *************** *** Test: 72 *** *************** -Testing p (2020486651) +Testing p (1070915843) p is a prime number. The test has succeeded. -Testing q (1293783811) +Testing q (1593074179) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -1813,23 +1813,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 2614072919405406961 +n: 1706048377365317897 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 12965449523947179495 +Random number: 14109569156669739366 All tests has passed with success, the BBS algorithm works. *************** *** Test: 73 *** *************** -Testing p (1815178007) +Testing p (1564207559) p is a prime number. The test has succeeded. -Testing q (2145702043) +Testing q (1656737843) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -1838,23 +1838,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 3894831158028568301 +n: 2591481857301955237 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 14584847574976847974 +Random number: 1982753747167690043 All tests has passed with success, the BBS algorithm works. *************** *** Test: 74 *** *************** -Testing p (357108047) +Testing p (341156183) p is a prime number. The test has succeeded. -Testing q (1878915503) +Testing q (1175136839) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -1863,23 +1863,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 670975845754352641 +n: 400905198495925537 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 10299579617128130803 +Random number: 11181507315630556633 All tests has passed with success, the BBS algorithm works. *************** *** Test: 75 *** *************** -Testing p (33175543) +Testing p (649027303) p is a prime number. The test has succeeded. -Testing q (1270627903) +Testing q (627030479) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -1888,23 +1888,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 42153770632976329 +n: 406959900684168137 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 6737793881018070427 +Random number: 6464335205368457304 All tests has passed with success, the BBS algorithm works. *************** *** Test: 76 *** *************** -Testing p (973561859) +Testing p (707373911) p is a prime number. The test has succeeded. -Testing q (1560063107) +Testing q (531894659) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -1913,23 +1913,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 1518817938608235913 +n: 376248405176841349 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 4208352199125266249 +Random number: 5145824061719757583 All tests has passed with success, the BBS algorithm works. *************** *** Test: 77 *** *************** -Testing p (1811610623) +Testing p (255500579) p is a prime number. The test has succeeded. -Testing q (1682361983) +Testing q (251894051) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -1938,23 +1938,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 3047784840134145409 +n: 64359075877155529 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 17637965993085316975 +Random number: 16867012418062458346 All tests has passed with success, the BBS algorithm works. *************** *** Test: 78 *** *************** -Testing p (1553287283) +Testing p (50374771) p is a prime number. The test has succeeded. -Testing q (514629539) +Testing q (991817363) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -1963,23 +1963,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 799367518384852537 +n: 49962572534948873 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 2924501982455716823 +Random number: 5743178330746983352 All tests has passed with success, the BBS algorithm works. *************** *** Test: 79 *** *************** -Testing p (514956179) +Testing p (1246407091) p is a prime number. The test has succeeded. -Testing q (1224255863) +Testing q (1204797019) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -1988,23 +1988,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 630438121328827477 +n: 1501667547697261729 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 13174988278447465614 +Random number: 13974504635088043431 All tests has passed with success, the BBS algorithm works. *************** *** Test: 80 *** *************** -Testing p (1151739227) +Testing p (1422853799) p is a prime number. The test has succeeded. -Testing q (1461188039) +Testing q (1817961659) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -2013,23 +2013,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 1682907582539505853 +n: 2586693652944492541 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 8913175046297800422 +Random number: 10868036506116912247 All tests has passed with success, the BBS algorithm works. *************** *** Test: 81 *** *************** -Testing p (1189543711) +Testing p (1969333427) p is a prime number. The test has succeeded. -Testing q (1527327667) +Testing q (574629031) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -2038,23 +2038,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 1816823020916152237 +n: 1131636158872919237 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 3960980301570215022 +Random number: 2235579959119607987 All tests has passed with success, the BBS algorithm works. *************** *** Test: 82 *** *************** -Testing p (1150081279) +Testing p (1668590179) p is a prime number. The test has succeeded. -Testing q (694036243) +Testing q (1467016027) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -2063,23 +2063,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 798198090021794797 +n: 2447848535087798833 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 14667569085532774799 +Random number: 1155842831657356115 All tests has passed with success, the BBS algorithm works. *************** *** Test: 83 *** *************** -Testing p (556142567) +Testing p (385118963) p is a prime number. The test has succeeded. -Testing q (1776411883) +Testing q (1619978579) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -2088,23 +2088,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 987938264660923661 +n: 623884470426693577 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 429925793044673998 +Random number: 9676178475850749874 All tests has passed with success, the BBS algorithm works. *************** *** Test: 84 *** *************** -Testing p (2124047579) +Testing p (621485531) p is a prime number. The test has succeeded. -Testing q (1556588743) +Testing q (41605831) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -2113,23 +2113,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 3306268551067803197 +n: 25857421971731261 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 11427729888976746492 +Random number: 3564829386562429528 All tests has passed with success, the BBS algorithm works. *************** *** Test: 85 *** *************** -Testing p (378050831) +Testing p (1322028119) p is a prime number. The test has succeeded. -Testing q (287727599) +Testing q (518288663) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -2138,23 +2138,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 108775657903584769 +n: 685192186244914897 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 5745548543371826615 +Random number: 14177451596800901487 All tests has passed with success, the BBS algorithm works. *************** *** Test: 86 *** *************** -Testing p (2102144747) +Testing p (22774903) p is a prime number. The test has succeeded. -Testing q (1098970471) +Testing q (761538247) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -2163,23 +2163,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 2310195002720765837 +n: 17343959706215041 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 1855028978865113892 +Random number: 9250143109293964330 All tests has passed with success, the BBS algorithm works. *************** *** Test: 87 *** *************** -Testing p (1185362471) +Testing p (1385478151) p is a prime number. The test has succeeded. -Testing q (1340659871) +Testing q (831344287) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -2188,23 +2188,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 1589167897459101241 +n: 1151809345597173337 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 4037621111696870432 +Random number: 13448128933648397960 All tests has passed with success, the BBS algorithm works. *************** *** Test: 88 *** *************** -Testing p (2103408551) +Testing p (1604918191) p is a prime number. The test has succeeded. -Testing q (1107077087) +Testing q (2132755003) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -2213,23 +2213,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 2328635411411970937 +n: 3422897301260959573 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 5151825807974328064 +Random number: 11717674053483772284 All tests has passed with success, the BBS algorithm works. *************** *** Test: 89 *** *************** -Testing p (56436791) +Testing p (1716271171) p is a prime number. The test has succeeded. -Testing q (816374831) +Testing q (779334539) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -2238,23 +2238,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 46073575714807321 +n: 1337549401850275169 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 11783978799283575889 +Random number: 17075108865693843104 All tests has passed with success, the BBS algorithm works. *************** *** Test: 90 *** *************** -Testing p (971882179) +Testing p (1773471103) p is a prime number. The test has succeeded. -Testing q (2004013003) +Testing q (322426919) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -2263,23 +2263,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 1947664524099973537 +n: 571814823675821657 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 13259462130999234807 +Random number: 3134721090421706909 All tests has passed with success, the BBS algorithm works. *************** *** Test: 91 *** *************** -Testing p (478069847) +Testing p (1914063331) p is a prime number. The test has succeeded. -Testing q (1562541803) +Testing q (261711523) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -2288,23 +2288,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 747004120691314141 +n: 500932429474463113 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 14672021383316906053 +Random number: 17478366167780583979 All tests has passed with success, the BBS algorithm works. *************** *** Test: 92 *** *************** -Testing p (1008141059) +Testing p (1087122671) p is a prime number. The test has succeeded. -Testing q (381645479) +Testing q (201203887) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -2313,23 +2313,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 384752477361622261 +n: 218733307051022177 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 14882128711806518154 +Random number: 13899283396001744109 All tests has passed with success, the BBS algorithm works. *************** *** Test: 93 *** *************** -Testing p (860030363) +Testing p (1466054099) p is a prime number. The test has succeeded. -Testing q (796515527) +Testing q (760756939) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -2338,23 +2338,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 685027537820946301 +n: 1115310828763642961 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 18389027253516702725 +Random number: 4754429133454666342 All tests has passed with success, the BBS algorithm works. *************** *** Test: 94 *** *************** -Testing p (2049082183) +Testing p (1084666607) p is a prime number. The test has succeeded. -Testing q (1830226159) +Testing q (1514867987) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -2363,23 +2363,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 3750283813267425097 +n: 1643126719512210109 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 7442009941150289404 +Random number: 17476302976560975574 All tests has passed with success, the BBS algorithm works. *************** *** Test: 95 *** *************** -Testing p (1606198039) +Testing p (111524579) p is a prime number. The test has succeeded. -Testing q (138698411) +Testing q (445650043) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -2388,23 +2388,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 222777115760616029 +n: 49700933426906897 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 2924094235980787680 +Random number: 16631664084879979486 All tests has passed with success, the BBS algorithm works. *************** *** Test: 96 *** *************** -Testing p (1708175407) +Testing p (1271864507) p is a prime number. The test has succeeded. -Testing q (34620491) +Testing q (892304639) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -2413,23 +2413,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 59137871304464837 +n: 1134890599775547973 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 10357424479518037642 +Random number: 9017860404646902781 All tests has passed with success, the BBS algorithm works. *************** *** Test: 97 *** *************** -Testing p (875153399) +Testing p (625599943) p is a prime number. The test has succeeded. -Testing q (1223076671) +Testing q (569846663) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -2438,23 +2438,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 1070379705863254729 +n: 356496039891540209 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 3415187296543127964 +Random number: 15492535686699351677 All tests has passed with success, the BBS algorithm works. *************** *** Test: 98 *** *************** -Testing p (1743329587) +Testing p (241817987) p is a prime number. The test has succeeded. -Testing q (342527071) +Testing q (1409829383) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -2463,23 +2463,23 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 597137577222749677 +n: 340922103410512021 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 5488241840447651504 +Random number: 7570037514995909479 All tests has passed with success, the BBS algorithm works. *************** *** Test: 99 *** *************** -Testing p (2116664591) +Testing p (1922334691) p is a prime number. The test has succeeded. -Testing q (631948951) +Testing q (1036519051) q is a prime number. The test has succeeded. Testing p congruent 3 modulo 4: @@ -2488,13 +2488,13 @@ p is congruent 3 modulo 4. The test has succeeded. Testing q congruent 3 modulo 4: q is congruent 3 modulo 4. The test has succeeded. -n: 1337623967901294041 +n: 1992536529619698241 Testing seed: The seed test has passed. Testing gcd(seed, n) = 1: gcd (seed, n) = 1. The has passed. -Random number: 20861957979557168 +Random number: 14072438028188244429 All tests has passed with success, the BBS algorithm works. diff --git a/uart.c b/uart.c index 8eeac1c..90bc9f4 100644 --- a/uart.c +++ b/uart.c @@ -60,7 +60,7 @@ static unsigned short csum(unsigned short *buf, int nwords) { int send_uart(struct prng **s_prng){ int fd; - if ((fd = open("/dev/ttyACM0", O_RDWR | O_NOCTTY)) < 0){ + if ((fd = open("/dev/ttyUSB0", O_RDWR | O_NOCTTY)) < 0){ printf("Failed to read the device\n"); exit(-1); } @@ -68,10 +68,15 @@ int send_uart(struct prng **s_prng){ set_serial_device(fd); char buffer[sizeof(struct prng)]; - u_int8_t cmd = 1; + char buf_cmd[sizeof(struct cmd)]; + + struct cmd s_cmd = {0}; + s_cmd.version = CSPRNG_VERS; + s_cmd.cmd = CSPRNG_CMD_GET_RNG; + memcpy(buf_cmd, &s_cmd, sizeof(struct cmd)); //printf("Sending command...\n"); - size_t len = write(fd, &cmd, 1); + size_t len = write(fd, &buf_cmd, sizeof(struct cmd)); //printf("Data sent: %ld\n\n", len); // Read data