mini-AES inconsistent implementation between v4.5.1 and v10.3

asked 2024-06-26 13:00:25 +0100

guillermo gravatar image

updated 2024-07-02 13:35:51 +0100

tmonteil gravatar image

Hi there,

I am teaching an undergraduate crypto course and I want to cover Mini-AES from R. C.-W. Phan. Mini advanced encryption standard (mini-AES): a testbed for cryptanalysis students. Cryptologia, 26(4):283–306, 2002.

This is implemented in sagemath, or so I thought. However, outputs in sagemath version 4.5.1, which you can find here http://fe.math.kobe-u.ac.jp/icms2010-..., are different from outputs in sagemath version 10.3, which you can find here https://doc.sagemath.org/html/en/refe...

The discrepancies between the two version can be sees in the very first box 'Encrypt a plaintext'. Compare the two values of C (v4.5.1 and v10.3), with the same input P and key. This is particularly problematic in the computation of the round_key(key, n). Once could see that with the same input, the answers of each version differs.

The correct answers should always be the ones from v4.5.1.

Would you know how I can fix this problem in v10.3?

Thank you, and regards, Guillermo

edit retag flag offensive close merge delete

Comments

Please report the issue at https://github.com/sagemath/sage/issues

Max Alekseyev gravatar imageMax Alekseyev ( 2024-06-28 07:45:29 +0100 )edit

Thank you @max. I have raised the issue.

guillermo gravatar imageguillermo ( 2024-06-28 08:10:37 +0100 )edit

@guillermo : what is the link to the issue ?

tmonteil gravatar imagetmonteil ( 2024-07-02 13:35:37 +0100 )edit