From 85ff5ed5c1338701b91f734fff74746fbf3bb5c6 Mon Sep 17 00:00:00 2001 From: user202729 <25191436+user202729@users.noreply.github.com> Date: Thu, 9 Oct 2025 17:41:27 +0700 Subject: [PATCH] Fix an incorrect comparison in crypto/sbox --- src/sage/crypto/sbox.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sage/crypto/sbox.pyx b/src/sage/crypto/sbox.pyx index bafe3703ceb..b9fff140ca2 100644 --- a/src/sage/crypto/sbox.pyx +++ b/src/sage/crypto/sbox.pyx @@ -252,7 +252,7 @@ cdef class SBox(SageObject): raise NotImplemented cdef SBox other = rhs - return (self._S_list == other._S_list) and (self._big_endian == self._big_endian) + return (self._S_list == other._S_list) and (self._big_endian == other._big_endian) def __ne__(self, other): """