SshAuthPublicKeyData¶
Constructors¶
create¶
new val create(
algorithm': String val,
public_key': Array[U8 val] val,
signature': (Array[U8 val] val | None val) = None)
: SshAuthPublicKeyData val^
Parameters¶
- algorithm': String val
- public_key': Array[U8 val] val
- signature': (Array[U8 val] val | None val) = None
Returns¶
- SshAuthPublicKeyData val^
Public fields¶
let algorithm: String val¶
let public_key: Array[U8 val] val¶
let signature: (Array[U8 val] val | None val)¶
Public Functions¶
matches¶
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.
Parameters¶
Returns¶
- Bool val