pub fn signer_from_der(&self, input: impl AsRef<[u8]>) -> Result<EcdsaJwsSigner, JoseError> {
        let key_pair = self.key_pair_from_der(input.as_ref())?;
        Ok(EcdsaJwsSigner {
            algorithm: self.clone(),
            private_key: key_pair.into_private_key(),
            key_id: None,
        })
    }
/// Return a signer 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.
Return a signer from a private key that is a DER encoded PKCS#8 PrivateKeyInfo or ECPrivateKey.
Return a signer from a private key that is a DER encoded PKCS#8 PrivateKeyInfo or ECPrivateKey .
pub fn signer_from_der(&self, input: impl AsRef<[u8]>) -> Result<EcdsaJwsSigner, JoseError> {
        let key_pair = self.key_pair_from_der(input.as_ref())?;
        Ok(EcdsaJwsSigner {
            algorithm: self.clone(),
            private_key: key_pair.into_private_key(),
            key_id: None,
        })
    }
pub fn signer_from_der ( & self , input : impl AsRef < [ u8 ] > ) -> Result < EcdsaJwsSigner , JoseError > { let key_pair = self . key_pair_from_der ( input . as_ref ( ) ) ? ; Ok ( EcdsaJwsSigner { algorithm : self . clone ( ) , private_key : key_pair . into_private_key ( ) , key_id : None , } ) }
Return a signer from a private key that is a DER encoded PKCS#8 PrivateKeyInfo or ECPrivateKey.
Return a signer from a private key that is a DER encoded PKCS#8 PrivateKeyInfo or ECPrivateKey .
&self
input
impl AsRef<[u8]>
&self
input
impl AsRef<[u8]>