buildKexInitPayload
fn
ubyte[] buildKexInitPayload(const SshAlgorithmPreferences prefs,
in ubyte[16] cookie, bool strictKex = true) @safeBuilds the client's KEXINIT payload.
The preference lists are extended with the ext-info-c and strict-KEX indicators; neither participates in actual selection.
Parameters
prefs | Algorithm preferences. |
cookie | 16 random bytes. |
strictKex | Whether to send the strict-KEX indicator. |
Returns
The complete payload including the message-number byte.