s2n_quic_core/crypto/
handshake.rs

1// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2// SPDX-License-Identifier: Apache-2.0
3
4use crate::crypto::{HeaderKey, Key};
5
6/// Types for which are able to perform handshake cryptography.
7///
8/// This marker trait ensures only Handshake-level keys
9/// are used with Handshake packets. Any key misuses are
10/// caught by the type system.
11pub trait HandshakeKey: Key {}
12
13/// Types for which are able to perform handshake header cryptography.
14///
15/// This marker trait ensures only Handshake-level header keys
16/// are used with Handshake packets. Any key misuses are
17/// caught by the type system.
18pub trait HandshakeHeaderKey: HeaderKey {}