Expand description
TLS message encryption/decryption interfaces.
Structs§
- AeadKey
- A key for an AEAD algorithm.
- Encoded
Message - A TLS message with encoded (but not necessarily encrypted) payload.
- Inbound
Opaque - A borrowed payload buffer.
- Iv
- A write or read IV.
- KeyBlock
Shape - How a TLS1.2
key_blockis partitioned. - Nonce
- A nonce. This is unique for all messages on a connection.
- Outbound
Opaque - A payload buffer with space reserved at the front for a TLS message header.
- Unsupported
Operation Error - An error indicating that the AEAD algorithm does not support the requested operation.
Enums§
- Message
Error - Errors from trying to parse a TLS message.
- Outbound
Plain - A collection of borrowed plaintext slices.
- Payload
- An externally length’d payload
Constants§
- NONCE_
LEN - Size of TLS nonces (incorrectly termed “IV” in standard) for all supported ciphersuites (AES-GCM, Chacha20Poly1305)
Traits§
- Message
Decrypter - Objects with this trait can decrypt TLS messages.
- Message
Encrypter - Objects with this trait can encrypt TLS messages.
- Tls12
Aead Algorithm - Factory trait for building
MessageEncrypterandMessageDecrypterfor a TLS1.2 cipher suite. - Tls13
Aead 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.