Unverified Commit 294c3c01 authored by oneiric's avatar oneiric

NTCP: adjust Phase3 sizes for Ed25519

Change IdentityEx and signature components of Phase3 unencrypted data to
match Ed25519 for Alice.
parent f2693fd2
......@@ -286,14 +286,14 @@ class NTCPSession
// The padding is as necessary to a multiple of 16 bytes for the entire unencrypted contents.
Phase3AliceRI = 2,
Phase3AliceTS = 4,
Phase3Padding = 15,
Phase3Signature = 40,
Phase3Padding = 3,
Phase3Signature = 64,
Phase3Unencrypted =
Phase3AliceRI +
kovri::core::IdentitySizes::Default + // 387
kovri::core::IdentitySizes::Extended + // 387 + 4
Phase3AliceTS +
Phase3Padding +
Phase3Signature, // Total = 448
Phase3Signature, // Total = 464
MaxMessage = 16378, // Spec defined as 16 KB - 6 (16378 bytes)
Buffer = 4160, // fits 4 tunnel messages (4 * 1028)
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment