Skip to main content

Module stream

Module stream 

Source

Re-exportsยง

pub use streaming_attachment_cipher::StreamingAttachmentDecryptor;
pub use streaming_attachment_cipher::StreamingAttachmentEncryptor;

Modulesยง

aes256_cbc_hmac_legacy_stream ๐Ÿ”’
AES-256-CBC-HMAC-Legacy-Stream
large_memory_buffer ๐Ÿ”’
A module for allocating large remote buffers not in WASM memory. WASM generally does not support resizing the heap after it has been allocated, so we need to allocate a buffer that can be released again.
streaming_attachment_cipher ๐Ÿ”’
AsyncRead / AsyncWrite wrapper around the streaming attachment ciphers.

Structsยง

StreamDecryptionError ๐Ÿ”’
Opaque error returned when a streaming decryptor fails. The reason (HMAC mismatch, invalid padding, truncation) is intentionally not distinguished, to avoid leaking which check failed.
StreamEncryptionError ๐Ÿ”’
Opaque error returned when a streaming encryptor fails.

Enumsยง

ChunkDecryptionResult ๐Ÿ”’
Outcome of feeding one chunk of wire bytes to a StreamingDecryptor::update.
ChunkEncryptionResult ๐Ÿ”’
Outcome of feeding one chunk of plaintext to a StreamingEncryptor::update.
StreamCreationError ๐Ÿ”’
Error returned by streaming-cipher constructors when the supplied key cannot be used with that streaming cipher.

Traitsยง

RandomAccessDataSource ๐Ÿ”’
A data source that supports random-access reads
RandomAccessDecryptor ๐Ÿ”’
A symmetric decryptor that supports random-access reads: given the complete encrypted wire stream and a plaintext byte range, return only the plaintext covering that range.
StreamingDecryptor ๐Ÿ”’
A symmetric streaming decryptor.
StreamingEncryptor ๐Ÿ”’
A symmetric streaming encryptor.