Lines Matching refs:buffer

52   char buffer[kBufferSize];  in TEST()  local
56 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
57 CHECK_EQ(0, strcmp("0", buffer)); in TEST()
59 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
60 CHECK_EQ(0, strcmp("A", buffer)); in TEST()
62 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
63 CHECK_EQ(0, strcmp("20", buffer)); in TEST()
67 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
68 CHECK_EQ(0, strcmp("0", buffer)); in TEST()
70 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
71 CHECK_EQ(0, strcmp("A", buffer)); in TEST()
73 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
74 CHECK_EQ(0, strcmp("20", buffer)); in TEST()
76 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
77 CHECK_EQ(0, strcmp("100", buffer)); in TEST()
81 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
82 CHECK_EQ(0, strcmp("12345678", buffer)); in TEST()
86 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
87 CHECK_EQ(0, strcmp("FFFFFFFFFFFFFFFF", buffer)); in TEST()
91 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
92 CHECK_EQ(0, strcmp("123456789ABCDEF0", buffer)); in TEST()
95 CHECK(bignum2.ToHexString(buffer, kBufferSize)); in TEST()
96 CHECK_EQ(0, strcmp("123456789ABCDEF0", buffer)); in TEST()
99 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
100 CHECK_EQ(0, strcmp("0", buffer)); in TEST()
103 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
104 CHECK_EQ(0, strcmp("1", buffer)); in TEST()
107 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
108 CHECK_EQ(0, strcmp("499602D2", buffer)); in TEST()
111 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
112 CHECK_EQ(0, strcmp("0", buffer)); in TEST()
115 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
116 CHECK_EQ(0, strcmp("123456789ABCDEF0", buffer)); in TEST()
121 char buffer[kBufferSize]; in TEST() local
125 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
126 CHECK_EQ(0, strcmp("0", buffer)); in TEST()
130 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
131 CHECK_EQ(0, strcmp("2", buffer)); in TEST()
135 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
136 CHECK_EQ(0, strcmp("10", buffer)); in TEST()
140 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
141 CHECK_EQ(0, strcmp("100000000", buffer)); in TEST()
145 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
146 CHECK_EQ(0, strcmp("10000000000000000", buffer)); in TEST()
150 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
151 CHECK_EQ(0, strcmp("123456789ABCDEF0000000000000000", buffer)); in TEST()
153 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
154 CHECK_EQ(0, strcmp("2468ACF13579BDE0000000000000000", buffer)); in TEST()
159 char buffer[kBufferSize]; in TEST() local
163 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
164 CHECK_EQ(0, strcmp("A", buffer)); in TEST()
168 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
169 CHECK_EQ(0, strcmp("B", buffer)); in TEST()
173 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
174 CHECK_EQ(0, strcmp("101", buffer)); in TEST()
178 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
179 CHECK_EQ(0, strcmp("10000", buffer)); in TEST()
183 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
184 CHECK_EQ(0, strcmp("10000000", buffer)); in TEST()
188 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
189 CHECK_EQ(0, strcmp("1000000000000000000000000000000000000000FFFF", buffer)); in TEST()
193 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
194 CHECK_EQ(0, strcmp("100000000000000000000000000000000000000000000", buffer)); in TEST()
199 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
200 CHECK_EQ(0, strcmp("10000000000000000000000001", buffer)); in TEST()
205 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
206 CHECK_EQ(0, strcmp("1000000000000000000000FFFF", buffer)); in TEST()
210 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
211 CHECK_EQ(0, strcmp("A00000000", buffer)); in TEST()
215 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
216 CHECK_EQ(0, strcmp("A00000001", buffer)); in TEST()
220 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
221 CHECK_EQ(0, strcmp("10000000001", buffer)); in TEST()
225 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
226 CHECK_EQ(0, strcmp("FFFF00000001", buffer)); in TEST()
230 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
231 CHECK_EQ(0, strcmp("10FFFFFFF", buffer)); in TEST()
235 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
236 CHECK_EQ(0, strcmp("10000000000000000000000000000000FFFF00000000", buffer)); in TEST()
240 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
241 CHECK_EQ(0, strcmp("1000000000000000000000000000000000000FFFFFFFF", buffer)); in TEST()
246 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
247 CHECK_EQ(0, strcmp("10000000000000000100000000", buffer)); in TEST()
252 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
253 CHECK_EQ(0, strcmp("10000000000000FFFF00000000", buffer)); in TEST()
258 char buffer[kBufferSize]; in TEST() local
265 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
266 CHECK_EQ(0, strcmp("1", buffer)); in TEST()
270 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
271 CHECK_EQ(0, strcmp("2", buffer)); in TEST()
275 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
276 CHECK_EQ(0, strcmp("10000000", buffer)); in TEST()
280 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
281 CHECK_EQ(0, strcmp("100000000000000", buffer)); in TEST()
285 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
286 CHECK_EQ(0, strcmp("10000000000000000000000000000000000000000001", buffer)); in TEST()
292 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
293 CHECK_EQ(0, strcmp("1000000000001", buffer)); in TEST()
297 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
298 CHECK_EQ(0, strcmp("100000FFFFFFF", buffer)); in TEST()
302 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
303 CHECK_EQ(0, strcmp("10000000000000000000000000000001000000000000", buffer)); in TEST()
307 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
308 CHECK_EQ(0, strcmp("1000000000000000000000000000000FFFFFFFFFFFF", buffer)); in TEST()
313 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
314 CHECK_EQ(0, strcmp("10000000000001000000000000", buffer)); in TEST()
321 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
322 CHECK_EQ(0, strcmp("10000000000000000000000000001", buffer)); in TEST()
326 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
327 CHECK_EQ(0, strcmp("1000000000000000000000FFFFFFF", buffer)); in TEST()
331 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
332 CHECK_EQ(0, strcmp("10000000000000010000000000000000000000000000", buffer)); in TEST()
336 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
337 CHECK_EQ(0, strcmp("100000000000000FFFFFFFFFFFFFFFFFFFFFFFFFFFF", buffer)); in TEST()
342 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
343 CHECK_EQ(0, strcmp("10010000000000000000000000000", buffer)); in TEST()
348 char buffer[kBufferSize]; in TEST() local
355 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
356 CHECK_EQ(0, strcmp("1", buffer)); in TEST()
361 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
362 CHECK_EQ(0, strcmp("2", buffer)); in TEST()
367 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
368 CHECK_EQ(0, strcmp("FFFFFFF", buffer)); in TEST()
373 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
374 CHECK_EQ(0, strcmp("FFFFFFFFFFFFFF", buffer)); in TEST()
379 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
380 CHECK_EQ(0, strcmp("10000000000000000000000000000000000000000000", buffer)); in TEST()
385 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
386 CHECK_EQ(0, strcmp("1", buffer)); in TEST()
391 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
392 CHECK_EQ(0, strcmp("FFFFFFF", buffer)); in TEST()
397 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
398 CHECK_EQ(0, strcmp("10000000000000000000000000000000000000000000", buffer)); in TEST()
403 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
404 CHECK_EQ(0, strcmp("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF", buffer)); in TEST()
411 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
412 CHECK_EQ(0, strcmp("FFFFFFFFFFFFF000000000000", buffer)); in TEST()
422 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
423 CHECK_EQ(0, strcmp("F000000000000000000000000", buffer)); in TEST()
432 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
433 CHECK_EQ(0, strcmp("FFFFFFEFFFFFF800000000", buffer)); in TEST()
437 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
438 CHECK_EQ(0, strcmp("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF800000000", buffer)); in TEST()
442 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
443 CHECK_EQ(0, strcmp("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7FFFFFFFF", buffer)); in TEST()
448 char buffer[kBufferSize]; in TEST() local
453 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
454 CHECK_EQ(0, strcmp("0", buffer)); in TEST()
458 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
459 CHECK_EQ(0, strcmp("A", buffer)); in TEST()
463 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
464 CHECK_EQ(0, strcmp("90000000", buffer)); in TEST()
468 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
469 CHECK_EQ(0, strcmp("FFFF00000000000000", buffer)); in TEST()
473 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
474 CHECK_EQ(0, strcmp("FFFFFFFF00000000000000", buffer)); in TEST()
478 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
479 CHECK_EQ(0, strcmp("12333335552433", buffer)); in TEST()
483 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
484 CHECK_EQ(0, strcmp("12345679998A985433", buffer)); in TEST()
488 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
489 CHECK_EQ(0, strcmp("1FFFFFFFFFFFFFFFE", buffer)); in TEST()
493 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
494 CHECK_EQ(0, strcmp("3FFFFFFFFFFFFFFFC", buffer)); in TEST()
498 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
499 CHECK_EQ(0, strcmp("EFFFFFFFFFFFFFFF1", buffer)); in TEST()
503 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
504 CHECK_EQ(0, strcmp("FFFFFEFFFFFFFFFF000001", buffer)); in TEST()
510 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
511 CHECK_EQ(0, strcmp("20000000000000000000000000", buffer)); in TEST()
517 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
518 CHECK_EQ(0, strcmp("F0000000000000000000000000", buffer)); in TEST()
524 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
525 CHECK_EQ(0, strcmp("FFFE00010000000000000000000000000", buffer)); in TEST()
531 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
532 CHECK_EQ(0, strcmp("FFFEFFFF00010000000000000000000000000", buffer)); in TEST()
538 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
539 CHECK_EQ(0, strcmp("FFFEFFFF00010000000000000000000000000", buffer)); in TEST()
543 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
544 CHECK_EQ(0, strcmp("210EDD6D4CDD2580EE80", buffer)); in TEST()
549 char buffer[kBufferSize]; in TEST() local
554 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
555 CHECK_EQ(0, strcmp("0", buffer)); in TEST()
559 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
560 CHECK_EQ(0, strcmp("A", buffer)); in TEST()
564 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
565 CHECK_EQ(0, strcmp("90000000", buffer)); in TEST()
569 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
570 CHECK_EQ(0, strcmp("FFFF00000000000000", buffer)); in TEST()
574 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
575 CHECK_EQ(0, strcmp("FFFFFFFFFFFFFFFF00000000000000", buffer)); in TEST()
579 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
580 CHECK_EQ(0, strcmp("12333335552433", buffer)); in TEST()
584 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
585 CHECK_EQ(0, strcmp("1234567ABCBDCBA985433", buffer)); in TEST()
589 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
590 CHECK_EQ(0, strcmp("1FFFFFFFFFFFFFFFE", buffer)); in TEST()
594 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
595 CHECK_EQ(0, strcmp("3FFFFFFFFFFFFFFFC", buffer)); in TEST()
599 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
600 CHECK_EQ(0, strcmp("EFFFFFFFFFFFFFFF1", buffer)); in TEST()
604 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
605 CHECK_EQ(0, strcmp("FFFFFFFFFFFFFFFE0000000000000001", buffer)); in TEST()
611 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
612 CHECK_EQ(0, strcmp("20000000000000000000000000", buffer)); in TEST()
618 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
619 CHECK_EQ(0, strcmp("F0000000000000000000000000", buffer)); in TEST()
625 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
626 CHECK_EQ(0, strcmp("FFFE00010000000000000000000000000", buffer)); in TEST()
632 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
633 CHECK_EQ(0, strcmp("FFFEFFFF00010000000000000000000000000", buffer)); in TEST()
639 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
640 CHECK_EQ(0, strcmp("FFFEFFFFFFFFFFFF00010000000000000000000000000", buffer)); in TEST()
644 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
645 CHECK_EQ(0, strcmp("1E10EE4B11D15A7F3DE7F3C7680000", buffer)); in TEST()
650 char buffer[kBufferSize]; in TEST() local
655 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
656 CHECK_EQ(0, strcmp("3034", buffer)); in TEST()
660 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
661 CHECK_EQ(0, strcmp("1E208", buffer)); in TEST()
665 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
666 CHECK_EQ(0, strcmp("12D450", buffer)); in TEST()
670 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
671 CHECK_EQ(0, strcmp("BC4B20", buffer)); in TEST()
675 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
676 CHECK_EQ(0, strcmp("75AEF40", buffer)); in TEST()
680 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
681 CHECK_EQ(0, strcmp("498D5880", buffer)); in TEST()
685 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
686 CHECK_EQ(0, strcmp("2DF857500", buffer)); in TEST()
690 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
691 CHECK_EQ(0, strcmp("1CBB369200", buffer)); in TEST()
695 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
696 CHECK_EQ(0, strcmp("11F5021B400", buffer)); in TEST()
700 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
701 CHECK_EQ(0, strcmp("B3921510800", buffer)); in TEST()
705 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
706 CHECK_EQ(0, strcmp("703B4D2A5000", buffer)); in TEST()
710 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
711 CHECK_EQ(0, strcmp("4625103A72000", buffer)); in TEST()
715 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
716 CHECK_EQ(0, strcmp("2BD72A24874000", buffer)); in TEST()
720 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
721 CHECK_EQ(0, strcmp("1B667A56D488000", buffer)); in TEST()
725 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
726 CHECK_EQ(0, strcmp("11200C7644D50000", buffer)); in TEST()
730 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
731 CHECK_EQ(0, strcmp("AB407C9EB0520000", buffer)); in TEST()
735 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
736 CHECK_EQ(0, strcmp("6B084DE32E3340000", buffer)); in TEST()
740 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
741 CHECK_EQ(0, strcmp("42E530ADFCE0080000", buffer)); in TEST()
745 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
746 CHECK_EQ(0, strcmp("29CF3E6CBE0C0500000", buffer)); in TEST()
750 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
751 CHECK_EQ(0, strcmp("1A218703F6C783200000", buffer)); in TEST()
755 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
756 CHECK_EQ(0, strcmp("1054F4627A3CB1F400000", buffer)); in TEST()
760 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
761 CHECK_EQ(0, strcmp("A3518BD8C65EF38800000", buffer)); in TEST()
765 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
766 CHECK_EQ(0, strcmp("6612F7677BFB5835000000", buffer)); in TEST()
770 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
771 CHECK_EQ(0, strcmp("3FCBDAA0AD7D17212000000", buffer)); in TEST()
775 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
776 CHECK_EQ(0, strcmp("27DF68A46C6E2E74B4000000", buffer)); in TEST()
780 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
781 CHECK_EQ(0, strcmp("18EBA166C3C4DD08F08000000", buffer)); in TEST()
785 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
786 CHECK_EQ(0, strcmp("F9344E03A5B0A259650000000", buffer)); in TEST()
790 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
791 CHECK_EQ(0, strcmp("9BC0B0C2478E6577DF20000000", buffer)); in TEST()
795 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
796 CHECK_EQ(0, strcmp("61586E796CB8FF6AEB740000000", buffer)); in TEST()
800 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
801 CHECK_EQ(0, strcmp("3CD7450BE3F39FA2D32880000000", buffer)); in TEST()
805 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
806 CHECK_EQ(0, strcmp("26068B276E7843C5C3F9500000000", buffer)); in TEST()
810 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
811 CHECK_EQ(0, strcmp("149D1B4CFED03B23AB5F4E1196EF45C08000000000000", buffer)); in TEST()
815 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
820 buffer)); in TEST()
824 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
830 buffer)); in TEST()
834 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
844 buffer)); in TEST()
848 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
865 buffer)); in TEST()
877 CHECK(bignum2.ToHexString(buffer, kBufferSize)); in TEST()
888 buffer)); in TEST()
892 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
902 buffer)); in TEST()
906 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
916 buffer)); in TEST()
920 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
930 buffer)); in TEST()
934 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
944 buffer)); in TEST()
948 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
959 buffer)); in TEST()
963 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
975 buffer)); in TEST()
979 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
992 buffer)); in TEST()
996 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
1013 buffer)); in TEST()
1018 char buffer[kBufferSize]; in TEST() local
1026 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
1027 CHECK_EQ(0, strcmp("0", buffer)); in TEST()
1034 CHECK_EQ(0, strcmp("0", buffer)); in TEST()
1039 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
1040 CHECK_EQ(0, strcmp("1", buffer)); in TEST()
1049 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
1050 CHECK_EQ(0, strcmp("1", buffer)); in TEST()
1059 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
1060 CHECK_EQ(0, strcmp("FFF", buffer)); in TEST()
1065 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
1066 CHECK_EQ(0, strcmp("A", buffer)); in TEST()
1071 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
1072 CHECK_EQ(0, strcmp("D9861E", buffer)); in TEST()
1077 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
1078 CHECK_EQ(0, strcmp("10000004", buffer)); in TEST()
1083 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
1084 CHECK_EQ(0, strcmp("2BF41C0", buffer)); in TEST()
1093 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
1094 CHECK_EQ(0, strcmp("1232DCC", buffer)); in TEST()
1096 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
1097 CHECK_EQ(0, strcmp("1232DCC", buffer)); in TEST()
1399 char buffer[kBufferSize]; in TEST() local
1403 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
1404 CHECK_EQ(0, strcmp("1", buffer)); in TEST()
1408 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
1409 CHECK_EQ(0, strcmp("4", buffer)); in TEST()
1413 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
1414 CHECK_EQ(0, strcmp("64", buffer)); in TEST()
1418 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
1419 CHECK_EQ(0, strcmp("FFFFFFE0000001", buffer)); in TEST()
1423 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
1424 CHECK_EQ(0, strcmp("FFFFFFFFFFFFFE00000000000001", buffer)); in TEST()
1430 char buffer[kBufferSize]; in TEST() local
1433 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
1434 CHECK_EQ(0, strcmp("1", buffer)); in TEST()
1437 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
1438 CHECK_EQ(0, strcmp("1", buffer)); in TEST()
1441 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
1442 CHECK_EQ(0, strcmp("1", buffer)); in TEST()
1445 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
1446 CHECK_EQ(0, strcmp("1", buffer)); in TEST()
1449 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
1450 CHECK_EQ(0, strcmp("2", buffer)); in TEST()
1453 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
1454 CHECK_EQ(0, strcmp("4", buffer)); in TEST()
1457 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
1458 CHECK_EQ(0, strcmp("10", buffer)); in TEST()
1461 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
1462 CHECK_EQ(0, strcmp("100", buffer)); in TEST()
1465 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
1466 CHECK_EQ(0, strcmp("100000", buffer)); in TEST()
1469 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
1470 CHECK_EQ(0, strcmp("100000000", buffer)); in TEST()
1473 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
1474 CHECK_EQ(0, strcmp("10000000000000000", buffer)); in TEST()
1477 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
1478 CHECK_EQ(0, strcmp("1000000000000000000000000000000", buffer)); in TEST()
1481 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
1482 CHECK_EQ(0, strcmp("1", buffer)); in TEST()
1485 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
1486 CHECK_EQ(0, strcmp("A", buffer)); in TEST()
1489 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
1490 CHECK_EQ(0, strcmp("64", buffer)); in TEST()
1493 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
1494 CHECK_EQ(0, strcmp("186A0", buffer)); in TEST()
1497 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
1498 CHECK_EQ(0, strcmp("5F5E100", buffer)); in TEST()
1501 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
1502 CHECK_EQ(0, strcmp("2386F26FC10000", buffer)); in TEST()
1505 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
1506 CHECK_EQ(0, strcmp("C9F2C9CD04674EDEA40000000", buffer)); in TEST()
1509 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
1510 CHECK_EQ(0, strcmp("7E37BE2022C0914B2680000000", buffer)); in TEST()
1513 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
1514 CHECK_EQ(0, strcmp("1", buffer)); in TEST()
1517 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
1518 CHECK_EQ(0, strcmp("10000000000000000000000000", buffer)); in TEST()
1521 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
1522 CHECK_EQ(0, strcmp("1", buffer)); in TEST()
1525 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
1529 buffer)); in TEST()
1532 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
1541 buffer)); in TEST()