Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

andreiled
Copy link
Contributor

@andreiled andreiled commented Jul 25, 2020

Document changes to 'Encrypted Streams' API made in #39

  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
  4. Update sample for stream encryption/decryption

@@ -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)
Copy link
Contributor Author

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.

@andreiled andreiled force-pushed the feature/better_secretstream branch 4 times, most recently from bbbd5c9 to c94e6ac Compare July 25, 2020 20:25
@andreiled andreiled force-pushed the feature/better_secretstream branch from c94e6ac to a245226 Compare July 25, 2020 20:38
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
@andreiled andreiled force-pushed the feature/better_secretstream branch from a245226 to a213357 Compare July 25, 2020 20:47
@andreiled andreiled changed the title WIP: Document changes to 'Encrypted Streams' API made in #39 Document changes to 'Encrypted Streams' API made in #39 Jul 25, 2020
@andreiled
Copy link
Contributor Author

@paragonie-scott, could you take a look at this documentation follow-up for the previously merged #39?

@stevenroussey-privicy
Copy link

The typescript return types need some updating as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants