@blockchaincommons/components - v1.0.0-beta.4
    Preparing search index...

    Type Alias SshAlgorithm

    SshAlgorithm:
        | { kind: "ed25519" }
        | { kind: "dsa" }
        | { kind: "rsa" }
        | { kind: "ecdsa"; curve: SshEcdsaCurve }

    SSH key algorithm identifiers.

    The six key algorithms ssh-key 0.6.7 generates and parses, and that the reference derives from a PrivateKeyBase:

    • Ed25519 (ssh-ed25519)
    • DSA (ssh-dss) — 1024-bit p, 160-bit q, SHA-1
    • RSA (ssh-rsa) — 2048-bit keys; sshsig signatures name their hash as rsa-sha2-256 / rsa-sha2-512 (RFC 8332)
    • ECDSA P-256 (ecdsa-sha2-nistp256) — SHA-256
    • ECDSA P-384 (ecdsa-sha2-nistp384) — SHA-384
    • ECDSA P-521 (ecdsa-sha2-nistp521) — SHA-512

    Not supported: FIDO/U2F sk-* keys, opaque name@domain algorithms, encrypted private keys and *-cert-v01@openssh.com certificates.

    Type Declaration

    • { kind: "ed25519" }
      • kind: "ed25519"

        ssh-ed25519.

    • { kind: "dsa" }
      • kind: "dsa"

        ssh-dss.

    • { kind: "rsa" }
      • kind: "rsa"

        ssh-rsa.

    • { kind: "ecdsa"; curve: SshEcdsaCurve }
      • kind: "ecdsa"

        ecdsa-sha2-nistp256 / ecdsa-sha2-nistp384 / ecdsa-sha2-nistp521.

      • curve: SshEcdsaCurve

        The NIST curve of an ECDSA key.