Skip to content

SshKeyAlgorithm ​

SshKeyAlgorithm ​

Algorithm family of an SSH key, discriminated by kind.

ts
type SshKeyAlgorithm = {
  readonly kind: "rsa";
  readonly modulusBits: number
} | {
  readonly kind: "ecdsa";
  readonly curve: EcNamedCurve
} | {
  readonly kind: "ed25519"
}

Released under the MIT License.