Enum rustls::quic::KeyChange[][src]

pub enum KeyChange {
    Handshake {
        keys: Keys,
    },
    OneRtt {
        keys: Keys,
        next: Secrets,
    },
}
This is supported on crate feature quic only.
Expand description

Key material for use in QUIC packet spaces

QUIC uses 4 different sets of keys (and progressive key updates for long-running connections):

Once the 1-RTT keys have been exchanged, either side may initiate a key update. Progressive update keys can be obtained from the Secrets returned in KeyChange::OneRtt. Note that only packet keys are updated by key updates; header protection keys remain the same.

Variants

Handshake

Keys for the handshake space

Fields of Handshake

keys: Keys

Header and packet keys for the handshake space

OneRtt

Keys for 1-RTT data

Fields of OneRtt

keys: Keys

Header and packet keys for 1-RTT data

next: Secrets

Secrets to derive updated keys from

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

Performs the conversion.

Performs the conversion.

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.