Exemple #1
0
    def __init__(self, model=PtKey_XOR, bitmask=0xFF):
        ModelsBase.__init__(self, 4, 256, model=model)

        #Override number of subkeys - todo make this work
        #self.numSubKeys = 2
        #self.getParams().addChildren([{'name': 'Number of SubKeys', 'type':'list', 'values':[1,2,4,8,16,32], 'get':self.getNumSubKeys, 'set':self.setNumSubKeys}])
        self._mask = bitmask
Exemple #2
0
 def __init__(self, model=SBox_output, bitmask=0xFF):
     ModelsBase.__init__(self, 8, 64, model=model)
     self.numRoundKeys = 16
     self._mask = bitmask
 def __init__(self, model=None):
     ModelsBase.__init__(self, 32, 256, model=model)
Exemple #4
0
 def __init__(self, model=SBox_output, bitmask=0xFF):
     ModelsBase.__init__(self, 8, 64, model=model)
     self.numRoundKeys = 16
     self._mask = bitmask
Exemple #5
0
 def __init__(self, model=LEAK_HW_SBOXOUT_FIRSTROUND):
     ModelsBase.__init__(self, 16, 256, model=model)
     self.numRoundKeys = 10
Exemple #6
0
 def __init__(self, model=None):
     ModelsBase.__init__(self, 32, 256, model=model)