Skip to content

GH-525: Fix sntrup761x25519-sha512#528

Merged
tomaswolf merged 1 commit into
apache:masterfrom
tomaswolf:gh-525
Jul 15, 2024
Merged

GH-525: Fix sntrup761x25519-sha512#528
tomaswolf merged 1 commit into
apache:masterfrom
tomaswolf:gh-525

Conversation

@tomaswolf
Copy link
Copy Markdown
Member

Because all other KEX algorithms treat the secret resulting from the key agreement as "mpint", our key agreements all returned the "mpint" representation of the result of the key agreement.

But sntrup761x25519-sha512 needs the raw 32 bytes of the key agreement (curve25519-sha256).

Add a flag to XDH that determines whether it returns the raw bytes or the "mpint" bytes.

Fixes #525.

Because all other KEX algorithms treat the secret resulting from the
key agreement as "mpint", our key agreements all returned the "mpint"
representation of the result of the key agreement.

But sntrup761x25519-sha512 needs the raw 32 bytes of the key agreement
(curve25519-sha256).

Add a flag to XDH that determines whether it returns the raw bytes or
the "mpint" bytes.

Bug: apache#525
@tomaswolf tomaswolf merged commit 5b00c1f into apache:master Jul 15, 2024
@tomaswolf tomaswolf deleted the gh-525 branch April 25, 2025 15:34
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.

sntrup761x25519-sha512@openssh.com KEX causing "incorrect signature" with OpenSSH client

1 participant