Commit graph

5378 commits

Author SHA1 Message Date
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
27ab88db1e
little stuff 2020-02-25 16:21:51 -08:00
Adam Ierymenko
1b71b6d01a
hash() -> fingerprint() 2020-02-25 16:15:14 -08:00
Adam Ierymenko
dcb3d49d35
Cleanup, Address refactoring, tweak V1 identity generation a bit. 2020-02-25 16:08:27 -08:00
Adam Ierymenko
5c14a072d5
rename 2020-02-25 06:03:24 -08:00
Adam Ierymenko
4eb491065b
clean out old files 2020-02-25 06:03:04 -08:00
Adam Ierymenko
b87e8d8e41
readability++ 2020-02-25 06:00:52 -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
15e88a8b7e
MOAR AES V-TEC 2020-02-24 13:53:50 -08:00
Adam Ierymenko
61b72d42b8
More AES tweaks 2020-02-24 13:30:35 -08:00
Adam Ierymenko
56bf504ec2
Small AES tweak 2020-02-24 12:48:56 -08:00
Adam Ierymenko
1f02250dd8
Ridiculously fast AES-CTR 2020-02-24 11:56:37 -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
d603a73715
Build fixes. 2020-02-21 15:58:28 -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
f109f2e612
Identity v1 hash tweak 2020-02-21 08:10:43 -08:00
Adam Ierymenko
8f8e3f4960
OS/platform include cleanup 2020-02-21 08:01:58 -08:00
Adam Ierymenko
1d885cf810
Build fixes, put uint128_t detection in one place. 2020-02-21 07:25:43 -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
565a686be7
include cleanup 2020-02-20 13:25:56 -08:00
Adam Ierymenko
12cfb6501d
Cleanup in ECC384 including const-correctness, etc. 2020-02-20 13:11:51 -08:00
Adam Ierymenko
de1b54821e
Starting to (re)write unit tests. 2020-02-20 12:54:46 -08:00
Adam Ierymenko
320c8429c2
Yet more perf, security hardening, and compile fix tweaks. 2020-02-20 09:33:11 -08:00
Adam Ierymenko
a4e24c8390
Build fixes 2020-02-19 11:32:16 -08:00
Adam Ierymenko
0589964f99
Yet more cleanup, and add meters to paths. 2020-02-19 11:06:05 -08:00
Adam Ierymenko
1affb6814c
A little more cleanup and build fixes. 2020-02-19 10:32:02 -08:00
Adam Ierymenko
b70ab0d354
Include file cleanup, docs, and build fixes. 2020-02-19 10:18:52 -08:00
Adam Ierymenko
4a9266feef
Comment out not-yet-refactored code in Network 2020-02-19 09:42:11 -08:00
Adam Ierymenko
1e0a930d23
Create a container for identity hashes, replace some "volatile" hacky junk with std::atomic, clean up some security checks, rename raw data in Buf to unsafeData to permit search for unsafe. 2020-02-19 09:28:18 -08:00
Adam Ierymenko
46d3780e89
AES stuff, port sending network credentials to new packet format. 2020-02-18 17:17:10 -08:00
Adam Ierymenko
311c98e24e
Various other small things. 2020-02-18 14:20:49 -08:00
Adam Ierymenko
9ad8dd3700
Add Peer method for getting preferred cipher, various cleanup in VL1 2020-02-18 12:38:48 -08:00
Adam Ierymenko
0dc476518b
Documentation changes, and move HMAC auth on HELLO to before object decoding since this is good cryptographic practice. 2020-02-18 10:31:31 -08:00
Adam Ierymenko
8c8a3c58ec
Various little things... 2020-02-18 06:33:31 -08:00
Adam Ierymenko
a0ac4a744e
Change the type 1 identity a bit to make locallyValidate() super fast, eliminating a scaling issue with v0. 2020-02-17 15:09:26 -08:00
Adam Ierymenko
3448e6fc76
Yet MORE refactoring, including moving expected-reply-to out of Node and into its own class for cleanliness. 2020-02-14 14:12:42 -08:00
Adam Ierymenko
e5c7366e71
Yet more minor refactoring and redesign Meter to be more thread-safe. 2020-02-14 11:34:47 -08:00
Adam Ierymenko
e236d6f743
More minor refactoring 2020-02-14 10:19:45 -08:00
Adam Ierymenko
5db0d9438c
More built-in AES and GMAC primitive work. 2020-02-14 09:05:48 -08:00
Adam Ierymenko
08e06f9b8f
More refactoring and a bunch of AES goodness. 2020-02-13 14:44:18 -08:00
Adam Ierymenko
018fe04163
More nit-picky refactoring. 2020-02-12 14:14:31 -08:00