Crate box_stream [−] [src]
Implementation of the box-stream encryption protocol. This crate provides structs which wrap (async) readers and/or writers, decrypting all reads and encrypting all writes.
Modules
crypto |
Low-level bindings to box-stream-c. You probably don't need to use this module directly. |
Structs
BoxDuplex |
Wraps a duplex stream, encrypting all writes and decrypting all reads. |
BoxReader |
Wraps a reader, decrypting all reads. |
BoxWriter |
Wraps a writer, encrypting all writes. |
Constants
INVALID_LENGTH |
The error value signaling that a header claims an invalid packet length. |
UNAUTHENTICATED_EOF |
The error value signaling that the box stream reached an unauthenticated eof. |
UNAUTHENTICATED_HEADER |
The error value signaling that a header is not correctly authenticated. |
UNAUTHENTICATED_PACKET |
The error value used signaling that a packet is not correctly authenticated. |