pyaes/pure/_aes_base.py
def _mix_columns(cls, s):
        """Internal function. Please do not use."""
        for a in s[:4]:
            t = a[0] ^ a[1] ^ a[2] ^ a[3]
            u = a[0]
            a[0] ^= t ^ cls._xtime(a[0] ^ a[1])
            a[1] ^= t ^ cls._xtime(a[1] ^ a[2])
            a[2] ^= t ^ cls._xtime(a[2] ^ a[3])
            a[3] ^= t ^ cls._xtime(a[3] ^ u)
Internal function. Please do not use.
Internal function. Please do not use.
Internal function . Please do not use .
def _mix_columns(cls, s):
        for a in s[:4]:
            t = a[0] ^ a[1] ^ a[2] ^ a[3]
            u = a[0]
            a[0] ^= t ^ cls._xtime(a[0] ^ a[1])
            a[1] ^= t ^ cls._xtime(a[1] ^ a[2])
            a[2] ^= t ^ cls._xtime(a[2] ^ a[3])
            a[3] ^= t ^ cls._xtime(a[3] ^ u)
def _mix_columns ( cls , s ) : for a in s [ : 4 ] : t = a [ 0 ] ^ a [ 1 ] ^ a [ 2 ] ^ a [ 3 ] u = a [ 0 ] a [ 0 ] ^= t ^ cls . _xtime ( a [ 0 ] ^ a [ 1 ] ) a [ 1 ] ^= t ^ cls . _xtime ( a [ 1 ] ^ a [ 2 ] ) a [ 2 ] ^= t ^ cls . _xtime ( a [ 2 ] ^ a [ 3 ] ) a [ 3 ] ^= t ^ cls . _xtime ( a [ 3 ] ^ u )
Internal function.
Internal function .
"""Internal function. Please do not use."""
cls
s