Ask Your Question
0

Can I control number of rounds of Rijndael-GF class

asked 5 years ago

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 ?

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
0

answered 5 years ago

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
Preview: (hide)
link

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: 5 years ago

Seen: 183 times

Last updated: Oct 05 '19