zzz
a6536ea48a
Crypto: Fix equality checking of ECParameterSpecs for private keys too
...
see earlier checkin for public keys
2022-06-21 09:43:16 -04:00
zzz
9aa9f7a714
SSU2: Fix swapped dest/src conn IDs for peer test
2022-06-20 15:19:09 -04:00
zzz
723257d6ef
SSU2: First fragments can be 5 bytes larger than followon fragments
2022-06-20 12:05:45 -04:00
zzz
c5323a8d36
SSU2: Fix overhead calculation for followon fragments
...
so as not to exceed MTU
2022-06-20 07:37:05 -04:00
zzz
67082463e4
Util: HostTxtParser CLI improvements
2022-06-19 12:07:23 -04:00
zzz
b3072d9ef3
SSU: PeerState _remotePeer cannot be null
2022-06-19 12:05:39 -04:00
zzz
3c4956f0c3
SSU2: Add delayed lookup of RI for relay and peer test
...
Prefer SSU2 introducers for slots 1 and 2
log tweaks
2022-06-19 12:04:10 -04:00
zzz
d69a65605d
SSU2: Don't delete empty ipv6 address at startup
...
Needed for SSU2 handshakes
2022-06-19 12:01:44 -04:00
zzz
2bf7d5ddea
Util: New UnmodifiableSortedSet based on ArraySet
...
use in OrderedProperties
2022-06-17 13:07:22 -04:00
zzz
c2edd7e926
SusiDNS: Fix classloading on Java 11+
...
Caused SusiDNS and addressbook to be in a different context
addressbook config would be stored in base dir
and subscriptions would not load because it couldn't find i2ptunnel
2022-06-17 12:52:36 -04:00
zzz
ed1e705d35
Crypto: Fix equality checking of ECParameterSpecs
...
in SigUtil.fromJavaKey()
as the class does not define equals().
Affects Android family key loading where the class does not match our class.
Tested via unit test to compare provider class sun.security.util.NamedCurve
to our class java.security.spec.ECParameterSpec, untested on Android.
Add conversion test to CertUtil loadcert CLI.
ref: http://zzz.i2p/topics/3328
ref: i2p.android.base gitlab ticket #47
2022-06-17 10:34:34 -04:00
zzz
fa145ff7c5
Util: ArraySet improvements
...
Was never used; prep for actual usage
Move from router to core
Add Set constructors that are more efficient
Add addUnique() method
Allow size of set passed in constructors
Prepare for extension
javadocs
2022-06-17 10:21:15 -04:00
zzz
7610b3842f
SSU2: Hole punch processing
...
Validate and process hole punch payload
Send session request immediately after receiving hole punch
Remove some unused code
Log tweaks
2022-06-16 08:22:55 -04:00
zzz
d812f82e92
SSU2: Fixes
...
Fix conn ids on hole punch
Fix min size on relay response
2022-06-16 08:16:12 -04:00
zzz
0a87559ba2
SSU2: Add per-introducer relay state machine
...
Enable relay
Set session created token to 0 as per spec
Log tweaks
2022-06-14 12:48:00 -04:00
zzz
c248279a03
Console: Minor fix for dark theme /logs version section
2022-06-13 07:11:31 -04:00
zzz
22efde37e3
SSU2: Relay WIP part 15
...
Fix sending charlie's address in relay response
Fix sending session request after introduction
Send 0-length endpoint in relay response on failure
Log tweaks
2022-06-12 16:08:23 -04:00
zzz
c976b86b6e
SSU2: Fix peer test msg 1 signature
2022-06-12 13:20:37 -04:00
zzz
3ef06f88c9
SSU2: Relay WIP part 14
...
Fixes after testnet testing:
Fix NPE in OES2 constructor
Fix relay request signature
Fix relay response signature verification bugs
Fix unhandled state OB_STATE_INTRODUCED
Refactor state handling to switch
Remove dup copy in SSU2Util.sign()
Log tweaks
2022-06-12 12:54:52 -04:00
zzz
2ec0894c35
SSU2: Relay WIP part 13
...
Reject SSU1/SSU2 relay request mismatch as Bob
2022-06-11 13:06:29 -04:00
zzz
d85d501291
SSU2: Relay WIP part 12
...
Don't send SSU1 relay request to SSU2-connected introducers
and vice versa
Log tweaks
2022-06-11 09:13:36 -04:00
zzz
e4996a2db6
SSU: No need to validate Bob IP/port on relay intro as Charlie
...
as it is received in-session only
Log tweaks all over
2022-06-10 16:50:46 -04:00
zzz
ffc4520382
Transport: Remove mtn port from invalid list
2022-06-10 16:03:48 -04:00
zzz
386b259666
SSU: Reduce level of SSU 1 relay logging
...
to make it easier to debug SSU2 relay
2022-06-10 15:09:23 -04:00
idk
ee5e3a97ed
Merge branch 'master' of i2pgit.org:i2p-hackers/i2p.i2p
2022-06-10 13:39:54 -04:00
idk
a70c988a07
Automatically configure clients and client tunnels to listen on the container network address instead of the localhost. Closes #358
2022-06-10 13:39:27 -04:00
zzz
788babeaa0
SSU2: Relay WIP part 11
...
prevent dup SSU2 introducers take 2
2022-06-10 13:29:42 -04:00
zzz
3befe90007
i2ptunnel: Add tunnel name to offline expiration log messages
2022-06-10 09:53:55 -04:00
zzz
bfdf75f45b
SSU2: Fix test/relay response code for banned IP
2022-06-10 09:08:08 -04:00
zzz
9de618d644
SSU2: Catch errors on bad ack blocks
...
so rest of payload can be processed
Improve debug output on errors
2022-06-10 07:50:43 -04:00
zzz
cdf778514c
SSU2: Don't attempt SSU1 fallback validation on a SSU2 peer
...
This should actually fix the HMAC NPE
2022-06-10 07:35:53 -04:00
zzz
03f315fc1c
SSU2: Relay WIP part 10
...
Fix OES2 initial state when pending intro
Handle relay response as Alice
Check relay request and relay response sigs as Bob
Remove unused method OES2.reset()
Fix javadoc for one OES state
2022-06-10 07:32:54 -04:00
zzz
379227592c
hosts.txt update
2022-06-09 15:08:01 -04:00
zzz
3d9ded4ab1
SSU2: Relay WIP part 9
...
Alice side:
check for valid v2 introducers,
fetch Bob RIs if not found,
connect if not connected,
then send relay request
2022-06-09 12:24:29 -04:00
zzz
29c827c076
SSU2: Ignore dup session confirmed
2022-06-09 11:54:52 -04:00
zzz
5582814d7c
Noise: Add state info to debug output
2022-06-09 09:49:06 -04:00
zzz
43a5998cfd
SSU2: Set timer to remove peer test state
...
Reduce SSU 1/2 max test time as Bob
2022-06-08 11:31:42 -04:00
zzz
d1633938db
NetDb: Bypass checks on lookups of our router hash
2022-06-08 11:04:33 -04:00
zzz
5129665256
SSU: Request RI from introducer if we don't have it
2022-06-08 10:58:16 -04:00
zzz
0d51b2d25f
Transport: Don't requeue message after multiple failures
...
Change failed transports from a Set to a List for efficiency
Check fail count before getting bids
Don't remove from netdb after a failure
Other minor tweaks
2022-06-07 14:22:27 -04:00
zzz
ba7b154a09
SSU: Ban IP on bad handshake signature
2022-06-07 14:15:00 -04:00
zzz
52bb2aea94
SSU2: Peer test fixes
...
per spec, Alice hash not included in msg 1/2 sig
Add sig checks of msgs 1/3 at Bob
Fix checking of 'B' cap in peer selection
2022-06-07 14:08:53 -04:00
zzz
265804a750
Console: Add deadlock detector
2022-06-06 17:01:15 -04:00
zzz
74795a83d6
SSU2: Relay WIP part 8
...
prevent dup SSU2 introducers
2022-06-06 16:25:30 -04:00
zzz
0fe437f649
SSU2: Check for missing address block in peer test msg 7
2022-06-06 16:24:19 -04:00
zzz
a2ec81eaec
Util: Cache new SSU2 properties
2022-06-06 16:21:44 -04:00
zzz
df4be26878
SSU: Don't allow android to be introducers
2022-06-06 16:20:44 -04:00
zzz
06456fb318
SSU2: Peer test fix message 7
...
Put source address of msg 6 into address block for msg 7
Use msg 7 address block for received address
2022-06-06 11:41:31 -04:00
zzz
d9c932ac2e
Compile fix previous checkin
2022-06-06 11:40:24 -04:00
zzz
d680cfd80c
SSU2: Relay WIP part 7
...
Add SSU2 parameter support to UDPAddress
Count SSU2 introducers in UDPAddress
Fix reuse of SSU2 introducers
Don't immediately remove introducer for idle time
2022-06-06 11:07:45 -04:00