Skip to content

Conversation

christopherngutierrez
Copy link
Contributor

Proposed changes

PR to move KeyMul from relin.py to basic.py. Adds a helper function to basic.py which is used in Relin (and will be used in a future PR for Rotate). The PR also moves DigitDecompExtend to its own file, decomp.py. Further, a minor change to KeyMul & Relin to control Mul/Mac a specific part on the input. Confirmed to pass test on Relin on with 16k poly mods.

Types of changes

What types of changes does your code introduce to the HE Toolkit project?
Put an x in the boxes that apply

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update (if none of the other choices apply)

Checklist

Put an x in the boxes that apply. You can also fill these out after creating
the PR. If you are unsure about any of them, do not hesitate to ask. We are
here to help! This is simply a reminder of what we are going to look for before
merging your code.

  • I have read the CONTRIBUTING agreement
  • Current formatting and unit tests / base functionality passes locally with my changes
  • I have added tests that prove my fix is effective or that my feature works (if appropriate)
  • I have added necessary documentation (if appropriate)
  • Any dependent changes have been merged and published in downstream modules

Further comments

The PR is mainly used to organize common components and avoid code replication.

Copy link
Contributor

@jobottle jobottle left a comment

Choose a reason for hiding this comment

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

Looks good

@faberga faberga merged commit ae3c257 into main Sep 20, 2024
3 checks passed
@faberga faberga deleted the christopherngutierrez/common-functionality-refactor branch September 20, 2024 18:27
@faberga faberga mentioned this pull request Sep 24, 2024
9 tasks
christopherngutierrez added a commit that referenced this pull request Oct 21, 2024
….py (#47)

* Refactor KeyMul and move it to basic.py
* Refactor and move DigitDecompExtend to its own file, decomp.py.
---------

Co-authored-by: Flavio Bergamaschi <[email protected]>
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.

3 participants