PQC alias tests count signature verification false as success
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 59/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- java
- 領域
- cryptography, testing
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Java
- スター
- 16
- フォーク
- 25
- 平均マージ
- 1日 12時間
- マージ済み PR(30日)
- 58
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
IBM/OpenJCEPlus のほかの issue
-
Convert Key Encoding, Serialization and Attribute Tests to JUnit 5 Parameterized Tests対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
IBM/OpenJCEPlus#1928 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Convert PBKDF2 Interop Tests to JUnit 5 Parameterized Tests対応中かも @michael-ma-dev が 8 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
IBM/OpenJCEPlus#1927 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Convert EdDSA Signature Tests to JUnit 5 Parameterized Tests対応中かも @michael-ma-dev が 9 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
IBM/OpenJCEPlus#1923 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Convert DSA Key and Signature Tests to JUnit 5 Parameterized Tests対応中かも @johnpeck-us-ibm が 45 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
IBM/OpenJCEPlus#1922 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Convert AES Interop and Key Wrap Tests to JUnit 5 Parameterized Tests再び着手できるかも @Mohit-Rajbhar100698 が 31 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
IBM/OpenJCEPlus#1915 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
IBM/OpenJCEPlus の issue をすべて見る
似ている issue
-
Parse truncated verbose GC logs up to the first XML error対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンbug verbose GC
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
IBM/javacore-analyser#677 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
liberation-data/fornax4j#302 ·
メンテナーはふだん 1 日以内に返信
-
needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 61/100
grimmory-tools/grimmory#3297 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
SmartPack/PackageManager#186 ·
-
Area: Java feature request needs triage OS: Windows
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
actions/runner-images#15457 ·
メンテナーはふだん 3 日以内に返信