Skip to main content

cert_named_group

Function cert_named_group 

Source
pub fn cert_named_group(cert_der: &[u8]) -> Result<NamedGroup, CertificateError>
Expand description

Extract the EC curve (NamedGroup) from a DER-encoded X.509 certificate.

Used by DTLS 1.3 to verify that the SignatureScheme in CertificateVerify is consistent with the peer’s certificate key.