4ae957aac6
Preliminary support for generating test vectors.
Adam Wick2019-08-15 20:24:04 -07:00
f4a3cf69ad
Add some more serialization quickchecks.
Adam Wick2019-08-04 16:54:34 -07:00
d7665acf64
Add a bunch of QuickCheck properties for binary operators.
Adam Wick2019-07-30 18:24:49 -07:00
1d8907539d
Get back to basics, with some basic tests working.
Adam Wick2019-07-30 16:23:14 -07:00
203c23e277
Add from_bytes() and to_bytes() to CryptoNum, and do a basic implementation of from_bytes().
Adam Wick2019-07-23 21:05:20 -07:00
aff88eb2f0
Support a more complete (and simple) requirements gathering mechanism, and add support for binary operations.
Adam Wick2019-07-22 08:14:40 -07:00
fa872c951a
Start experimenting with full generation of all of the numeric types.
Adam Wick2019-07-15 17:39:06 -07:00
666378b14b
Add support for bitwise and and or on unsigned numbers.
master
Adam Wick2019-05-27 21:41:05 -07:00
83ed5bc0ba
Remove an unnecessary #[macro_use]
Adam Wick2019-05-14 21:49:24 -07:00
cac39b0e50
Always generate Arbitrary instances, not just with cfg(test)
Adam Wick2019-04-03 19:47:07 -07:00
037413ad15
Start tracking the TODO list.
Adam Wick2019-02-11 16:36:11 -05:00
fbee1f2729
Add modular multiplication suppor for U384 and U576.
Adam Wick2019-02-11 12:34:59 -08:00
2d70341a58
Remove a cabal config file that seems to have been accidentally captured.
Adam Wick2019-02-10 17:43:05 -08:00
d49c85538c
Remove a bunch of test data we don't appear to be using.
Adam Wick2019-02-10 17:41:41 -08:00
10b70139f2
Some additional helpers for ECDSA signing.
Adam Wick2019-02-04 17:23:45 -08:00
2d863c1907
Add support for directly defining unsigned values.
Adam Wick2019-02-04 17:23:27 -08:00
d189331312
Try to simplify the multiplication loop, to get better optimization, and add a bunch of missing test cases.
Adam Wick2019-01-30 20:34:38 -08:00
56fb154c90
Fix the QuickCheck logic for back conversion.
Adam Wick2019-01-08 09:48:28 -08:00
3b0e2a84d9
Support for squaring of signed numbers.
Adam Wick2019-01-08 09:48:11 -08:00
c5fa23c4bd
Fix the requirements for ECDSA math.
Adam Wick2019-01-08 09:47:47 -08:00
4114db21be
Add support for scaling numbers by primitive types.
Adam Wick2019-01-01 20:50:09 -08:00
69312c6a42
Update moddiv to use the new signed operators.
Adam Wick2019-01-01 20:48:48 -08:00
6268491168
Extra little conversion check.
Adam Wick2019-01-01 20:47:40 -08:00
89e2dfc6ef
Base implementation of signed numbers and EGCD, with tests.
Adam Wick2018-10-15 19:16:25 -07:00
d43f0bcd42
Add the ability to ignore tests, so that day-to-day testing only takes a little while.
Adam Wick2018-10-08 20:34:36 -07:00
a251b7a294
Generate better tests, with fewer repeating results.
Adam Wick2018-10-08 20:32:51 -07:00
24ad31df0d
Barrett versions of modsq/modmul/modexp, with tests.
Adam Wick2018-10-04 20:52:41 -07:00
fe43949684
Fix an issue in Barrett reduction.
Adam Wick2018-10-04 20:00:46 -07:00
78750598a5
Basic mathematics for unsigned integers ported over, tests pass.
Adam Wick2018-10-04 10:40:11 -07:00
3678ffdd6c
Be a little bit more careful about what items we do and don't include, start adding modular math into the system.
Adam Wick2018-10-02 13:37:39 -07:00
19a298e56c
Barrett reduction! And number formatting.
Adam Wick2018-09-28 18:46:01 -05:00
304d009a67
Now with tests for the basic algorithms.
Adam Wick2018-09-28 17:48:35 -05:00