Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
reformatted the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pfasante committed Jun 29, 2018
1 parent 06ac820 commit d1ef281
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/sage/crypto/sbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -737,14 +737,16 @@ def polynomials(self, X=None, Y=None, degree=2, groebner=False):
y1 + x0*x2 + x1 + 1,
y2 + x0 + x1*x2 + x1 + x2 + 1]
TESTS::
TESTS:
Check that :trac:`22453` is fixed::
sage: from sage.crypto.sboxes import AES
sage: aes_polys = AES.polynomials()
Check if #22453 is fixed
sage: p = aes_polys[0].parent("x3*y0 + x5*y0 + x7*y0 + x6*y1 + x2*y2 + x3*y2 + x4*y2 + x2*y3 + x3*y3 + x5*y4 + x6*y4 + x3*y5 + x4*y5 + x4*y7 + x2 + x3 + y2 + y3 + y4 + 1")
sage: p = aes_polys[0].parent("x3*y0 + x5*y0 + x7*y0 + x6*y1 + x2*y2"
....: " + x3*y2 + x4*y2 + x2*y3 + x3*y3 +"
....: " x5*y4 + x6*y4 + x3*y5 + x4*y5 + x4*y7"
....: " + x2 + x3 + y2 + y3 + y4 + 1")
sage: p in aes_polys
True
Expand Down

0 comments on commit d1ef281

Please sign in to comment.