mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-04 16:57:32 +08:00
Enable ruff RUF100 rule (#11337)
This commit is contained in:
@ -44,9 +44,9 @@ def function(expansion, s0, s1, key, message):
|
||||
right = message[4:]
|
||||
temp = apply_table(right, expansion)
|
||||
temp = xor(temp, key)
|
||||
l = apply_sbox(s0, temp[:4]) # noqa: E741
|
||||
l = apply_sbox(s0, temp[:4])
|
||||
r = apply_sbox(s1, temp[4:])
|
||||
l = "0" * (2 - len(l)) + l # noqa: E741
|
||||
l = "0" * (2 - len(l)) + l
|
||||
r = "0" * (2 - len(r)) + r
|
||||
temp = apply_table(l + r, p4_table)
|
||||
temp = xor(left, temp)
|
||||
|
Reference in New Issue
Block a user