Apply SEC_LEVEL_TYPE.NONE on TenSeal context
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 1k
- Forks
- 175
- Avg merge
- 6d 12h
- Merged PRs (30d)
- 5
Description
Question
Apply SEC_LEVEL_TYPE.NONE on TenSeal context.
Further Information
I'm trying to apply different CKKS parameters into TenSeal context. In order to skip the parameter check which throws: "ValueError: encryption parameters are not set correctly", I want to set SEC_LEVEL_TYPE.NONE to tenseal.context. Does anyone know how to set parameter "SEC_LEVEL_TYPE.NONE" into ts.context() ?
context = ts.context(
ts.SCHEME_TYPE.CKKS,
poly_modulus_degree=ring_dim,
coeff_mod_bit_sizes= coeff_mod_bit_sizes_arr
)
sealapi.SEC_LEVEL_TYPE.TC128
System Information
- OS: Ubuntu
- OS Version: 20.04
- Language Version: Python 3.8
Thank you
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the Python ts.context() entry point and trace how SEC_LEVEL_TYPE.TC128 and the encryption-parameter validation are handled. Determine where SEC_LEVEL_TYPE.NONE could be accepted for CKKS contexts, then verify that the requested custom parameters no longer trigger the reported ValueError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, python
- Domain
- backend, cryptography
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100