Commit Graph

20 Commits

Author SHA1 Message Date
f9b25ab03a Add lowercase hex formatting. 2018-03-25 20:18:13 -07:00
d53cdb6c97 And, or, and xor. 2018-03-25 20:14:25 -07:00
a595eb349d Negation. 2018-03-24 16:00:02 -07:00
03765c2ff6 Shrink to clean. 2018-03-24 15:56:02 -07:00
edd7c7fee3 Add a shrink function to clean up 0s at the end of numbers. 2018-03-24 13:06:50 -07:00
6b9783c69a Comparisons! 2018-03-24 12:03:29 -07:00
9c4ea7ae26 Start working variable-length numbers. 2018-03-23 22:12:34 -07:00
7a8bb7b4fd Nevermind on the whole fixed size thing? 2018-03-23 22:11:09 -07:00
667e32694e Start including both signed and unsigned numbers, and starting building in Signed traits.
The latter seems much harder (and wordier) than it should be.
2018-03-11 17:46:22 -07:00
8a8c85703a Start staging some extended math functionality, including primality bits. 2018-03-11 15:35:49 -07:00
0698272b2c Add bitsize/bytesize trait functions. 2018-03-11 15:34:18 -07:00
716a165007 Remove the divmod()-based tests. 2018-03-11 15:33:57 -07:00
ded93767ed Split the CryptoNum trait into pieces, in preparation for negative numbers. 2018-03-10 18:04:56 -08:00
4b90550225 Add support for Barrett reduction, which should be a faster way to do mods. 2018-03-10 17:20:33 -08:00
f3d4b102c0 Serialization for cryptonums. 2018-03-06 19:22:57 -08:00
f89e3e5ca4 Ignore the identity tests for now, because they take longer than anything else. 2018-03-06 19:00:16 -08:00
67a3ac61d3 Probably foolish forcing of inlining. 2018-03-06 18:45:43 -08:00
17c21fec70 Macro-ize these, and generate versions for all the RSA sizes. 2018-03-06 18:41:05 -08:00
a7fa5dd9f9 Finish shifting out primitives, and add division/modulo. 2018-03-05 18:25:20 -10:00
2cc8702f4d Start shifting stuff the actual math out into another file. 2018-03-01 12:27:15 -08:00