Function rustls::crypto::aws_lc_rs::sign::any_ecdsa_type

source ·
pub fn any_ecdsa_type(
    der: &PrivateKeyDer<'_>,
) -> Result<Arc<dyn SigningKey>, Error>
Available on crate feature aws_lc_rs only.
Expand description

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

Both SEC1 (PEM section starting with ‘BEGIN EC PRIVATE KEY’) and PKCS8 (PEM section starting with ‘BEGIN PRIVATE KEY’) encodings are supported.