Skip to content

SshMessages

[Source]

primitive val SshMessages

Constructors

create

[Source]

new val create()
: SshMessages val^

Returns


Public Functions

disconnect

[Source]

fun box disconnect(
  reason_code: U32 val,
  description: String val)
: Array[U8 val] val

Parameters

  • reason_code: U32 val
  • description: String val

Returns


unimplemented

[Source]

fun box unimplemented(
  sequence_number: U32 val)
: Array[U8 val] val

Parameters

  • sequence_number: U32 val

Returns


kexinit

[Source]

Encode SSH_MSG_KEXINIT per RFC 4253 section 7.1.

fun box kexinit(
  prefs: SshAlgorithmPreferences val,
  cookie: Array[U8 val] val)
: Array[U8 val] val

Parameters

Returns


decode_kexinit

[Source]

Decode SSH_MSG_KEXINIT payload (after the message type byte).

fun box decode_kexinit(
  data: Array[U8 val] val)
: (SshAlgorithmPreferences val | None val) ?

Parameters

Returns


newkeys

[Source]

fun box newkeys()
: Array[U8 val] val

Returns


kex_ecdh_init

[Source]

fun box kex_ecdh_init(
  client_public: Array[U8 val] val)
: Array[U8 val] val

Parameters

Returns


kex_ecdh_reply

[Source]

fun box kex_ecdh_reply(
  host_key_blob: Array[U8 val] val,
  server_public: Array[U8 val] val,
  signature: Array[U8 val] val)
: Array[U8 val] val

Parameters

Returns


eq

[Source]

fun box eq(
  that: SshMessages val)
: Bool val

Parameters

Returns


ne

[Source]

fun box ne(
  that: SshMessages val)
: Bool val

Parameters

Returns