Crate box_stream [] [src]

Implementation of the box-stream encryption protocol. This crate provides structs which wrap readers and/or writers, decrypting all reads and encrypting all writes. Also provides tokio's asynchronous reade and write traits.

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

FINAL_ERROR

The error value used by read to signal that a final header has been read.

INVALID_LENGTH

The error value used by read to signal that a header claims an invalid length.

UNAUTHENTICATED_HEADER

The error value used by read to signal that a header is not correctly authenticated.

UNAUTHENTICATED_PACKET

The error value used by read to signal that a packet is not correctly authenticated.