Skip to content

Commit e594552

Browse files
authored
Change nrows to ncols
Fixes #35804
1 parent 26f5a09 commit e594552

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sage/crypto/sbox.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ cdef class SBox(SageObject):
648648
for i in range(nrows):
649649
si = self._S_list[i]
650650
for di in range(nrows):
651-
L[di*nrows + si ^ self._S_list[i ^ di]] += 1
651+
L[di*ncols + si ^ self._S_list[i ^ di]] += 1
652652

653653
A = matrix(ZZ, nrows, ncols, L)
654654
A.set_immutable()

0 commit comments

Comments
 (0)