Expand description
AsyncRead / AsyncWrite wrapper around the streaming attachment ciphers.
ยงWire format
[discriminator (1 byte)] [format-specific header] [ciphertext...]0x02is AES256-CBC-HMAC-Legacy-Stream
0x02 matches the long-standing EncString::Aes256Cbc_HmacSha256_B64 = 2 numbering.
Structsยง
- Streaming
Attachment Decryptor - AsyncRead adapter that decrypts a streaming-attachment-encrypted wire stream from
Rand exposes the decrypted plaintext via [AsyncRead]. The cipher is selected by the 1-byte discriminator at the start of the wire and must agree with the supplied key. - Streaming
Attachment Encryptor - AsyncWrite adapter that takes plaintext and writes a streaming-attachment-encrypted
wire stream to
W. The cipher is selected by theSymmetricCryptoKeyvariant. The 1-byte discriminator is emitted before any plaintext is encrypted. - Unknown
Discriminator ๐
Enumsยง
- Header
Discriminator ๐ - Stream
Decryptor ๐State - Stream
Encryptor ๐State
Constantsยง
- READ_
SCRATCH_ ๐SIZE
Functionsยง
- clone_
io_ ๐error io::Erroris neitherClonenorCopy, so a stored error cannot be returned by value on a subsequent poll. Reconstruct an equivalent error (kind + message) to re-report it.