Skip to content

Commit

Permalink
sagemathgh-38576: crypto/sbox.pyx: remove unreachable code
Browse files Browse the repository at this point in the history
    
Remove unreachable line 448 from `crypto/sbox.pyx`.
    
URL: sagemath#38576
Reported by: gmou3
Reviewer(s): user202729
  • Loading branch information
Release Manager committed Sep 8, 2024
2 parents bec5420 + 1193ebe commit 8109baf
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/sage/crypto/sbox.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,6 @@ cdef class SBox(SageObject):
return K(self._S_list[<Integer> X])
except TypeError:
raise TypeError("cannot apply SBox to %s" % (X,))
raise TypeError("the characteristic of the base field must be 2")
V = None
try:
V = K.vector_space(map=False)
Expand Down

0 comments on commit 8109baf

Please sign in to comment.