Commit Graph

215 Commits

Author SHA1 Message Date
acetone 6d79da0e2f refresh offline transient on destination service 2026-06-22 21:57:06 +03:00
acetone acc0f94e49 refresh offline-signed transient on destination re-create
A repeated SESSION CREATE (SAM/I2CP) presenting a fresh offline-signature
transient of the same master resolves to the same identity hash, so
CreateNewLocalDestination returns the existing destination and the new
transient is dropped: the destination keeps signing LeaseSets with the old
transient and goes offline at its expiry.

Adopt the newer transient in place (swap keys and republish the LeaseSet,
without touching tunnels or streams) when its expiry is later, so an offline
transient can be rotated before it expires without rebuilding the destination.
2026-06-19 21:43:24 +03:00
acetone e58701d97c fixed SAM crash on shared destination teardown 2026-06-19 16:15:51 +03:00
orignal a776441ce1 detect and check imcompatible crypto between local destination and LeaseSet 2026-06-15 17:08:05 -04:00
orignal 5b3d7b515b inbound.randomKey and outbound.randomKey I2CP params 2026-06-13 15:27:57 -04:00
orignal 6cfef96863 always submit ECIES key/tag 2026-06-10 20:17:21 -04:00
orignal 0a51aa45ea request ECIES encrypted reply for LeaseSet lookup with post-quantum crypto 2026-06-10 14:07:09 -04:00
orignal 7ad86b2ba0 shared_ptr for DatagramDestination 2026-06-07 15:01:58 -04:00
orignal a1c3aa4255 publish higher key type first 2026-04-11 17:20:43 -04:00
orignal ae3de9ef46 close all session and regenerate static keys for new dest 2026-04-08 14:50:15 -04:00
jeff af8a3decbf Update libi2pd/Destination.cpp
style fix

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-04-03 09:13:44 -04:00
jeff ac5ba2dbf0 Update libi2pd/Destination.cpp
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-04-03 09:13:06 -04:00
Jeff Becker 1397c93de1 Fixup i2cp option on reconfigure.
Make sure i2cp.dontPublishLeaseSet option logic correctly applies on reconfigure.
2026-04-03 09:02:12 -04:00
orignal 975d3c61f0 fixed inverted value of i2cp.dontPublishLeaseSet 2026-04-02 21:22:18 -04:00
Benson Muite 73623a4793 Replace deadline_timer by steady_timer
Prevent deprecation warnings when building.
2026-03-06 10:55:47 +03:00
orignal 2f8480f908 set preferred crypto if i2cp.leaseSetEncType is not specified 2026-01-31 12:16:57 -05:00
orignal 8a177b2802 send ratchet session response for unidirectional traffic for I2CP 2026-01-27 15:35:27 -05:00
orignal e67b72b837 store explicit peers instead pointer 2026-01-19 08:42:20 -05:00
orignal 0518d8ff43 implemented trustedRouters tunnel param 2026-01-18 17:25:47 -05:00
orignal 60cc526dda common code to extract routers hashes from param 2026-01-15 19:51:51 -05:00
orignal 4542f4bc87 i2p.streaming.maxResends param 2026-01-04 11:47:45 -05:00
orignal 316e507df8 implement i2p.streaming.maxConnsPerMinute tunnel param 2025-12-30 15:00:00 -05:00
orignal da8901d40d set number of generated tags to 800 for datagram destination if not specfied 2025-12-18 16:22:35 -05:00
orignal 4f73e9678e RNG per destination. Use RNG from tunnels in tunnel pool 2025-12-11 17:43:14 -05:00
orignal 07263e77df reconfigure crypto.ratchet.inboundTags 2025-10-13 18:02:40 -04:00
orignal 12895b5744 use Mapping for local destination params 2025-10-13 17:33:53 -04:00
orignal ad390f70b3 enable PQ encryption type by default if supported 2025-08-21 21:13:13 -04:00
orignal f5b57283b3 i2p.streaming.dontSign tunnel param 2025-08-05 19:21:07 -04:00
orignal f0c4203f5a read bool param 2025-08-04 18:25:07 -04:00
orignal 6b9232452d i2p.streaming.maxWindowSize param 2025-07-31 19:30:41 -04:00
orignal c554f47c4d datagramversion param for UDP client tunnel 2025-07-22 16:07:24 -04:00
orignal bfc9540c24 recongnize explicit boolen values of i2p.streaming.answerPings 2025-07-17 17:11:54 -04:00
nonlin-lin-chaos-order-etc-etal 86366a6f73 Add more errors diagnostics to understand malformed configs 2025-07-18 02:25:49 +08:00
orignal 31b6f07b78 set ECIESx25519 session's destination from LeaseSet 2025-06-26 18:01:03 -04:00
orignal 40b90ccea4 recognize and verify datagram3 2025-06-24 18:00:02 -04:00
orignal 78357c23d2 don't verify signature in incoming SYN packet if came from ECIESx25519 session. Compare static key instead 2025-06-18 20:39:48 -04:00
orignal ba0352e9a0 check for compatibility of LeaseSet encryption keys with local destination's encryption type 2025-06-07 20:52:35 -04:00
orignal 855e111bd0 fixed private key size and publishing for crypto type 1 2025-05-02 08:32:20 -04:00
orignal 929ff6e358 encrypted LeaseSet never comes through a session 2025-04-26 08:39:11 -04:00
orignal a5fa4ddb4c compare LeaseSet's static keys with ratchets session it was received from 2025-04-22 21:21:51 -04:00
orignal bbfe81cb79 handle any incoming post quantum crypto type 2025-04-17 22:15:17 -04:00
orignal 1c162f9fd5 get preferred crypto key type from ratchets session 2025-04-16 21:59:10 -04:00
orignal e69b56c4e3 publish preferred key first 2025-04-16 16:44:01 -04:00
orignal f6c93f7345 common LocalEncryptionKey to pass to loacl LeaseSet 2025-04-16 15:40:09 -04:00
orignal bce0ccf161 all ratchets types are eligible for ECIESx25519 2025-04-04 19:52:32 -04:00
orignal ecf19278e8 skip post-quantum keys if not supported 2025-03-25 18:55:28 -04:00
orignal 9fdbb14075 calculate preferred crypto based i2cp.leaseSetEncType 2025-03-20 18:56:10 -04:00
orignal b2fd30d042 map of encryption keys 2025-03-19 15:22:09 -04:00
orignal 9ce515ff79 MLKEM512_X25519 crypto key added 2025-03-19 08:40:10 -04:00
orignal 46f530bfcd persist temporary keys of actual size 2025-03-18 21:15:37 -04:00