Ask Your Question

Can I control number of rounds of Rijndael-GF class

asked 2019-10-03 04:21:32 -0500

for Rijndael-GF class which is implementation of AES cipher we define block size and key size but can't control number of round. is there any way to modify number of rounds. for example AES with 4 rounds or 6 rounds ?

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted

answered 2019-10-04 20:26:45 -0500

Max Alekseyev gravatar image

The number of rounds is stored in the member variable _Nr

sage: from import RijndaelGF
sage: rgf = RijndaelGF(5, 4)
sage: rgf.number_rounds()
sage: rgf._Nr = 100
sage: rgf.number_rounds()
edit flag offensive delete link more

Your Answer


Add Answer

Question Tools

1 follower


Asked: 2019-10-03 04:21:32 -0500

Seen: 26 times

Last updated: Oct 04