mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 09:21:13 +08:00
Tighten up psf/black and flake8 (#2024)
* Tighten up psf/black and flake8 * Fix some tests * Fix some E741 * Fix some E741 * updating DIRECTORY.md Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
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])
|
||||
l = apply_sbox(s0, temp[:4]) # noqa: E741
|
||||
r = apply_sbox(s1, temp[4:])
|
||||
l = "0" * (2 - len(l)) + l
|
||||
l = "0" * (2 - len(l)) + l # noqa: E741
|
||||
r = "0" * (2 - len(r)) + r
|
||||
temp = apply_table(l + r, p4_table)
|
||||
temp = XOR(left, temp)
|
||||
|
Reference in New Issue
Block a user