pub fn from_ec_pem(key: &'a [u8]) -> Result<Self> {
        let pem_key = PemEncodedKey::new(key)?;
        let content = pem_key.as_ec_public_key()?;
        Ok(DecodingKey {
            family: AlgorithmFamily::Ec,
            kind: DecodingKeyKind::SecretOrDer(Cow::Owned(content.to_vec())),
        })
    }
/// If you have a ECDSA public key in PEM format, use this.
If you have a ECDSA public key in PEM format, use this.
If you have a ECDSA public key in PEM format use this .
pub fn from_ec_pem(key: &'a [u8]) -> Result<Self> {
        let pem_key = PemEncodedKey::new(key)?;
        let content = pem_key.as_ec_public_key()?;
        Ok(DecodingKey {
            family: AlgorithmFamily::Ec,
            kind: DecodingKeyKind::SecretOrDer(Cow::Owned(content.to_vec())),
        })
    }
pub fn from_ec_pem ( key : & ' a [ u8 ] ) -> Result < Self > { let pem_key = PemEncodedKey :: new ( key ) ? ; let content = pem_key . as_ec_public_key ( ) ? ; Ok ( DecodingKey { family : AlgorithmFamily :: Ec , kind : DecodingKeyKind :: SecretOrDer ( Cow :: Owned ( content . to_vec ( ) ) ) , } ) }
If you have a ECDSA public key in PEM format, use this.
If you have a ECDSA public key in PEM format use this .
key
&'a [u8]
key
&'a [u8]