Implement Numpy BitGenerator.

This commit is contained in:
2023-11-22 04:03:48 +00:00
parent c573505826
commit d102fa1d28
12 changed files with 215 additions and 119 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ def _processKeys(key, iv):
iv = bytes(4) + iv
else:
raise ValueError(
"iv lenth must be 8 (original nonce), 12 (IETF) or 16 (counter in initial 8 bytes)"
"iv lenth must be 8 (ChaCha20 original), 12 (IETF) or 16 (counter in initial 8 bytes)"
)
return ffi.from_buffer(key), ffi.from_buffer(iv)