Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

EncodeKeyShareEntry

function EncodeKeyShareEntry(aGroup: Word; const aPublicKey: tBytes): tBytes;
A single KeyShareEntry: group(2) || key_exchange<2>. aPublicKey is the raw public value (e.g. 32 bytes for X25519) produced by the existing EC code.