Commit graph

49 commits

Author SHA1 Message Date
Adam Ierymenko
b9bf6d1242
Simplification of addRoot/removeRoot, and some code reformatting and other cleanup across multiple files. 2020-05-29 06:30:02 -07:00
Adam Ierymenko
f209037efe
Cleanup, slightly slow down V1 identity generation, faster Salsa20 (by a bit). 2020-05-19 10:13:12 -07:00
Adam Ierymenko
aad21cf395
Blazing fast VAES (256 and 512) AES-CTR, Identity fixes, test fixes. 2020-05-18 16:29:41 -07:00
Adam Ierymenko
d537428421
Build fixes. 2020-05-18 09:44:23 -07:00
Adam Ierymenko
d3777b3eb4
A bunch of boring formattings stuff, etc. 2020-05-14 10:55:41 -07:00
Adam Ierymenko
b533c300d8
A ton more work... almost there 2020-04-28 19:52:09 -07:00
Adam Ierymenko
78d223d709
A bunch more cleanup, remove a ton of reinterpret_cast cruft in favor of a simple union in InetAddress. 2020-04-16 16:01:39 -07:00
Adam Ierymenko
16a3c14c53
A bunch of cleanup and refactoring, implementation of prep for forward secrecy still in progress. 2020-04-13 12:22:08 -07:00
Adam Ierymenko
c65391a344
Add symmetric key container, tons of cleanup. 2020-04-06 16:54:35 -07:00
Adam Ierymenko
7fd78a87d1
Use static_assert more. 2020-03-31 13:45:05 -07:00
Adam Ierymenko
1f85b0402e
Just use unordered_map, and some other cleanup. 2020-03-31 09:01:58 -07:00
Adam Ierymenko
9428fc53f6
A bunch of cleanup, bug fix, just use unordered_map, etc. 2020-03-30 17:28:23 -07:00
Adam Ierymenko
87da45b3f5
Faster hash table, various other optimizations and simplification. 2020-03-28 01:06:29 -07:00
Adam Ierymenko
1f2e94a51d
Some optimization and raw memory access cleanup. 2020-03-27 07:40:14 -07:00
Adam Ierymenko
d3a7468e83
Implement AES-GMAC-SIV and benchmark, rework COM and add a lot of comments and docs, and comments and docs elsewhere too. 2020-03-25 09:05:44 -07:00
Adam Ierymenko
1c7baa544b
Reduce PoW cost just a bit. 2020-03-15 20:14:35 -07:00
Adam Ierymenko
3408839b33
build fix 2020-03-15 20:07:21 -07:00
Adam Ierymenko
cf24ed4108
This PoW seems decent 2020-03-15 14:08:53 -07:00
Adam Ierymenko
8a379ba0a1
The MIMC thing was neat but unfortunately is amenable to too much GPU acceleration. 2020-03-14 20:29:44 -07:00
Adam Ierymenko
4b20638568
more test fixes 2020-03-14 15:27:01 -07:00
Adam Ierymenko
1e457dbd76
Fix tests, fix identity issue 2020-03-14 12:08:40 -07:00
Adam Ierymenko
a20aebaaf8
Some work on delay function... which is delaying us... but need to get it right because its hard as hell to change later. 2020-03-09 15:19:58 -07:00
Adam Ierymenko
24e30a684b
A bunch of little nit-picky header and name cleanup. 2020-03-04 08:16:44 -08:00
Adam Ierymenko
416068f68e
Regularize use of fingerprint concept across code. 2020-03-02 12:09:38 -08:00
Adam Ierymenko
a8db4a8d2d
Minor future proofing and cleanup in CertificateOfMembership, improve comments in a few places. 2020-03-02 10:25:15 -08:00
Adam Ierymenko
6b49148d4e
More cross-platform build fixes and add tests for hton/ntoh/other byte order stuff because breakage there would be annoying. 2020-02-28 11:27:30 -08:00
Adam Ierymenko
6262374205
Add tests for identity marshal/unmarshal and fix an issue found. 2020-02-27 15:40:31 -08:00
Adam Ierymenko
0598315d68
Fix V1 sample ID 2020-02-27 12:59:00 -08:00
Adam Ierymenko
f107a71796
docs, compile fixes. 2020-02-27 11:42:00 -08:00
Adam Ierymenko
fbfa99fac5
Speed up V1 identity verification a little, and add some comments. 2020-02-27 09:43:58 -08:00
Adam Ierymenko
c5bd21a23e
various optimization 2020-02-26 17:00:03 -08:00
Adam Ierymenko
1c7e1da4d1
cleanup, docs 2020-02-26 12:40:29 -08:00
Adam Ierymenko
5cec5fe6b1
Make Fingerprint (a full length identity hash) a first class type 2020-02-26 11:39:18 -08:00
Adam Ierymenko
f20905b08a
Throw some more mulmod52 implementations in there (but currently disabled) for future use so we do not have to hunt them down again. 2020-02-26 11:31:03 -08:00
Adam Ierymenko
83e79e1a1b
V1 identities now use a VDF (verifiable delay function) 2020-02-26 11:08:03 -08:00
Adam Ierymenko
c6a7b5774c
MIMC52 2020-02-26 09:58:28 -08:00
Adam Ierymenko
dcb3d49d35
Cleanup, Address refactoring, tweak V1 identity generation a bit. 2020-02-25 16:08:27 -08:00
Adam Ierymenko
a58f11e601
Tweak protocol getPacketId(), unit tests for defragmenter, AES fix. 2020-02-25 05:36:48 -08:00
Adam Ierymenko
547f39bb49
Fixes for Buf, unit test 2020-02-24 15:40:19 -08:00
Adam Ierymenko
df99f5e3f3
More crypto benchmarks 2020-02-24 14:44:20 -08:00
Adam Ierymenko
5d0c6db19c
Crypto fixes and benchmarks. 2020-02-21 19:32:36 -08:00
Adam Ierymenko
4af3467757
AES-CTR test vectors and fixes to CTR code. 2020-02-21 17:22:26 -08:00
Adam Ierymenko
87890565f3
It builds, and basic stuff and crypto passes tests. 2020-02-21 16:43:12 -08:00
Adam Ierymenko
55b0555aa0
A bunch more build fixes. 2020-02-21 14:46:01 -08:00
Adam Ierymenko
1a2378a3d4
More crypto unit tests. 2020-02-21 12:20:57 -08:00
Adam Ierymenko
c6ce6b46ce
build fixes 2020-02-21 08:44:53 -08:00
Adam Ierymenko
5275a34b0b
more refactoring 2020-02-21 07:11:16 -08:00
Adam Ierymenko
c3b5c45fea
Fix InetAddress sizing by delving into crazy C++ weeds, fix Peer compile issues. 2020-02-20 13:55:09 -08:00
Adam Ierymenko
de1b54821e
Starting to (re)write unit tests. 2020-02-20 12:54:46 -08:00