First time here? Check out the FAQ!

Ask Your Question
0

Small Scale Variants of the AES (SR)

asked 1 year ago

ron_talbot gravatar image

updated 1 year ago

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.

Preview: (hide)

2 Answers

Sort by » oldest newest most voted
0

answered 1 year ago

ron_talbot gravatar image

updated 1 year ago

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.

Preview: (hide)
link
0

answered 1 year ago

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.

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: 1 year ago

Seen: 217 times

Last updated: Jan 17 '24