Skip to content

SshAuthPublicKeyData

[Source]

class val SshAuthPublicKeyData

Constructors

create

[Source]

new val create(
  algorithm': String val,
  public_key': Array[U8 val] val,
  signature': (Array[U8 val] val | None val) = None)
: SshAuthPublicKeyData val^

Parameters

Returns


Public fields

let algorithm: String val

[Source]


let public_key: Array[U8 val] val

[Source]


let signature: (Array[U8 val] val | None val)

[Source]


Public Functions

matches

[Source]

True when the presented public key equals the given authorized public key blob. The blob is the SSH wire encoding string(algorithm) || string(key) — the same bytes found in an OpenSSH .pub file after base64-decoding the middle field. Public keys are not secret, so a plain byte comparison is the right tool; do not reach for a MAC/constant-time compare to test key identity.

fun val matches(
  authorized_public_key_blob: Array[U8 val] val)
: Bool val

Parameters

  • authorized_public_key_blob: Array[U8 val] val

Returns