SshHostKeyPair¶
An Ed25519 key pair loaded from PEM: holds the private key and can sign and expose the public key. Despite the name it backs both roles — a server's host key and a client's user authentication key — since the underlying operations (load, sign, public_key) are identical.
Constructors¶
create¶
Parse PEM private key via BIO_new_mem_buf + PEM_read_bio_PrivateKey.
Parameters¶
Returns¶
- SshHostKeyPair ref^ ?
Public fields¶
let algorithm: String val¶
Public Functions¶
sign¶
Sign data using EVP_DigestSign. For Ed25519, the md parameter is null.
Parameters¶
Returns¶
- (Array[U8 val] val | SshCryptoError)
public_key¶
Extract the public key as an SshHostKey.
Returns¶
- SshHostKey val