You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Major changes! But confined to the lower level no-std interface, the
higher level Async I/O one remains unchanged.
There are two big changes which then trickle around the whole library.
1. Cosmetic, but re-name the no-std interface to not include `Reader`
and `Writer` suffixes for clarity. These structures are purposely not
implementing the standard Read/Write IO traits, so shouldn't follow that
naming convention. Those helper wrappers live over in the IO module.
2. Dropped the middle-ground `alloc` feature flag. This change makes the
core library just no-std and the I/O module full on std. The inbound and
outbound ciphers drop their "alloc" wrapper methods and instead expose
helper methods to calculate appropriate buffer lengths,
`OutboundCipher::encryption_buffer_len()` and
`InboundCipher::decryption_buffer_len()`. These are used by the higher i
level IO wrappers.
Copy file name to clipboardExpand all lines: protocol/README.md
+2-3Lines changed: 2 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -6,12 +6,11 @@ The library is designed with a bare `no_std` and "Sans I/O" interface to keep it
6
6
7
7
The `futures` feature includes the high-level `AsyncProcotol` type which helps create and manage an encrypted channel.
8
8
9
-
The lower-level `Handshake` and `PacketHandler` types can be directly used by applications which require more control. The handshake performs the one-and-a-half round trip dance between the peers in order to generate secret materials. A successful handshake results in a packet handler which performs the encrypt and decrypt operations for the lifetime of the channel.
9
+
The lower-level `CipherSession` and `Handshake` types can be directly used by applications which require more control. The handshake performs the one-and-a-half round trip dance between the peers in order to generate secret materials. A successful handshake results in a packet handler which performs the encrypt and decrypt operations for the lifetime of the channel.
0 commit comments