Skip to content

Add integration test for wrong ECC signature scenario - #968

Merged
ejohnstown merged 1 commit into
wolfSSL:masterfrom
yosuke-wolfssl:f_3876
May 11, 2026
Merged

Add integration test for wrong ECC signature scenario#968
ejohnstown merged 1 commit into
wolfSSL:masterfrom
yosuke-wolfssl:f_3876

Conversation

@yosuke-wolfssl

Copy link
Copy Markdown
Contributor

This PR adds an integration test that drives DoUserAuthRequestEcc with a structurally valid ECC pubkey but a tampered signature and assert that authentication fails with WS_FATAL_ERROR at the API boundary.

Addressed by f_3876

@yosuke-wolfssl yosuke-wolfssl self-assigned this May 11, 2026
Copilot AI review requested due to automatic review settings May 11, 2026 07:41

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new negative integration test to ensure ECC public-key authentication fails when the client presents an authorized (structurally valid) ECC public key but produces an invalid ECDSA signature, validating the expected WS_FATAL_ERROR behavior at the API boundary.

Changes:

  • Added test_pubkey_auth_ecc_bad_sig() to drive a wrong-signature path while keeping the public key authorized.
  • Registered the new test in wolfSSH_AuthTest() under the existing ECC test guard.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread tests/auth.c
@ejohnstown
ejohnstown merged commit a5eb03c into wolfSSL:master May 11, 2026
131 checks passed
@yosuke-wolfssl
yosuke-wolfssl deleted the f_3876 branch May 12, 2026 00:17
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.

4 participants