-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document changes to 'Encrypted Streams' API made in #39 #41
base: master
Are you sure you want to change the base?
Conversation
@@ -70,10 +70,7 @@ | |||
* [Encrypted streams](SodiumPlus/encrypted-streams.md) | |||
* [crypto_secretstream_xchacha20poly1305_init_push](SodiumPlus/encrypted-streams.md#crypto_secretstream_xchacha20poly1305_init_push) | |||
* [crypto_secretstream_xchacha20poly1305_init_pull](SodiumPlus/encrypted-streams.md#crypto_secretstream_xchacha20poly1305_init_pull) | |||
* [crypto_secretstream_xchacha20poly1305_push](SodiumPlus/encrypted-streams.md#crypto_secretstream_xchacha20poly1305_push) | |||
* [crypto_secretstream_xchacha20poly1305_pull](SodiumPlus/encrypted-streams.md#crypto_secretstream_xchacha20poly1305_pull) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please note that I am removing description of these methods since they are no longer directly usable as one needs to have access to the backend-specific state to use them which is now wrapped by the init_*
method and is no longer accessible to the API users.
bbbd5c9
to
c94e6ac
Compare
c94e6ac
to
a245226
Compare
1. Update `crypto_secretstream_xchacha20poly1305_init_*` methods documentation to indicate that they both _asynchronously_ return a Stream Encryptor/Decryptor object completely encapsulating the backend-specific state 2. Document properties and methods available in the Stream Encryptor/Decryptor objects 3. Remove documentation for _private_ methods that can no longer be used directly as they require access to the underlying backend-specific state encapsulated by the Stream Encryptor/Decryptor objects: * `crypto_secretstream_xchacha20poly1305_push` * `crypto_secretstream_xchacha20poly1305_pull` * `crypto_secretstream_xchacha20poly1305_rekey` methods 4. Update sample for stream encryption/decryption
a245226
to
a213357
Compare
@paragonie-scott, could you take a look at this documentation follow-up for the previously merged #39? |
The typescript return types need some updating as well. |
Document changes to 'Encrypted Streams' API made in #39
crypto_secretstream_xchacha20poly1305_init_*
methods documentation to indicate that they both asynchronously return a Stream Encryptor/Decryptor object completely encapsulating the backend-specific statecrypto_secretstream_xchacha20poly1305_push
crypto_secretstream_xchacha20poly1305_pull
crypto_secretstream_xchacha20poly1305_rekey