
256 Cryptography with Open-Source Software
10.5 Experimenting with AES
One way to experiment with AES in Sage is to use Python’s own AES
implementation from the Crypto.Cipher standard library. This can be done
in the same way as was done for DES.
However, Sage includes a library for experimenting with small-scale vari-
ants of AES [19]. These are variants that allow for different numbers of
rounds, of rows and columns in