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 f85491c commit 62f93d9Copy full SHA for 62f93d9
crypto/tests/test_chacha20.py
@@ -0,0 +1,10 @@
1
+import random
2
+import string
3
+from crypto.ChaCha20 import ChaCha20
4
+
5
+VALID_KEY = b"\x00" *32
6
+assert len(VALID_KEY) == 32, "VALID_KEY must be exactly 32 bytes"
7
+VALID_NONCE = B"\x00" * 12
8
+assert len(VALID_NONCE) == 12, "VALID_NONCE must be exactly 12 bytes"
9
10
+secure_rng = random.SystemRandom()
0 commit comments