Module sodiumoxide::crypto::secretstream::xchacha20poly1305 [−][src]
Expand description
crypto_secretstream_xchacha20poly1305
Structs
Header | An encrypted stream starts with a short header, whose size is HEADERBYTES bytes. That header must be sent/stored before the sequence of encrypted messages, as it is required to decrypt the stream. |
Key |
|
Pull | Represents the pull mode of a Stream. |
Push | Represents the push mode of a Stream. |
Stream |
|
Enums
Tag | A tag is encrypted and attached to each message before the authentication
code is generated over all data. A typical encrypted stream simply attaches
|
Constants
ABYTES | Number of added bytes. The ciphertext length is guaranteed to always be message length + ABYTES. |
HEADERBYTES | Number of bytes in a |
KEYBYTES | Number of bytes in a |
Traits
StreamMode | The trait that distinguishes between the pull and push modes of a Stream. |
Functions
gen_key |
|
messagebytes_max | Returns the maximum length of an individual message. |