SshEd25519Identity

An Identity backed by an SSH Ed25519 private key, able to unwrap ssh-ed25519 stanzas produced by SshEd25519Recipient or by the reference age implementation.

Construct one with SshKey.parseIdentity; the raw-bytes constructor is internal so callers go through key parsing.

Functions

Link copied to clipboard

Returns the SSH Ed25519 recipient corresponding to this identity.

Link copied to clipboard
open override fun unwrap(stanzas: List<AgeStanza>): ByteArray

Unwraps the file key from a stanza in stanzas.