Ask Your Question
0

Can I control number of rounds of Rijndael-GF class

asked 2019-10-03 11:21:32 +0100

Hassan Mostafa gravatar image

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-05 03:26:45 +0100

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 11:21:32 +0100

Seen: 165 times

Last updated: Oct 05 '19