buildKexInitPayload

fnubyte[] buildKexInitPayload(const SshAlgorithmPreferences prefs, in ubyte[16] cookie, bool strictKex = true) @safe

Builds 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

prefsAlgorithm preferences.
cookie16 random bytes.
strictKexWhether to send the strict-KEX indicator.

Returns

The complete payload including the message-number byte.