Skip to content

Commit 24c4e6a

Browse files
Fix typo in decrypt method
1 parent 4ea0c72 commit 24c4e6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pydatastructs/crypto/ChaCha20.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def decrypt(self, ciphertext: bytes) -> bytes:
203203
Returns:
204204
bytes: The resulting plaintext.
205205
"""
206-
return self.apply_keystream(ciphertext)
206+
return self._apply_keystream(ciphertext)
207207

208208
def reset(self, counter: int = 0):
209209
"""Resets the ChaCha20 counter to the specified value (default is 0)."""

0 commit comments

Comments
 (0)