PQC alias tests count signature verification false as success

Abierto
#2,103 0 comentarios 0 reacciones 0 asignados Ver en GitHub

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

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

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de IBM/OpenJCEPlus

Todos los issues de IBM/OpenJCEPlus

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.