Ask Your Question

Can I control number of rounds of Rijndael-GF class

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

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

answered 2019-10-05 03:26:45 +0200

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

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

Add Answer

Question Tools

1 follower


Asked: 2019-10-03 11:21:32 +0200

Seen: 117 times

Last updated: Oct 05 '19