crypto/algorithms/pureaescipher.py
def _mixColumns(self, state, isInv):
        '''
        galois multiplication of the 4x4 matrix
        '''
        # iterate over the 4 columns
        for i in range(4):
            # construct one column by slicing over the 4 rows
            column = state[i:i+16:4]
            # apply the _mixColumn on one column
            column = self._mixColumn(column, isInv)
            # put the values back into the state
            state[i:i+16:4] = column

        return state

        galois multiplication of the 4x4 matrix
        
galois multiplication of the 4x4 matrix
galois multiplication of the 4x4 matrix
def _mixColumns(self, state, isInv):
        for i in range(4):
            column = state[i:i+16:4]
            column = self._mixColumn(column, isInv)
            state[i:i+16:4] = column
        return state
def _mixColumns ( self , state , isInv ) : for i in range ( 4 ) : column = state [ i : i + 16 : 4 ] column = self . _mixColumn ( column , isInv ) state [ i : i + 16 : 4 ] = column return state
galois multiplication of the 4x4 matrix
galois multiplication of the 4x4 matrix
'''
        galois multiplication of the 4x4 matrix
        ''' # iterate over the 4 columns # construct one column by slicing over the 4 rows # apply the _mixColumn on one column # put the values back into the state
self
state
isInv