Skip to content

Commit c9c5250

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 967da6d commit c9c5250

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

ciphers/xtea.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@
1616
MASK = 0xFFFFFFFF
1717

1818

19-
def xtea_encrypt(
20-
block: bytes, key: bytes, num_rounds: int = 64
21-
) -> bytes:
19+
def xtea_encrypt(block: bytes, key: bytes, num_rounds: int = 64) -> bytes:
2220
"""
2321
Encrypt a single 64-bit block using XTEA.
2422
@@ -65,9 +63,7 @@ def xtea_encrypt(
6563
return struct.pack("!II", v0, v1)
6664

6765

68-
def xtea_decrypt(
69-
block: bytes, key: bytes, num_rounds: int = 64
70-
) -> bytes:
66+
def xtea_decrypt(block: bytes, key: bytes, num_rounds: int = 64) -> bytes:
7167
"""
7268
Decrypt a single 64-bit block using XTEA.
7369

0 commit comments

Comments
 (0)