Expand description
TLS message encryption/decryption interfaces.
Structs§
- AeadKey
- A key for an AEAD algorithm.
- Encrypt
Buffer - A fixed-size buffer into which a
RecordEncrypterwrites an encrypted record 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 records on a connection.
- Record
- A TLS record with encoded (but not necessarily encrypted) payload.
- Unsupported
Operation Error - An error indicating that the AEAD algorithm does not support the requested operation.
Enums§
- Encodable
Version - A protocol version that can be encoded.
- Outbound
Plain - A collection of borrowed plaintext slices.
- Payload
- An externally length’d payload
- Record
Error - Errors from trying to parse a TLS record.
Constants§
- NONCE_
LEN - Size of TLS nonces (incorrectly termed “IV” in standard) for all supported ciphersuites (AES-GCM, Chacha20Poly1305)
Traits§
- Record
Decrypter - Objects with this trait can decrypt TLS records.
- Record
Encrypter - Objects with this trait can encrypt TLS records.
- Tls12
Aead Algorithm - Factory trait for building
RecordEncrypterandRecordDecrypterfor a TLS1.2 cipher suite. - Tls13
Aead Algorithm - Factory trait for building
RecordEncrypterandRecordDecrypterfor a TLS1.3 cipher suite.
Functions§
- make_
tls12_ aad - Returns a TLS1.2
additional_dataencoding. - make_
tls13_ aad - Returns a TLS1.3
additional_dataencoding.