Skip to content

ssh-key: derive Encode for key types and CertType - #664

Merged
tarcieri merged 1 commit into
masterfrom
ssh-key/derive-encode
Dec 4, 2026
Merged

tarcieri merged 1 commit into
masterfrom
ssh-key/derive-encode

Conversation

@tarcieri

@tarcieri tarcieri commented Dec 4, 2026

Copy link
Copy Markdown
Member

Replace 11 handwritten Encode impls with derives so encoded_len and encode use the same field order or enum discriminants. Mark Ed25519PublicKey with #[ssh(length_prefixed)] to encode its 32-byte array as an SSH string.

Replace 11 handwritten `Encode` impls with derives so `encoded_len` and
`encode` use the same field order or enum discriminants. Mark
`Ed25519PublicKey` with `#[ssh(length_prefixed)]` to encode its 32-byte
array as an SSH string.
@tarcieri
tarcieri merged commit b761371 into master Dec 4, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant