def _create_ecb_cipher(factory, **kwargs):
 cipher_state = factory._create_base_cipher(kwargs)
 if kwargs:
  raise TypeError(('Unknown parameters for ECB: %s' % str(kwargs)))
 return EcbMode(cipher_state)

def _create_ecb_cipher ( factory , ** kwargs ) : cipher_state = factory . _create_base_cipher ( kwargs ) if kwargs : raise TypeError ( ( 'Unknown parameters for ECB: %s' % str ( kwargs ) ) ) return EcbMode ( cipher_state )
instantiate a cipher object that performs ecb encryption/decryption .