tests/pkg/relic: add Paillier encryption tests#21301
tests/pkg/relic: add Paillier encryption tests#21301mguetschow merged 2 commits intoRIOT-OS:masterfrom
Conversation
3375a2d to
9c9bb92
Compare
mguetschow
left a comment
There was a problem hiding this comment.
Just a minor nit, otherwise looks good. Thanks!
|
9c9bb92 to
c1ec586
Compare
|
@mguetschow thanks for hint, but ... We can merge this PR with 512-bits (current version) or I could change it to 1024-bits. |
mguetschow
left a comment
There was a problem hiding this comment.
Then I'd say it's fine to merge like it is. Maybe open an issue instead so we have a reminder to look into it.
I investigate the issue once again - and |
Contribution description
This PR adds two tests to Relic library, concerning Paillier encryption:
Unfortunately, currently only 512 bit Paillier encryption works - in following weeks I try to figure out why longer keys leads to stack smashing. I tested native with 256 MiB of memory and stack smashing error appears.Using big enough
BN_PRECIinRELIC_CONFIG_FLAGSand appropriate stack size allows usage of longer keys.With
BN_PRECI=4096and stack size with 114688 bytes onnative- Paillier keys 1024 and 2048 bits works.Testing procedure
Run
tests/pkg/relicand check if all tests are successful.Issues/PRs references
None