Skip to content

SshPublicKeyVerifier

[Source]

Server-side verification of a client publickey userauth signature per RFC 4252 section 7. This proves the client holds the private key for the presented public key; the consumer still decides whether that key is authorized.

primitive val SshPublicKeyVerifier

Constructors

create

[Source]

new val create()
: SshPublicKeyVerifier val^

Returns


Public Functions

verify

[Source]

Returns true only when pk.signature is a valid signature over the expected signed data — string(session_id) || byte(SSH_MSG_USERAUTH_REQUEST) || string(username) || string(service) || string("publickey") || bool(true) || string(algorithm) || string(public_key_blob) — proving possession of the private key. Only ssh-ed25519 keys are supported; every other algorithm, and any malformed blob, fails closed.

fun box verify(
  session_id: Array[U8 val] val,
  username: String val,
  service: String val,
  pk: SshAuthPublicKeyData val)
: Bool val

Parameters

Returns


eq

[Source]

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

Parameters

Returns


ne

[Source]

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

Parameters

Returns