PQC alias tests count signature verification false as success
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 59/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- java
- Área
- cryptography, testing
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Java
- Estrellas
- 16
- Forks
- 25
- Merge medio
- 1 d 12 h
- PR fusionados (30 d)
- 58
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de IBM/OpenJCEPlus
-
Convert Key Encoding, Serialization and Attribute Tests to JUnit 5 Parameterized TestsPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
IBM/OpenJCEPlus#1928 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Convert PBKDF2 Interop Tests to JUnit 5 Parameterized TestsPosiblemente ocupada @michael-ma-dev la tomó hace 8 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
IBM/OpenJCEPlus#1927 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Convert EdDSA Signature Tests to JUnit 5 Parameterized TestsPosiblemente ocupada @michael-ma-dev la tomó hace 9 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
IBM/OpenJCEPlus#1923 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Convert DSA Key and Signature Tests to JUnit 5 Parameterized TestsPosiblemente ocupada @johnpeck-us-ibm la tomó hace 45 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
IBM/OpenJCEPlus#1922 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Convert AES Interop and Key Wrap Tests to JUnit 5 Parameterized TestsQuizá libre de nuevo @Mohit-Rajbhar100698 la tomó hace 31 días y no hay ningún pull request abierto. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
IBM/OpenJCEPlus#1915 · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de IBM/OpenJCEPlus
Issues similares
-
Parse truncated verbose GC logs up to the first XML errorPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertobug verbose GC
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
IBM/javacore-analyser#677 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
liberation-data/fornax4j#302 ·
Los mantenedores suelen responder en 1 día
-
needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 61/100
grimmory-tools/grimmory#3297 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
SmartPack/PackageManager#186 ·
-
Area: Java feature request needs triage OS: Windows
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
actions/runner-images#15457 ·
Los mantenedores suelen responder en 3 días