Skip to content

Add bindings for crypto_stream - #959

Open
haatveit wants to merge 1 commit into
pyca:mainfrom
haatveit:crypto-stream
Open

haatveit wants to merge 1 commit into
pyca:mainfrom
haatveit:crypto-stream

Conversation

@haatveit

Copy link
Copy Markdown

This PR adds bindings for the crypto_stream APIs (XSalsa20 stream cipher). I've tried my best to follow package conventions by referencing existing modules and tests, hopefully it's not too far off.

The change exposes functions crypto_stream(), crypto_stream_xor(), crypto_stream_keygen() and constants crypto_stream_NONCEBYTES/crypto_stream_KEYBYTES/crypto_stream_MESSAGEBYTES_MAX under nacl.bindings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant