pub fn key_pair_from_ec_der(&self, input: impl AsRef<[u8]>) -> Result<EcKeyPair, JoseError> {
        let mut key_pair = EcKeyPair::from_der(input, None)?;
        key_pair.set_algorithm(Some(self.name()));
        Ok(key_pair)
    }
/// Create a EC key pair for ECDH from a private key that is a DER encoded PKCS#8 PrivateKeyInfo or ECPrivateKey.
///
/// # Arguments
/// * `input` - A private key that is a DER encoded PKCS#8 PrivateKeyInfo or ECPrivateKey.
Create a EC key pair for ECDH from a private key that is a DER encoded PKCS#8 PrivateKeyInfo or ECPrivateKey.
Create a EC key pair for ECDH from a private key that is a DER encoded PKCS#8 PrivateKeyInfo or ECPrivateKey .
pub fn key_pair_from_ec_der(&self, input: impl AsRef<[u8]>) -> Result<EcKeyPair, JoseError> {
        let mut key_pair = EcKeyPair::from_der(input, None)?;
        key_pair.set_algorithm(Some(self.name()));
        Ok(key_pair)
    }
pub fn key_pair_from_ec_der ( & self , input : impl AsRef < [ u8 ] > ) -> Result < EcKeyPair , JoseError > { let mut key_pair = EcKeyPair :: from_der ( input , None ) ? ; key_pair . set_algorithm ( Some ( self . name ( ) ) ) ; Ok ( key_pair ) }
Create a EC key pair for ECDH from a private key that is a DER encoded PKCS#8 PrivateKeyInfo or ECPrivateKey.
Create a EC key pair for ECDH from a private key that is a DER encoded PKCS#8 PrivateKeyInfo or ECPrivateKey .
&self
input
impl AsRef<[u8]>
&self
input
impl AsRef<[u8]>