PQC alias tests count signature verification false as success
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 59/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- java
- Ambito
- cryptography, testing
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Java
- Stelle
- 16
- Fork
- 25
- Merge medio
- 1g 12h
- PR unite (30g)
- 58
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di IBM/OpenJCEPlus
-
Convert Key Encoding, Serialization and Attribute Tests to JUnit 5 Parameterized TestsForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
IBM/OpenJCEPlus#1928 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Convert PBKDF2 Interop Tests to JUnit 5 Parameterized TestsForse già presa @michael-ma-dev l’ha presa 8 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
IBM/OpenJCEPlus#1927 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Convert EdDSA Signature Tests to JUnit 5 Parameterized TestsForse già presa @michael-ma-dev l’ha presa 9 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
IBM/OpenJCEPlus#1923 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Convert DSA Key and Signature Tests to JUnit 5 Parameterized TestsForse già presa @johnpeck-us-ibm l’ha presa 45 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
IBM/OpenJCEPlus#1922 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Convert AES Interop and Key Wrap Tests to JUnit 5 Parameterized TestsForse di nuovo libera @Mohit-Rajbhar100698 l’ha presa 31 giorni fa e non c’è nessuna pull request aperta. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
IBM/OpenJCEPlus#1915 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di IBM/OpenJCEPlus
Issue simili
-
Parse truncated verbose GC logs up to the first XML errorForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertabug verbose GC
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
IBM/javacore-analyser#677 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
liberation-data/fornax4j#302 ·
I maintainer di solito rispondono entro 1 giorno
-
needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 61/100
grimmory-tools/grimmory#3297 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
SmartPack/PackageManager#186 ·
-
Area: Java feature request needs triage OS: Windows
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
actions/runner-images#15457 ·
I maintainer di solito rispondono entro 3 giorni