Exemple #1
0
def matrix2int(argin):
    return _Long(8).fromArray(_State(4, 4).toArray(argin), 4*4*8)
Exemple #2
0
 def subkey2int(self, argin):
     return _Long(self._nKeyColumns*self._wordSize).\
         fromArray(argin, self._blockSize)
Exemple #3
0
def int2matrix(argin):
    return _State(4, 4).fromArray(_Long(8).toArray(argin, 4*4*8))
Exemple #4
0
 def key2int(self, argin):
     return _Long(self._blockSize).fromArray(argin, self._blockSize)
Exemple #5
0
 def int2subkey(self, argin):
     return _Long(self._nKeyColumns*self._wordSize).\
         toArray(argin, self._blockSize)
Exemple #6
0
def int2subkey(argin):
    return _Long(4*8).toArray(argin, 4*4*8)
 def int2matrix(self, argin):
     return _State(self._nRows, self._nColumns).\
         fromArray(_Long(self._wordSize).toArray(argin, self._blockSize))
Exemple #8
0
def int2subkey(argin, nRows=4, nColumns=4, wordSize=8):
    return _Long(nColumns*wordSize).toArray(argin, nRows*nColumns*wordSize)
Exemple #9
0
 def int2matrix(self, argin):
     return _State(self._nRows, self._nColumns).\
         fromArray(_Long(self._wordSize).toArray(argin, self._blockSize))
 def int2subkey(self, argin):
     return _Long(self._nKeyColumns*self._wordSize).\
         toArray(argin, self._blockSize)
Exemple #11
0
def subkey2int(argin, nRows=4, nColumns=4, wordSize=8):
    return _Long(nColumns*wordSize).fromArray(argin, nRows*nColumns*wordSize)
 def key2int(self, argin):
     return _Long(self._blockSize).fromArray(argin, self._blockSize)
 def int2key(self, argin):
     return _Long(self._blockSize).toArray(argin, self._blockSize)
 def matrix2int(self, argin):
     return _Long(self._wordSize).\
         fromArray(_State(self._nRows, self._nColumns).toArray(argin),
                   self._blockSize)
Exemple #15
0
def int2key(argin):
    return _Long(8).toArray(argin, 4*8*8)
Exemple #16
0
 def matrix2int(self, argin):
     return _Long(self._wordSize).\
         fromArray(_State(self._nRows, self._nColumns).toArray(argin),
                   self._blockSize)
Exemple #17
0
def key2int(argin):
    return _Long(8).fromArray(argin, 4*8*8)
Exemple #18
0
 def int2key(self, argin):
     return _Long(self._blockSize).toArray(argin, self._blockSize)
Exemple #19
0
def subkey2int(argin):
    return _Long(4*8).fromArray(argin, 4*4*8)
 def subkey2int(self, argin):
     return _Long(self._nKeyColumns*self._wordSize).\
         fromArray(argin, self._blockSize)