PQC alias tests count signature verification false as success
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 59/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- java
- Domain
- cryptography, testing
Research direction
Start by checking the current TestPQCSignatureWithAliases.java and its parameterized test flow, especially doSignVerify and testPQCKeys, to confirm the pinned snapshot still reflects the issue. Read nearby tests for assertion and test double patterns, then run the alias regression; it is done when a verification result of false fails the test and increments no success count.
Written by the indexing model from the issue text.
Description
The following misuse was identified in a pinned snapshot of IBM/OpenJCEPlus. The observation is limited to that snapshot; the current branch, intended contract, reachability, and any existing fixes should be checked.
Problem
The current parameterized successor TestPQCSignatureWithAliases retains the defective regression oracle. In doSignVerify at lines 142-161, signature.verify(signedBytes) returning false only prints a failure at lines 155-156 and then reaches the end of the method normally. testPQCSignature therefore returns normally, and testPQCKeys increments testSuccesses at line 88. Its catch at lines 89-93 handles thrown Exceptions, while the summary at lines 105-109 merely prints counters and contains no assertion for testFailures. A broken PQC signature implementation can consequently pass the alias test by returning false. This finding is confined to the regression oracle and does not identify a production authentication acceptance path.
Suggested fix
Make a false verification result fail immediately with assertTrue or an AssertionError, or return a boolean that testPQCKeys checks before incrementing testSuccesses. Also make testPQCKeys fail whenever testFailures is nonzero rather than only printing the counter. Add a test double whose verify method returns false without throwing and confirm that the parameterized alias regression fails instead of increasing its success count.
This issue was drafted with AI assistance.
- Dominant language
- Java
- Stars
- 16
- Forks
- 25
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 58
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from IBM/OpenJCEPlus
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
IBM/OpenJCEPlus#1928 · 1 assignee ·
Maintainers usually reply within 1 day
-
Convert PBKDF2 Interop Tests to JUnit 5 Parameterized TestsPossibly taken @michael-ma-dev claimed this 8 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
IBM/OpenJCEPlus#1927 · 1 assignee ·
Maintainers usually reply within 1 day
-
Convert EdDSA Signature Tests to JUnit 5 Parameterized TestsPossibly taken @michael-ma-dev claimed this 9 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
IBM/OpenJCEPlus#1923 · 1 assignee ·
Maintainers usually reply within 1 day
-
Convert DSA Key and Signature Tests to JUnit 5 Parameterized TestsPossibly taken @johnpeck-us-ibm claimed this 45 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
IBM/OpenJCEPlus#1922 · 1 assignee ·
Maintainers usually reply within 1 day
-
Convert AES Interop and Key Wrap Tests to JUnit 5 Parameterized TestsMay be free again @Mohit-Rajbhar100698 claimed this 31 days ago, and no pull request is open. Open
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
IBM/OpenJCEPlus#1915 · 1 assignee ·
Maintainers usually reply within 1 day
Similar issues
-
bug verbose GC
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
IBM/javacore-analyser#677 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
liberation-data/fornax4j#302 ·
Maintainers usually reply within 1 day
-
needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 61/100
grimmory-tools/grimmory#3297 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
SmartPack/PackageManager#186 ·
-
Area: Java feature request needs triage OS: Windows
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
actions/runner-images#15457 ·
Maintainers usually reply within 3 days