-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor/kat for sd estimator #177
base: develop
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After some review, we decided, that we drop the enforcement of special parameters for those 3 algorithms Both-May, May-Ozerov-d2, May-Ozerov-D3
, And instead we increase the allowed error range for those 3 to 1.5bit.
See here a comparison between the Syndrome Decoding Estimator and the CE for the mentioned parameter sets and algorithms, for justification. But we should keep a comment to explain the problem within the test
# SDE
#BM 100 50 10 16.112675889065212
#BM 1284 1028 24 56.66242774517839
#BM 3488 2720 64 130.95111267584178
#MO2 100 50 10 15.60773200776453
#MO2 1284 1028 24 55.00266278223495
#MO2 3488 2720 64 129.1807953760876
#MO3 100 50 10 17.096776518501812
#MO3 1284 1028 24 56.41499399680342
#MO3 3488 2720 64 129.02721295167652
# CE
#BM 100 50 10 15.777202014956968
#BM 1284 1028 24 55.245646328742176
#BM 3488 2720 64 129.94243715879466
#MO2 100 50 10 15.60773200776453
#MO2 1284 1028 24 55.00266278223495
#MO2 3488 2720 64 129.1807953760876
#MO3 100 50 10 17.096776518501812
#MO3 1284 1028 24 56.231346587683475
#MO3 3488 2720 64 129.02721295167652
Implemented in 77a30fc. Tests are working as expected now. What should the comment say, exactly? Comment and better test naming is all that rest for this draft I think |
Quality Gate passedIssues Measures |
The comment could be:
|
Description
Help required
@Javierverbel @Memphisd @FloydZ
While two of the three functions at
tests/external_estimators/SDEstimator/test_sde.py
has been succesfully migrated, the functiontest_all
makes a weird correction on some of our internal estimators by using the external one. This is now unsoported as our external and internal estimators don't share the same runtime anymore.We could probably return the
parameters
as another input for the internal estimator (likeinput = (n, k, ...,[<list_of_parameters>])
), but I want to be sure this is the best approach we can take.You can see my renamed version of that test in the last commit (trying to make it a bit easier to read, but I'm not sure if names were apropiately assigned); or look at the original one here:
CryptographicEstimators/tests/SDEstimator/test_sde.py
Lines 127 to 158 in e49f864
Review process
Pre-approval checklist