Expand description
TLS message encryption/decryption interfaces.
Structs§
- AeadKey
- A key for an AEAD algorithm.
- Borrowed
Payload - Inbound
Opaque Message - A TLS frame, named TLSPlaintext in the standard.
- Inbound
Plain Message - A TLS frame, named
TLSPlaintext
in the standard. - Iv
- A write or read IV.
- KeyBlock
Shape - How a TLS1.2
key_block
is partitioned. - Nonce
- A nonce. This is unique for all messages on a connection.
- Outbound
Opaque Message - A TLS frame, named
TLSPlaintext
in the standard. - Outbound
Plain Message - A TLS frame, named
TLSPlaintext
in the standard. - Plain
Message - A decrypted TLS frame
- Prefixed
Payload - Unsupported
Operation Error - An error indicating that the AEAD algorithm does not support the requested operation.
Enums§
- Outbound
Chunks - 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§
- 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
MessageEncrypter
andMessageDecrypter
for a TLS1.2 cipher suite. - Tls13
Aead Algorithm - Factory trait for building
MessageEncrypter
andMessageDecrypter
for a TLS1.3 cipher suite.
Functions§
- make_
tls12_ aad - Returns a TLS1.2
additional_data
encoding. - make_
tls13_ aad - Returns a TLS1.3
additional_data
encoding.