crypto/algorithms/pureaescipher.py
def _aesMain(self, state, expandedKey, nbrRounds):
        '''
        Perform the initial operations, the standard round, and the final
        operations of the forward aes, creating a round key for each round
        '''
        state = self._addRoundKey(state, self._createRoundKey(expandedKey, 0))
        i = 1
        while i < nbrRounds:
            state = self._aesRound(state, self._createRoundKey(expandedKey, 16*i))
            i += 1
        state = self._subBytes(state, False)
        state = self._shiftRows(state, False)
        state = self._addRoundKey(state, self._createRoundKey(expandedKey, 16*nbrRounds))
        return state

        Perform the initial operations, the standard round, and the final
        operations of the forward aes, creating a round key for each round
        
Perform the initial operations, the standard round, and the final
operations of the forward aes, creating a round key for each round
Perform the initial operations the standard round and the final operations of the forward aes creating a round key for each round
def _aesMain(self, state, expandedKey, nbrRounds):
        state = self._addRoundKey(state, self._createRoundKey(expandedKey, 0))
        i = 1
        while i < nbrRounds:
            state = self._aesRound(state, self._createRoundKey(expandedKey, 16*i))
            i += 1
        state = self._subBytes(state, False)
        state = self._shiftRows(state, False)
        state = self._addRoundKey(state, self._createRoundKey(expandedKey, 16*nbrRounds))
        return state
def _aesMain ( self , state , expandedKey , nbrRounds ) : state = self . _addRoundKey ( state , self . _createRoundKey ( expandedKey , 0 ) ) i = 1 while i < nbrRounds : state = self . _aesRound ( state , self . _createRoundKey ( expandedKey , 16 * i ) ) i += 1 state = self . _subBytes ( state , False ) state = self . _shiftRows ( state , False ) state = self . _addRoundKey ( state , self . _createRoundKey ( expandedKey , 16 * nbrRounds ) ) return state
Perform the initial operations, the standard round, and the final
operations of the forward aes, creating a round key for each round
Perform the initial operations the standard round and the final operations of the forward aes creating a round key for each round
'''
        Perform the initial operations, the standard round, and the final
        operations of the forward aes, creating a round key for each round
        '''
self
state
expandedKey
nbrRounds