Ask Your Question
0

Small Scale Variants of the AES (SR)

asked 2024-01-17 12:11:34 +0100

ron_talbot gravatar image

updated 2024-01-17 16:49:29 +0100

Max Alekseyev gravatar image

For full AES, we have:

from sage.crypto import mq
sr = mq.SR(10, 4, 4, 8, star=True, allow_zero_inversions=True,aes_mode=True)
plain =' '
key=' '
cipher = sr(plain, key)

Is it possible to decrypt with mq.SR? Is there any method? Thanx.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2024-01-17 17:18:46 +0100

ron_talbot gravatar image

updated 2024-01-17 17:35:56 +0100

With mq.SR, I like that I can easily see the values after each AES round, including the round keys. Another aspect that is very useful to me is the high degree of customization, the fact that I can specify as an argument, for example, the number of rounds, which helps me a lot for cryptanalysis. This mode of operation would be very useful to me for the reverse steps as well, for decryption. In conclusion, I want to see the AES values for each round, both for encryption and decryption, plus to be able to specify the number of rounds (with the observation that the last round, regardless of their number, should behave like the last round of original Rijndael AES, where MixColumns step is missing). Yes, I know, I can write a complete program in Python, but I thought there were Sage commands/functions, possibly external libraries to help me. Thank You.

edit flag offensive delete link more
0

answered 2024-01-17 14:09:35 +0100

The mq.SR class in SageMath is not designed for AES encryption or decryption. For AES, you should use the AES class from the sage.crypto.block_cipher module. The AES class provides methods for encryption and decryption in accordance with the AES algorithm, which involves key expansion, multiple rounds, and specific operations. If you have a specific requirement for multivariate polynomial-based cryptographic operations, please provide more details for tailored assistance.

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: 2024-01-17 12:11:34 +0100

Seen: 179 times

Last updated: Jan 17