crypto/algorithms/pureaescipher.py
def _subBytes(self, state, isInv):
        '''
        substitute all the values from the state with the value in the SBox
        using the state value as index for the SBox
        '''
        if isInv: getter = self._getSBoxInvert
        else: getter = self._getSBoxValue
        for i in range(16): state[i] = getter(state[i])
        return state

        substitute all the values from the state with the value in the SBox
        using the state value as index for the SBox
        
substitute all the values from the state with the value in the SBox
using the state value as index for the SBox
substitute all the values from the state with the value in the SBox using the state value as index for the SBox
def _subBytes(self, state, isInv):
        if isInv: getter = self._getSBoxInvert
        else: getter = self._getSBoxValue
        for i in range(16): state[i] = getter(state[i])
        return state
def _subBytes ( self , state , isInv ) : if isInv : getter = self . _getSBoxInvert else : getter = self . _getSBoxValue for i in range ( 16 ) : state [ i ] = getter ( state [ i ] ) return state
substitute all the values from the state with the value in the SBox
using the state value as index for the SBox
substitute all the values from the state with the value in the SBox using the state value as index for the SBox
'''
        substitute all the values from the state with the value in the SBox
        using the state value as index for the SBox
        '''
self
state
isInv