We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 967da6d commit c9c5250Copy full SHA for c9c5250
ciphers/xtea.py
@@ -16,9 +16,7 @@
16
MASK = 0xFFFFFFFF
17
18
19
-def xtea_encrypt(
20
- block: bytes, key: bytes, num_rounds: int = 64
21
-) -> bytes:
+def xtea_encrypt(block: bytes, key: bytes, num_rounds: int = 64) -> bytes:
22
"""
23
Encrypt a single 64-bit block using XTEA.
24
@@ -65,9 +63,7 @@ def xtea_encrypt(
65
63
return struct.pack("!II", v0, v1)
66
64
67
68
-def xtea_decrypt(
69
70
+def xtea_decrypt(block: bytes, key: bytes, num_rounds: int = 64) -> bytes:
71
72
Decrypt a single 64-bit block using XTEA.
73
0 commit comments