struct AeadTicketer {
    alg: &'static Algorithm,
    key: LessSafeKey,
    lifetime: u32,
}
Expand description

This is a ProducesTickets implementation which uses any ring aead::Algorithm to encrypt and authentication the ticket payload. It does not enforce any lifetime constraint.

Fields§

§alg: &'static Algorithm§key: LessSafeKey§lifetime: u32

Implementations§

Make a ticketer with recommended configuration and a random key.

Trait Implementations§

Encrypt message and return the ciphertext.

Decrypt ciphertext and recover the original message.

Returns true if this implementation will encrypt/decrypt tickets. Should return false if this is a dummy implementation: the server will not send the SessionTicket extension and will not call the other functions.
Returns the lifetime in seconds of tickets produced now. The lifetime is provided as a hint to clients that the ticket will not be useful after the given time. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The Resulting [TupleList], of an [Prepend::prepend()] call, including the prepended entry.
Prepend a value to this tuple, returning a new tuple with prepended value.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.