Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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

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-dvd/SAGE/www.sagemath.org/doc/reference/sage/crypto/block_cipher/miniaes.html, are different from outputs in sagemath version 10.3, which you can find here https://doc.sagemath.org/html/en/reference/cryptography/sage/crypto/block_cipher/miniaes.html

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

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

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-dvd/SAGE/www.sagemath.org/doc/reference/sage/crypto/block_cipher/miniaes.html, are different from outputs in sagemath version 10.3, which you can find here https://doc.sagemath.org/html/en/reference/cryptography/sage/crypto/block_cipher/miniaes.html

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