pub fn key_pair_from_pem(&self, input: impl AsRef<[u8]>) -> Result<EcKeyPair, JoseError> {
        let mut key_pair = EcKeyPair::from_pem(input.as_ref(), Some(self.curve()))?;
        key_pair.set_algorithm(Some(self.name()));
        Ok(key_pair)
    }
/// Create a EcDSA key pair from a private key of common or traditinal PEM format.
///
/// Common PEM format is a DER and base64 encoded PKCS#8 PrivateKeyInfo
/// that surrounded by "-----BEGIN/END PRIVATE KEY----".
///
/// Traditional PEM format is a DER and base64 encoded ECPrivateKey
/// that surrounded by "-----BEGIN/END EC PRIVATE KEY----".
///
/// # Arguments
/// * `input` - A private key of common or traditinal PEM format.
Create a EcDSA key pair from a private key of common or traditinal PEM format.
Common PEM format is a DER and base64 encoded PKCS#8 PrivateKeyInfo
that surrounded by "BEGIN/END PRIVATE KEY----".


Create a EcDSA key pair from a private key of common or traditinal PEM format . Common PEM format is a DER and base64 encoded PKCS#8 PrivateKeyInfo that surrounded by " BEGIN / END PRIVATE KEY ---- " .
pub fn key_pair_from_pem(&self, input: impl AsRef<[u8]>) -> Result<EcKeyPair, JoseError> {
        let mut key_pair = EcKeyPair::from_pem(input.as_ref(), Some(self.curve()))?;
        key_pair.set_algorithm(Some(self.name()));
        Ok(key_pair)
    }
pub fn key_pair_from_pem ( & self , input : impl AsRef < [ u8 ] > ) -> Result < EcKeyPair , JoseError > { let mut key_pair = EcKeyPair :: from_pem ( input . as_ref ( ) , Some ( self . curve ( ) ) ) ? ; key_pair . set_algorithm ( Some ( self . name ( ) ) ) ; Ok ( key_pair ) }
Create a EcDSA key pair from a private key of common or traditinal PEM format.
Create a EcDSA key pair from a private key of common or traditinal PEM format .
&self
input
impl AsRef<[u8]>
&self
input
impl AsRef<[u8]>