Ask Your Question
0

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
0

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 sage.crypto.mq.rijndael_gf import RijndaelGF
sage: rgf = RijndaelGF(5, 4)
sage: rgf.number_rounds()
11
sage: rgf._Nr = 100
sage: rgf.number_rounds()
100
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

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

Seen: 26 times

Last updated: Oct 04