Skip to content

Conversation

@overhacked
Copy link
Contributor

KeyData was duplicating the algorithm string when encoding a certificate public key to its binary representation. It was also filling in the non-certificate variant of the Algorithm string. This fixes both.

@tarcieri, apologies for the quick follow-up PR. I didn't get to test KeyData's Encode implementation until I used the new pre-release in ssh-agent-mux and realized that the algorithm was being emitted twice for certificates. This PR includes integration tests for this.

KeyData was duplicating the algorithm string when encoding a certificate
public key to its binary representation. It was also filling in the
non-certificate variant of the Algorithm string. This fixes both.

Signed-off-by: Ross Williams <[email protected]>
@overhacked overhacked changed the title ssh-key: Fix KeyData Certificate encoding ssh-key: Fix KeyData::Certificate encoding Jan 15, 2026
@tarcieri tarcieri merged commit ae02e7d into RustCrypto:master Jan 15, 2026
14 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.

2 participants