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 73d8a7f..e937eaa 100755 Binary files a/main and b/main differ 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