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
sbox linear approximation matrix scaling #24819
Comments
Commit: |
New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:5
Hi Friedrich, You can remove "B" and the nested for-loop. The list "L" can be constructed as
Regards, |
comment:6
Running
|
Reviewer: Rusydi H. Makarim |
comment:9
Good catch with the nested for loops, now its much more clearer I think. I fixed the doc build error, but did not find a syntactic correct way to break the now-too-long lines:
How do I correctly break these last three lines? |
comment:10
Replying to @pfasante:
You can break it like this :
|
comment:11
More comments :
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:14
Hi Friedrich, Please make it clear in the documentation that |
comment:16
Hi Friedrich, This is just an opinion, so feel free to disagree. Instead of passing a string to parameter In that case, the argument |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:18
I disagree with using a custom scaling factor. If you actually need to change the factor, you can also easily scale it afterwards anyway. Additional, having this scaling argument allows for a much clearer docstring, as we can use the common terms from literature to explain the function. I think its important to precisely say what the function returns and for this choosing from the common scalings used in the literature is the best way, I think. It should also be quite unlikely that there will be a new scaling factor introduced. New commits:
|
comment:19
Okay, all good |
Changed branch from u/asante/sbox_linear_approximation_matrix_scaling to |
as discussed here https://groups.google.com/forum/#!topic/sage-devel/l8N2wQl9WsY I would like to introduce an (optional) argument to the
linear_approximation_matrix
method on S-boxes, that allows to scale the output to the four typical use cases: biases, correlations, absolute biases, and fourier coefficients.The current implementation returns absolute biases, which would thus be the default value to the
scale
argument.Component: cryptography
Keywords: sbox, lat, linear approximation matrix
Author: Friedrich Wiemer
Branch/Commit:
dbc821d
Reviewer: Rusydi H. Makarim
Issue created by migration from https://trac.sagemath.org/ticket/24819
The text was updated successfully, but these errors were encountered: