Skip to content

Fix incomplete Issue #110 - change PREMode default to NOT_SET#1122

Merged
yspolyakov merged 1 commit intodevfrom
1108-fix-for-issue100
Feb 16, 2026
Merged

Fix incomplete Issue #110 - change PREMode default to NOT_SET#1122
yspolyakov merged 1 commit intodevfrom
1108-fix-for-issue100

Conversation

@dsuponitskiy
Copy link
Copy Markdown
Collaborator

Replaces this original PR
Fixes #110

The original fix in commit 64ed308 never worked because PREMode defaulted to INDCPA, not NOT_SET. This caused GetParamsPK() to always return Q×P basis for HYBRID, even when PRE is not needed.

Changes:

  • Set default PREMode to NOT_SET in gen-cryptocontext-params-defaults.h
  • Update pre-buffer.cpp to explicitly set PREMode=INDCPA

Fixes #110

The original fix in commit 64ed308 never worked because PREMode
defaulted to INDCPA, not NOT_SET. This caused GetParamsPK() to
always return Q×P basis for HYBRID, even when PRE is not needed.

Changes:
- Set default PREMode to NOT_SET in gen-cryptocontext-params-defaults.h
- Update pre-buffer.cpp to explicitly set PREMode=INDCPA
@BurakKTopal
Copy link
Copy Markdown
Collaborator

BurakKTopal commented Feb 14, 2026

@dsuponitskiy, please find the PR at #1124.

@yspolyakov yspolyakov merged commit c24f2cf into dev Feb 16, 2026
111 of 113 checks passed
@dsuponitskiy dsuponitskiy deleted the 1108-fix-for-issue100 branch April 7, 2026 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incomplete Fix for Issue #110 - PREMode default causes public keys to always use Q×P basis when using HYBRID key switching

3 participants