webrtc_dtls/curve/
mod.rs

1pub mod named_curve;
2
3// https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml#tls-parameters-10
4#[derive(Copy, Clone, PartialEq, Eq, Debug)]
5pub enum EllipticCurveType {
6    NamedCurve = 0x03,
7    Unsupported,
8}
9
10impl From<u8> for EllipticCurveType {
11    fn from(val: u8) -> Self {
12        match val {
13            0x03 => EllipticCurveType::NamedCurve,
14            _ => EllipticCurveType::Unsupported,
15        }
16    }
17}