#5586: [with patch, needs review] faster & more convenient sr
---------------------------------+------------------------------------------
Reporter: malb | Owner: malb
Type: enhancement | Status: new
Priority: major | Milestone: sage-3.4.1
Component: commutative algebra | Keywords: crypto, aes
---------------------------------+------------------------------------------
Comment(by mvngu):
OK, I applied the patches against Sage 3.4 in this order:
1. the patch at #5493
1. that patch at #5527
1. finally the patches on this ticket
But I got doctest failure:
{{{
[mv...@sage sage-3.4]$ ./sage -t -long
devel/sage-5586/sage/crypto/mq/sr.py
sage -t -long "devel/sage-5586/sage/crypto/mq/sr.py"
**********************************************************************
File "/home/mvngu/sage-3.4/devel/sage-5586/sage/crypto/mq/sr.py", line
2002:
sage: F.round(0)
Expected:
(P000 + w100 + k000, P001 + w101 + k001, P002 + w102 + k002, P003 +
w103 + k003)
Got:
[P000 + w100 + k000, P001 + w101 + k001, P002 + w102 + k002, P003 +
w103 + k003]
**********************************************************************
File "/home/mvngu/sage-3.4/devel/sage-5586/sage/crypto/mq/sr.py", line
2004:
sage: F.round(-2)
Expected:
(k100 + x100 + x102 + x103 + C000, k101 + x100 + x101 + x103 + C001 +
1, ...)
Got:
[k100 + x100 + x102 + x103 + C000, k101 + x100 + x101 + x103 + C001 +
1, k102 + x100 + x101 + x102 + C002 + 1, k103 + x101 + x102 + x103 + C003,
x100*w100 + x100*w103 + x101*w102 + x102*w101 + x103*w100, x100*w100 +
x100*w101 + x101*w100 + x101*w103 + x102*w102 + x103*w101, x100*w101 +
x100*w102 + x101*w100 + x101*w101 + x102*w100 + x102*w103 + x103*w102,
x100*w100 + x100*w102 + x100*w103 + x100 + x101*w100 + x101*w101 +
x102*w102 + x103*w100, x100*w101 + x100*w103 + x101*w101 + x101*w102 +
x101 + x102*w100 + x102*w103 + x103*w101, x100*w100 + x100*w102 +
x101*w100 + x101*w102 + x101*w103 + x102*w100 + x102*w101 + x102 +
x103*w102, x100*w101 + x100*w102 + x101*w100 + x101*w103 + x102*w101 +
x103*w103 + x103, x100*w100 + x100*w101 + x100*w103 + x101*w101 +
x102*w100 + x102*w102 + x103*w100 + w100, x100*w102 + x101*w100 +
x101*w101 + x101*w103 + x102*w101 + x103*w100 + x103*w102 + w101,
x100*w100 + x100*w101 + x100*w102 + x101*w102 + x102*w100 + x102*w101 +
x102*w103 + x103*w101 + w102, x100*w101 + x101*w100 + x101*w102 +
x102*w100 + x103*w101 + x103*w103 + w103, x100*w102 + x101*w101 +
x102*w100 + x103*w103 + 1]
**********************************************************************
1 items had failures:
2 of 25 in __main__.example_35
***Test Failed*** 2 failures.
For whitespace errors, see the file
/home/mvngu/sage-3.4/tmp/.doctest_sr.py
[73.1 s]
exit code: 1024
----------------------------------------------------------------------
The following tests failed:
sage -t -long "devel/sage-5586/sage/crypto/mq/sr.py"
Total time for all tests: 73.1 seconds
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5586#comment:5>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---