Ticket #4144 (closed enhancement: fixed)

Opened 3 months ago

Last modified 1 week ago

[with patch, positive review] allow finite field elements in SBox constructor

Reported by: malb Assigned to: malb
Priority: major Milestone: sage-3.2.1
Component: misc Keywords: crypto, aes, sbox, mq
Cc:

Description

make it so that this works:

sage: sr = mq.SR(1,1,1,4, allow_zero_inversions=True)
sage: S = mq.SBox([sr.sub_byte(e) for e in list(sr.k)])
sage: S
(6, 5, 2, 9, 4, 7, 3, 12, 14, 15, 10, 0, 8, 1, 13, 11)

Attachments

sbox_gfq.patch (2.3 kB) - added by malb on 09/18/2008 03:27:16 AM.

Change History

09/18/2008 03:27:16 AM changed by malb

  • attachment sbox_gfq.patch added.

09/20/2008 08:47:11 AM changed by malb

  • status changed from new to assigned.

11/22/2008 06:01:41 PM changed by cwitty

  • summary changed from [with patch, needs review] allow finite field elements in SBox constructor to [with patch, positive review] allow finite field elements in SBox constructor.

The code does something that looks reasonable, and doctests pass. (I don't know enough crypto to be sure that this is a useful thing to do, so I'm relying on malb for that part.)

Positive review.

11/22/2008 11:56:15 PM changed by mabshoff

  • status changed from assigned to closed.
  • resolution set to fixed.

Merged in Sage 3.2.1.alpha0