Expand description
TLS message encryption/decryption interfaces.
Structs§
- AeadKey
- A key for an AEAD algorithm.
- BorrowedPayload 
- InboundOpaque Message 
- A TLS frame, named TLSPlaintext in the standard.
- InboundPlain Message 
- A TLS frame, named TLSPlaintextin the standard.
- Iv
- A write or read IV.
- KeyBlockShape 
- How a TLS1.2 key_blockis partitioned.
- Nonce
- A nonce. This is unique for all messages on a connection.
- OutboundOpaque Message 
- A TLS frame, named TLSPlaintextin the standard.
- OutboundPlain Message 
- A TLS frame, named TLSPlaintextin the standard.
- PlainMessage 
- A decrypted TLS frame
- PrefixedPayload 
- UnsupportedOperation Error 
- An error indicating that the AEAD algorithm does not support the requested operation.
Enums§
- OutboundChunks 
- A collection of borrowed plaintext slices.
Constants§
- NONCE_LEN 
- Size of TLS nonces (incorrectly termed “IV” in standard) for all supported ciphersuites (AES-GCM, Chacha20Poly1305)
Traits§
- MessageDecrypter 
- Objects with this trait can decrypt TLS messages.
- MessageEncrypter 
- Objects with this trait can encrypt TLS messages.
- Tls12Aead Algorithm 
- Factory trait for building MessageEncrypterandMessageDecrypterfor a TLS1.2 cipher suite.
- Tls13Aead Algorithm 
- Factory trait for building MessageEncrypterandMessageDecrypterfor a TLS1.3 cipher suite.
Functions§
- make_tls12_ aad 
- Returns a TLS1.2 additional_dataencoding.
- make_tls13_ aad 
- Returns a TLS1.3 additional_dataencoding.