handle incoming packets with ML-DSA signature

This commit is contained in:
orignal 2025-04-21 21:25:51 -04:00
parent 9bd2b8df76
commit 724d8bde4e
4 changed files with 40 additions and 20 deletions
libi2pd

View file

@ -59,8 +59,11 @@ namespace data
};
typedef std::function<bool(const Lease & l)> LeaseInspectFunc;
#if OPENSSL_PQ
const size_t MAX_LS_BUFFER_SIZE = 8192;
#else
const size_t MAX_LS_BUFFER_SIZE = 4096;
#endif
const size_t LEASE_SIZE = 44; // 32 + 4 + 8
const size_t LEASE2_SIZE = 40; // 32 + 4 + 4
const uint8_t MAX_NUM_LEASES = 16;