# BIG ARITHMETICS # BIGdiv = BIGmul/BIGsum. BIGdivmod = (BIG1/0ED5066C6815047425DF 2(mod E186EB30EF)) #test1 - BIG1 > BIG2 BIG1 = 2758F22ABFE4085C27F2691BEBB75D7EF7BF4F9D441AD5CFC2AC3956748C1407 BIG2 = 09A52FE465983AEA1FBE357D9238C11CBD0F1557248E24B9247DA6AF3D51FF8D BIGsum = 30FE220F257C434647B09E997DF01E9BB4CE64F468A8FA88E729E005B1DE1394 BIGsub = 1DB3C2465A4BCD720834339E597E9C623AB03A461F8CB1169E2E92A7373A147A BIG1mod2 = C4329929831CB3A8F99325A2D4590C0382FA40B1E242EB30B59E997F4415D3 BIG2mod1 = 09A52FE465983AEA1FBE357D9238C11CBD0F1557248E24B9247DA6AF3D51FF8D BIGmul = 017B84340597B6FB2F909526D24A91684871948A0A24D06C6D313D6C46D2C63E974F422047CB3844FF059E80B87997DC8EFEEB125252AA71C8422E96BA5100DB BIG1sqr = 060C38B068F0414079FE5C0A974FF7ABC235E057EB69CBD7536065324957288716E31984C1C8A88A14A6994FF32F20895E110C337EF09100697FD18041391831 BIG2sqr = 5D07F4D48553736D24ACA6EB3A92AF16BC076CD1279E9174D2E546C009716BCFF733C540E3590E6E0C6BC637B339649385B1C055B7AF3873E86CD2E85433A9 BIG1sqrmod2 = 08A7778730B044D458C7C0B6694090F28967DF88A91DE735A776E791956B1466 BIG1modneg2 = 08E0FD4B3C151E3676C4A257EF646810B98C1B1672ABE1CDF3C80815BE0DE9BA nbitBIG = 254 nbitDBIG = 505 BIGdiv = 07BF132653B07B8718FFBA9CFE8F4204BC042A04BD61F58158CF0E8EE48593A3 BIGdivmod = 8D5A4917A1 BIGpxmul = 4D9E75B65488D47DCACD315813FCB76F76B8640D3B58EFC6D705BD1B8BE85381CF #test2 - BIG1 > BIG2 BIG1 = 5B65D5E15780D15834E803B5A9E2F0B6825D7E9F637FE063BA691C146BB927D4 BIG2 = 13E89BA52E7204DAE259E1AB236A6B2DFA3F9FD72924253E6C6D34643DAA7A6E BIGsum = 6F4E718685F2D6331741E560CD4D5BE47C9D1E768CA405A226D65078A963A242 BIGsub = 477D3A3C290ECC7D528E220A86788588881DDEC83A5BBB254DFBE7B02E0EAD66 BIG1mod2 = 0BC3674C9DB8BDECAB807D091C3943FE995EFF42BEEF4B6A08B44A83750F3E1C BIG2mod1 = 13E89BA52E7204DAE259E1AB236A6B2DFA3F9FD72924253E6C6D34643DAA7A6E BIGmul = 071B9ABB2F6D280321964273EB05101A3B7787DA10B4713987FDCF727BA659635381AEC60F640AA2D440852427C46A8BF3C135B09BD72904C975125E7D522518 BIG1sqr = 20A18E90AAB562712FEC45E9217DF58C65CE8E2A9A128416527E45DE4A1C582934E1B81BC8A398E4999369FE44845AE5A0FC9C208B9DB2EC3EE0E655CE9A4790 BIG2sqr = 018C5A74FEEA8C34439C173008F597A930DD2739C1970A588BFB881957ED7757DB1798DA09F0C62CE1962B0B7D5D68BB8E7AE9190D04540E8F7305CF40A50744 BIG1sqrmod2 = 018F360F8AB380B1A4D89614962E236DF2562B99625886999B73FEB6CAE17620 BIG1modneg2 = 0825345890B946EE36D964A20731272F60E0A0946A34D9D463B8E9E0C89B3C52 nbitBIG = 255 nbitDBIG = 507 BIGdiv = 1059032365BB22D7F2DADAE410A227CF0628BEA1E99D6FF0617541A7E1684DDF BIGdivmod = DCE764B378 BIGpxmul = B502AE95484C1E99B0C77F58C77472B9742F29C5AA0E4165822E2A9C7157B1E0DC #test3 - BIG1 > BIG2 - note nbitDBIG are zero even if they should be 1 BIG1 = 01 BIG2 = 00 BIGsum = 01 BIGsub = 01 BIG2mod1 = 00 BIGmul = 0 BIG1sqr = 01 BIG2sqr = 00 nbitBIG = 1 nbitDBIG = 0 BIGdivmod = 0F2B0509A7 BIGpxmul = 00 #test4 - BIG1 = BIG2 = 0 - note nbitBIG and nbitDBIG are zero even if they should be 1 BIG1 = 00 BIG2 = 00 BIGsum = 00 BIGsub = 00 Bigmul = 0 BIG1sqr = 00 BIG2sqr = 00 nbitBIG = 0 nbitDBIG = 0 BIGdivmod = 00 BIGpxmul = 00 #test5 - BIG1 = BIG2 BIG1 = 9A02DBD0546B24961DE8BF0F6333CBCA BIG2 = 9A02DBD0546B24961DE8BF0F6333CBCA BIGsum = 013405B7A0A8D6492C3BD17E1EC6679794 BIGsub = 00 BIG1mod2 = 00 BIG2mod1 = 00 BIGmul = 5CA7707ED19053A9C8DF45786F0AF91C5FF0781C13D521B932BA67C510B5FB64 BIG1sqr = 5CA7707ED19053A9C8DF45786F0AF91C5FF0781C13D521B932BA67C510B5FB64 BIG2sqr = 5CA7707ED19053A9C8DF45786F0AF91C5FF0781C13D521B932BA67C510B5FB64 BIG1sqrmod2 = 00 BIG1modneg2 = 00 nbitBIG = 128 nbitDBIG = 255 BIGdiv = 4D016DE82A35924B0EF45F87B199E5E5 BIGdivmod = 529E275744 BIGpxmul = 9968D8F48416B97187CAD65053D097FE36 #test6 - BIG1 > BIG2 BIG1 = 4243E02F90FEAC8871DDF63782501CBB4F14E79163478A0866B84677FB4B9886 BIG2 = 6C70C69640A9780437765316C6E8E9A3 BIGsum = 4243E02F90FEAC8871DDF63782501CBBBB85AE27A3F1020C9E2E998EC2348229 BIGsub = 4243E02F90FEAC8871DDF63782501CBAE2A420FB229E12042F41F3613462AEE3 BIG1mod2 = 3E0DF47DDAEEFF43BCB6E52A3B2E08F3 BIG2mod1 = 6C70C69640A9780437765316C6E8E9A3 BIGmul = 1C11D3AD89E1DC24C68D7AECA43A5902F345B21FB461C569EF67BE28D052AD3B5049BDD94C5B5FD5FB46D41AAC641352 BIG1sqr = 11271197A3FC7CD8E7B3ADF611C45C5C249B20B5AE496D2F9BF3DA0274631B308CA087021A89D1A6A72BD1EB6BDAFAE0C57396EC6F9D503EF6FE67FD7D636624 BIG2sqr = 2DEF593D241455C28F10B491BC838325261D04EF08F557353E58F75470AA1DC9 BIG1sqrmod2 = 0AA31743C002DD47C68BEB280F850346 BIG1modneg2 = 2E62D21865BA78C07ABF6DEC8BBAE0B0 nbitBIG = 255 nbitDBIG = 381 BIGdiv = 6C70C69640A9780437765316C6E8E9A2 BIGdivmod = 227433B35A BIGpxmul = 629F04A6CACB06C7117757709CF13AC2C4B21CA360C1786E80E040E090FF81FF6E #test7 - BIG1 = 25*BIG2 BIG1 = 391A983B9C4FA108AF519F10C880E6F2DAC6A1B605AB055F2F2543 BIG2 = 0248BE68C8CFFC338C21FC1F642E1DB7CB4FA0118558C2C65E0BBB BIGsum = 3B6356A4651F9D3C3B739B302CAF04AAA61641C78B03C8258D30FE BIGsub = 36D1D9D2D37FA4D5232FA2F16452C93B0F7701A480524298D11988 BIG1mod2 = 00 BIG2mod1 = 0248BE68C8CFFC338C21FC1F642E1DB7CB4FA0118558C2C65E0BBB BIGmul = 826F246491D7934D688BB498761E8E736017D5A1BFD6C573D127B38E152F0AEDF8D18E7329E5A281DB61CB41EF4D6CD6EB0EA418F1 BIG1sqr = 0CBCDA8DD23E0D628F35A4A2E388FBE9446253DCCBBBF9484F6CE088E01198113D4C76E93F176CDEAE6C8CD9705E8FA0FCF46E066F89 BIG2sqr = 0537A54BB3E9E72C0E6BFCFBDBC3C8420E156EF1FD6EFDA87901968ACDA5B8C1D6C0B3C72AA2C90F6F2CDF2B98EE9DF41DE1DD9A99 BIG1sqrmod2 = 00 BIG1modneg2 = 00 nbitBIG = 214 nbitDBIG = 424 BIGdiv = 023240EE99B44B1DDF5BC131E053BA1D086A19E9765F316FF7F796 BIGdivmod = 8C384690FB BIGpxmul = 5E940C22BAE3E2B6625F2F73CC157E823A58FBD5796340E5A615B6F8