rustls::crypto::ring::sign

Function any_eddsa_type

Source
pub fn any_eddsa_type(
    der: &PrivatePkcs8KeyDer<'_>,
) -> Result<Arc<dyn SigningKey>, Error>
Available on crate feature ring only.
Expand description

Parse der as any EdDSA key type, returning the first which works.

Note that, at the time of writing, Ed25519 does not have wide support in browsers. It is also not supported by the WebPKI, because the CA/Browser Forum Baseline Requirements do not support it for publicly trusted certificates.