Skip to content

Add security parameter check by lattice estimator to the WE integration test#129

Merged
SoraSuegami merged 1 commit into
mainfrom
codex/diamond-we-lattice-check
Jun 8, 2026
Merged

Add security parameter check by lattice estimator to the WE integration test#129
SoraSuegami merged 1 commit into
mainfrom
codex/diamond-we-lattice-check

Conversation

@SoraSuegami

@SoraSuegami SoraSuegami commented Jun 8, 2026

Copy link
Copy Markdown
Member

No description provided.

@SoraSuegami SoraSuegami changed the title Explain the benchmark-vs-runtime gap for DiamondWE preimage generation Add security parameter check by lattice estimator to the WE integration test Jun 8, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d94f3a8a25

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

candidate.injector.params.clone()
},
) else {
return None;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Continue searching when the upper bound is insecure

When lattice checking is enabled for a ring-dimension range, this early return None makes the whole CRT-depth search fail as soon as max_crt_depth is insecure for all allowed ring dimensions. Security decreases as the CRT modulus grows, so a smaller CRT depth may still satisfy both the Gaussian security check and the q/4 correctness margin; the search should not discard those lower depths just because the initial upper-bound probe is insecure.

Useful? React with 👍 / 👎.

@SoraSuegami SoraSuegami merged commit 708a99a into main Jun 8, 2026
3 checks passed
@SoraSuegami SoraSuegami deleted the codex/diamond-we-lattice-check branch June 8, 2026 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant