Ticket #9318 (closed defect: fixed)
Fix S-Box CNF generation for non permutations
| Reported by: | malb | Owned by: | AlexGhitza |
|---|---|---|---|
| Priority: | major | Milestone: | sage-4.5.2 |
| Component: | algebra | Keywords: | |
| Cc: | Work issues: | ||
| Report Upstream: | N/A | Reviewers: | Yann Laigle-Chapuy |
| Authors: | Martin Albrecht | Merged in: | sage-4.5.2.alpha0 |
| Dependencies: | Stopgaps: |
Description
This should work:
sage: o = range(8) + range(8) sage: shuffle(o) sage: S = mq.SBox(o) sage: S.is_permutation() False sage: len(S.cnf()) == 3*2^4 True
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

